Plesk for Windows
kb: how-to
Plesk for Linux
ABT: Group A
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to enable/disable PHP extensions in Plesk?
Answer
- Log into Plesk.
- Go to Tools & Settings > PHP Settings.
- Click on the required PHP handler, for example, 8.1.20 FPM application:
- Enable/disable the required PHP extension by clicking on the corresponding toggle near the extension name:
CLI solution for Plesk on Linux
-
Connect to the server via SSH.
-
For example, to disable the
bcmath
extension for PHP 8.1 use the command below:# plesk bin php_handler --extension-disable bcmath -id plesk-php81-fpm
To enable:
# plesk bin php_handler --extension-enable bcmath -id plesk-php81-fpm
Note: Set the proper version of the PHP handler and the extension name in the commands above
Comments
2 comments
Hi, is there a way to enable these modules via CLI? We had 20+ PHP handlers and multiple servers. It will be time-consuming for us to enable all modules 1 by 1 in all alp-php and in all servers. Thanks
Hello Zeald Z,
Thank you for your question. The article was updated with the CLI solution for Plesk on Linux servers.
Please sign in to leave a comment.