views:

235

answers:

5

I have PHP 5.1.6 running with a ton of mods and extensions enabled, is there a way to reconfigure the current settings as well as add SOAP to the mix?

+5  A: 

Yeah; if you do php -i|grep 'Configure Command', that will show you the current build options for your recompile. Just add the option for SOAP to that.

chaos
This looks like it will work, will report back soon. Thanks
Phill Pafford
BTW meant to ask, can I YUM this?
Phill Pafford
I don't know that much about `yum`, so maybe there's a connection I'm unaware of, but I don't see any way it relates to recompiling your PHP install.
chaos
I guess what I mean by that is: uh, `yum` it how?
chaos
yum install php-soap I think I can
Phill Pafford
+1  A: 

If you have the source-code of that version of PHP (pretty old, but you surely can find it somewhere ; for instance : http://www.php.net/releases/#5.1.6 ), yes, you can :

  • use phpinfo() or php -i : in the output, there will be the "configure" line that was used to build your current version of PHP
  • go to the sources directory, and run that configure line, with all its options ; don't forget to add the --enable-soap (If I remember correctly), to add the new extension !
  • Then build as you'd always do (make, make install)

And voila ;-)

And when you have the new PHP executable and/or module, just keep using the same php.ini, so you don't have to reconfigure everything.

Pascal MARTIN
Thanks, this will work as well but I found that I could do a YUM install php-soap and restart Apache instead
Phill Pafford
+1  A: 

for CentsOS 5 (Linux) I just found that I could use yum install php-soap and then restart Apache

Phill Pafford
+1  A: 

depending on your Linus distro you might be lucky and find you can simply install php-soap through your package manager

yum install php-soap for CentOS, or apt-get install php-soap for Debian/Ubuntu etc

WibblePoop
A: 

yum install php-soap worked for me as well!