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

CODE:
  1. exec php -q ${LIB}cake.php "$@" -working "${APP}"

to

CODE:
  1. exec /opt/lampp/bin/php -q ${LIB}cake.php "$@" -working "${APP}"

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


About this entry