title: How to enable SOAP on CentOS
body: <p>We have VPS with CentOS.
  I have installed SOAp using the following command:</p>
  <pre class="lang-sh prettyprint-override"><code>$ yum install php-soap
  </code></pre>
  <p>Then I went to the <code>php.ini</code> file to uncomment the SOAP extension. It was not there, so I added the following line:</p>
  <pre class="lang-none prettyprint-override"><code>extension=soap.so
  </code></pre>
  <p>Then I restarted the server by running</p>
  <pre class="lang-sh prettyprint-override"><code>$ service httpd restart
  </code></pre>
  <p><strong>But SOAP is still not enabled.</strong>
  I get the <code>Fatal error: Class 'SoapClient'</code> message.</p>
  <p>If I try to install it again, I get following message:</p>
  <pre class="lang-none prettyprint-override"><code>Package php-soap-5.3.3-27.el6_5.x86_64 already installed and latest version
  </code></pre>
  <p>I tried to reconfigure PHP with following command as well:</p>
  <pre class="lang-sh prettyprint-override"><code>$ php-config '--disable-fileinfo' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pic' '--with-zlib' '--with-zlib-dir=/usr' '--enable-soap'
  </code></pre>
  <p>Any help?</p>