Php – Install php-soap in CentOS 5.6 with PHP 5.2.17

PHPsoapyum

yum install php-soap

results in "No package php-soap available" warning. Removing "exclude =php*" from /etc/yum.conf results in confirmation to install php-soap & php-common VERSION 5.1.6-39.el5_8.

I'm afraid to install php components with version 5.1.6* in an OS with php 5.2.17. Should I be? Won't earlier 5.1.6* components cause problems with later 5.2.17 php environment?

Best Answer

I'd recommend you use the distro supplied php packages. php-soap is a valid package. Seems like you installed php 5.2.x from another repository. Do not use packages from an older version of PHP on a newer one. This will have compatibility issues.

Do a,

# yum clean all
# yum search php-soap
# yum install php-soap

If the above doesn't work, there are multiple alternatives,

  1. Check if the repository where you downloaded php-5.2, has a php-soap package

  2. Upgrade to CentOS 6.3 (if this is an option) for later version of php from the distro which is php-5.3.3

  3. Stick with CentOS 5.6 and use distro supplied php 5.1 packages

  4. There are other 3rd party repositories offering php53 and php54 packages that you may want to try that might have php-soap

  5. Compile php by yourself including the php-soap package from source