cake bake and XAMPP for Linux?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

cake bake and XAMPP for Linux?

Postby saidbakr » 01. September 2010 22:47

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!
Best Regards,
Said Bakr
User avatar
saidbakr
 
Posts: 8
Joined: 08. March 2008 20:53
Location: Egypt

Re: cake bake and XAMPP for Linux?

Postby jimsson » 26. January 2011 10:52

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
jimsson
 
Posts: 1
Joined: 26. January 2011 10:29

Re: cake bake and XAMPP for Linux?

Postby saidbakr » 26. January 2011 11:24

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.
Best Regards,
Said Bakr
User avatar
saidbakr
 
Posts: 8
Joined: 08. March 2008 20:53
Location: Egypt


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests