Actually I just skimmed the documentation page you linked to, and missed the 
fact that it already accommodates the situation you have, where you need to 
specify a path to the php executable. Read it again. If you use the cakeshell 
bash script provided on that page, then you'd call it with:

/path/to/cakeshell myshell myparam -cli /usr/local/bin -console 
/path/to/cake/console -app /path/to/app


On Dec 7, 2010, at 13:48, Ryan Schmidt wrote:

> You have more than one copy of PHP installed on your computer, and they have 
> different capabilities. It sounds like the one you want (which has MySQL 
> support) is in /usr/local/bin, and it sounds like your PATH variable includes 
> the path /usr/local/bin before the location where your second copy of PHP is 
> installed (perhaps /usr/bin?). So everything works on your console.
> 
> Cron has its own PATH, however. Perhaps cron's PATH does not include 
> /usr/local/bin, or perhaps it does, but it's after the location where the 
> other PHP is, so that the other PHP (which apparently doesn't have MySQL 
> support) is found, and you get an error about undefined MySQL functions.
> 
> Figure out how to change cron's PATH. Or specify the PATH yourself before 
> running the cake console, e.g.:
> 
> PATH=/usr/local/bin:/usr/bin:/bin /path/to/cake/console/cake
> 
> Or if you're doing it as in the book page you linked to, and you already have 
> a wrapper script around the cake console, set the PATH within that wrapper 
> script.


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to