Thursday, October 22, 2015

Re: Use Bake with another PHP version

Find the PHP.INI for your desirde PHP Version, and view the executable path marked with "PHP_BINDIR" variable.

Then do /path/to/php cake bake

hope it works... i have not tested :(

On Wednesday, October 14, 2015 at 10:45:06 PM UTC+2, Sebastian S wrote:
Hi all 
I have trouble using bin/bake, because of my server setup (dedicated), I think. It uses PHP as CGI and in default the terminal uses PHP 4. 

(13:38:26) [webfiles] bin/cake bake all users
X-Powered-By: PHP/4.4.9
Content-type: text/html

<br />
<b>Warning</b>:  Unexpected character in input:  '\' (ASCII=92) state=1 in <b>/mypath/webfiles/bin/cake.php</b> on line <b>33</b><br />
<br />
<b>Parse error</b>:  syntax error, unexpected T_STRING in <b>/mypath/webfiles/bin/cake.php</b> on line <b>33</b><br />
(13:38:29) [webfiles]

Is there any way to call bake with another PHP version?

Thanks!!

Sebastian

--
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: