PDA

View Full Version : [ubuntu] XAMPP PHP and Mysql commandline problem



gsip
November 26th, 2009, 05:58 PM
Hi guys,

I installed XAMPP 1.7.2. on Ubuntu 9.10. I know you can install the standard LAMP, but that does not include all the precompiled plugins from XAMPP.

XAMPP installs and starts with /opt/lampp/lampp start and http://localhost works. But my problem is that when I want to use MySQL or PHP in the terminal i get :

"The program 'php' is currently not installed. You can install it by typing:
apt-get install php5-cli"

So how can I get PHP and MySQL from XAMPP running in the terminal? Or even better get Ubuntu to regocnize that PHP and MySQL are installed...

Thanks!

DominaDoom
December 6th, 2009, 04:47 AM
Try the separate installations.

If there is a patch to this problem, I do not know it.

lehmanshaunc
December 10th, 2012, 05:30 PM
I ran into a very similar problem when trying to build a Symfony bundle on Ubuntu 12.04 using lammp.

The Symfony command asked me to type the following from the terminal:
$ php app/console generate:bundle ...

I had to change the command to the following in order to make it work
/opt/lampp/bin/php app/console generate:bundle ...

I hope this helps.

oldos2er
December 10th, 2012, 07:43 PM
Old thread closed, please don't bump old threads.