Control Web Panel

WebPanel => Installation => Topic started by: Anderson8 on April 18, 2019, 07:36:51 PM

Title: How to enable SOAP on CentOS
Post by: Anderson8 on April 18, 2019, 07:36:51 PM
We have VPS with CentOS I have installed soap with following command.

yum install php-soap
Then I went to php.ini to un-comment soap extension. It was not there so, I added my own following line.

extension=soap.so
Then i restart server with following command

service httpd restart
But SOAP is still not enabled. as i get Fatal error: Class 'SoapClient' If i try to install it again. I get following message.

Package php-soap-5.3.3-27.el6_5.x86_64 already installed and latest version
I tried to re-configure PHP with following command as well.

Any help?
Title: Re: How to enable SOAP on CentOS
Post by: Igor S. on April 19, 2019, 11:47:55 AM
Hi, you must not use yum anymore. It will broke your system once.
If you need a PHP extension just use PHP Switcher or PHP Selector.
Title: Re: How to enable SOAP on CentOS
Post by: rohit on May 01, 2019, 11:58:21 PM
Hi,

As per your issue, Please follow the below steps:-

+======+
1. Login to CWP panel.
2. Go to PHP Settings.
3. Click on PHP Pecl Extensions
4. Search soap extension
5. Install version which you want.
6. It will be installed automatically.
7. Restart the Apache to reflect changes.
+======+

Thank You
Rohit Kumar