Can I easily recompile PHP with all my current settings and enable SOAP with the new configuration?

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

+2


source to share


5 answers


Yes; if you do php -i|grep 'Configure Command'

it will show you the current build options for your recompilation. Just add SOAP for that.



+7


source


If you have the source code for this PHP version (quite old, but you can certainly find it somewhere, for example: http://www.php.net/releases/#5.1.6 ), yes, you can:

  • use phpinfo()

    or php -i

    : the output will be the string " configure

    " that was used to build your current PHP version
  • go to your sources directory and run this configure line with all its options; don't forget to add --enable-soap

    (if I remember correctly) to add a new extension!
  • Then create as you always did ( make

    , make install

    )


And voila; -)

And when you have a new executable and / or PHP module, just keep using the same one php.ini

, so you don't need to reconfigure everything.

+2


source


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

+2


source


depending on your linus distribution you might be in luck and you can just install php-soap via your package manager

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

+1


source


php -i | grep 'Configure command'

doesn't seem to work anymore. You can do

Php config

0


source







All Articles