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 Answers
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.

- 122,029
- 33
- 303
- 309
-
BTW meant to ask, can I YUM this? – Phill Pafford Sep 03 '09 at 18:10
-
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 Sep 03 '09 at 18:13
-
I guess what I mean by that is: uh, `yum` it how? – chaos Sep 03 '09 at 18:22
-
yum install php-soap I think I can – Phill Pafford Sep 03 '09 at 18:55
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()
orphp -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.

- 395,085
- 80
- 655
- 663
-
Thanks, this will work as well but I found that I could do a YUM install php-soap and restart Apache instead – Phill Pafford Sep 03 '09 at 19:02
for CentsOS 5 (Linux) I just found that I could use yum install php-soap and then restart Apache

- 83,471
- 91
- 263
- 383
php -i|grep 'Configure Command'
does not seem to work anymore. You can do
php-config

- 3,787
- 9
- 53
- 85
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

- 843
- 1
- 11
- 20