Applicable to:
- Plesk for Windows
- Plesk for Linux
Question
How to enable SOAP PHP extension in Plesk?
Answer
SOAP classes are shipped and enabled by default in Plesk PHP.
To make sure they are enabled, perform the following actions:
-
Go to Tools & Settings > PHP Settings and select the required Plesk PHP version (e.g. 7.2.5 FPM application)
SOAP might not be available by default on the OS Vendor PHP
Download this script into the server and run it to check whether or not it is enabled. If not, the script will enable it:
-
Connect to the server via SSH
-
Run the following command to download and run the script:
# wget https://raw.githubusercontent.com/plesk/kb-scripts/0ead0b7853b2e795d0918709f990ba73f7f51a9d/enable-soap-extension/enable-soap-extension.sh && chmod +x enable-soap-extension.sh && ./enable-soap-extension.sh
Comments
4 comments
I have not got an option of soap to tick
Hello @Brian,
SOAP is available out of the box for PHP versions provided by Plesk.
As I can see from the screenshot, you are trying to enable SOAP for PHP provided by OS vendor. In such case, you should install SOAP on your own for instructions contact OS support.
Hi Alex,
Here are my suggestions:
1. Choose the appropriate version of PHP (with SOAP enabled) for the domain and make sure that the correct version is applied at Domains - example.com - PHP Settings - View the phpinfo() page.
2. If your server is running CloudLinux, you may need to check PHP settings and modules under Domains - example.com - PHP Selector on the right sidebar
Please sign in to leave a comment.