Sharing technology, ideas, insights!
Call: +91 710 466 0336         Email: hello@sanisoft.com

Blog

Use cake console with XAMPP

If you have problem while running cake console scripts for your LAMPP installation and get an error like ‘./cake: line 34: exec: php: not found’, fix this problem by editing ‘cake’ shell script and changing line

to

This will call the installed ‘php’ binary from LAMPP installation and you can use the cake console scripts without any problem

About the Author

Amit Badkas is Zend certified PHP5 and Zend Framework engineer, and has been working in SANIsoft for past 10 years, his present designation is 'Technical Manager'

2 comments

  1. Or you could add /opt/lampp/bin/ to your shell path. Not sure on the actual linux command. (I work on a Mac mostly). I explained this in my post about Bake on MAMP

    This way if you ever upgrade (however unlikey) you aren’t going to kill your modification.

    Besides, it allows other scripts to be executed on the command line, such as unit tests or cron jobs etc

  2. Yes, we can also do the same thing your way. On linux, you have to edit your bash_profile file (/home/username/.bash_profile) and add/edit the path there, like I have changed the PATH from PATH=$PATH:$HOME/bin to PATH=$PATH:$HOME/bin:/opt/lampp/bin

    Thanks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.