sudo yum groupinstall 'Development Tools'
-
cd ~ wget http://museum.php.net/php5/php-5.4.13.tar.gz - The source code is downloaded as a compressed "tarball", so you'll need to decompress and unarchive the file:
tar -zxf php-5.4.13.tar.gz - Move into that directory:
cd php-5.4.13 - Next, configure your PHP installation to include SOAP:
./configure --enable-soap=sharedNOTE:
If you receive an error similar to the following, you will need to install libxml2:
error: xml2-config not found. Please check your libxml2 installationYou can install libxml2 through the yum repository:
yum install libxml2-devel - Now, you run the build.
make - Next, copy the SOAP module into the existing PHP installation.
cp modules/soap.so /usr/lib64/php/modules - Add the SOAP module to the PHP configuration.
echo "extension=soap.so" >> /etc/php.d/soap.ini - Then, restart the Apache web server.
/etc/init.d/httpd restart - Move back to the root directory:
cd ~ - You'll probably want to clean up by removing the files you downloaded earlier.
rm -rf php-5.4.13*
That's it! Barring any unforeseen complications, your PHP installation should now be able to utilize the SOAP module.
sumber : mediatemple.net