Enabling SOAP for PHP on CentOS 6.6 Server

centos6soap

I am trying to enable SOAP on my server. Soap is installed, but doesn't show up in php_info.

PHP Version 5.4.39

System Info: Linux ip-xxx-xxx-xxx-xxx.secureserver.net 2.6.32-042stab106.4 #1 SMP Fri Mar 27 15:19:28 MSK 2015 x86_64

Configure Command:

 './configure' '--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' 

Loaded Configuration File: /usr/local/lib/php.ini

Which contains: [soap]

;extension=soap.so
; Enable soap extension module
extension="/usr/lib64/php/modules/soap.so"

I am not sure what other information would be useful, but any help would be greatly appreciated.

Best Answer

php-soap is in EPEL, so I wouldn't bother with compiling it.

Install like this:

yum install epel-release
yum makecache
yum install php-soap