Multiple PHP versions on the same box? sheesh...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
gfrommer
Forum Newbie
Posts: 1
Joined: Wed Mar 04, 2009 8:25 pm

Multiple PHP versions on the same box? sheesh...

Post by gfrommer »

Hello everyone,

So I am taking over a project from a previous programmer and I am working in an Ubuntu environment. I discovered something very frustrating when I was trying to run my PHP SOAP client. It appears as if my server has two versions of PHP installed... one that operates on the command line, and the other that's driving the web server. When I go to the console and I use the interactive PHP command line tool, I run my test.php file which contains a single phpinfo(); .... the command line PHP returns a version of PHP 5.2.4-2 .... when I run my phpinfo() through the webbrowser on the same box it displays a version of 5.2.6 ....

Ok, so here is the problem. I went to install the SOAP and CURL extensions using "sudo apt-get install php-soap" ... it only installs on the command-line version and not the web server. How do I get those to install to the other PHP installation? Do I indeed have different PHP installs?

So the end result is my program will run under the command-line interface because it has those extensions installed, but the web server won't run it (not having the proper extensions). How do I figure out where the web-serving PHP is living and install the SOAP and CURL extensions?

Thanks everyone
Post Reply