Page 1 of 1

cake bake and XAMPP for Linux?

PostPosted: 01. September 2010 22:47
by saidbakr
Hi,
I have XAMPP for Linux on Ubuntu 10.04 and I have got the latest version of CakePHP 1.2.8. It runs well, but I could not able to make it running cake bake from the terminal, it tells me to install cakephp-scripts and this action will leads to install an old version of CakePHP and another version of Apache and others.

My question is: How could I able to run cake bake easily like Windows? In Windows it is just a matter of changing path variable!

Re: cake bake and XAMPP for Linux?

PostPosted: 26. January 2011 10:52
by jimsson
hi,
since i was searching for this problem for hours, now i've found the solution here
http://www.sanisoft.com/blog/2007/06/05 ... ith-lampp/
fix this problem by editing 'cake' shell script and changing line
Code: Select all
exec php -q ${LIB}cake.php "$@" -working "${APP}"

to
Code: Select all
exec /opt/lampp/bin/php -q ${LIB}cake.php "$@" -working "${APP}"


cheers,
jimsson

Re: cake bake and XAMPP for Linux?

PostPosted: 26. January 2011 11:24
by saidbakr
Hi,
I found that linux ubuntu has path variable like windows. From terminal -> echo $PATH.

to change $PATH, please get a look at this post on Ubuntu forums.