Thanks for the input. Looks like using php -c is the way to go however i'll have to look into things a bit further. It seems as though there is an issue on the server side that is keeping the script from executing.
On Saturday, November 22, 2014 8:09:47 PM UTC-5, Andras Kende wrote:
-- On Saturday, November 22, 2014 8:09:47 PM UTC-5, Andras Kende wrote:
This is how I run a cron on godaddy shared server
Command:
/web/cgi-bin/php5_3 -q -d register_argc_argv=on $HOME/html/mydomain/lib/Cake/Console/cake.php -app $HOME/html/mydomain/app Notice
http://php.net/manual/en/features.commandline.options. php
-c <path>|<file> Look for php.ini file in this directory
Specifies either a directory in which to look for php.ini, or a custom INI file (which does not need to be namedphp.ini), e.g.:
$ php -c /custom/directory/ my_script.php
$ php -c /custom/directory/custom-file.ini my_script.php
If this option is not specified, php.ini is searched for in the default locations.
So I guess you could start from something like:
/web/cgi-bin/php5_3 -c /etc/php.ini -q -d register_argc_argv=on $HOME/html/mydomain/lib/Cake/Console/cake.php -app $HOME/html/mydomain/app Notice
Andras Kende
http://www.kende.com
> On Nov 22, 2014, at 2:16 PM, Ed Propsner <crotc...@gmail.com> wrote:
>
> Does anyone have an experience with setting up a cron job on a shared host where they must specify the location of the php.ini to be used? It's definitely possible but I haven't quite figured it out with cake and shell scripts.
>
> I have a site that is using PHP 5.4 fast cgi, but my crons are failing with a syntax error due to the shell executing the script with a version < 5.4.
>
> Thanks,
> ED
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com .
> To post to this group, send email to cake...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php .
> For more options, visit https://groups.google.com/d/optout .
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment