First, install, upgrade, and determine the PHP version
If we are using the WDCP default version, the official default package is PHP5.2, we certainly need to upgrade the PHP version, after all, PHP5.2 processing information capacity is relatively slow, although we do not require upgrades to PHP7, after all, support 7 version of the program compatibility will take some time.
Here if we need to upgrade the WDCP panel PHP environment, you can refer to the article:
In view of the user's actual environment, I upgraded to the PHP5.3.17 version after installing the default WDCP panel in the local test machine.
wget http://soft.itbulu.com/wdcp/php_up53.sh
SH php_up53.sh
The upgrade process may take a little time, but we can wait.
Second, install the SOAP extension process
Here we can see that the root directory has a php-5.3.17 folder after upgrading to the PHP version based on the first step above.
Into the SOAP directory, the problem here is that if we are other versions of PHP, we will enter the corresponding PHP installation directory, if we accidentally delete the PHP installation package, it does not matter, go directly to the official PHP website download the corresponding package and then come in.
The code is as follows |
Copy Code |
/www/wdlinux/php/bin/phpize
|
The code is as follows |
Copy Code |
./configure--with-php-config=/www/wdlinux/php/bin/php-config--enable-soap
Make
Make install
|
Here we need to leave this section:
/www/wdlinux/apache_php-5.3.17/lib/php/extensions/no-debug-non-zts-20090626/
Then we add the file code to the php.ini file:
The code is as follows |
Copy Code |
Extension=/www/wdlinux/apache_php-5.3.17/lib/php/extensions/no-debug-non-zts-20090626/soap.so
|
Third, restart effective soap
This reboot takes effect, so let's see if there is a SOAP extension in the probe.
iv. WDCP Installation SOAP Extension Summary
With the above steps, it is easy to install the SOAP extensions in the WDCP panel environment, mainly based on the files compiled in the PHP installation directory, different versions of PHP, and then add the restart server in the php.ini file to take effect.