Plesk

How to enable or disable PHP extensions in Plesk?

Question

Answer

  1. Log into Plesk
  2. Go to Tools & Settings > PHP Settings.
  3. Click on the required PHP handler name, for example, 8.1.20 FPM application:
    Screenshot
  4. Enable or disable the required PHP extension by moving the toggle button near the extension name left or right:

Enable or disable PHP extensions via CLI for Plesk on Linux

  1. Connect to the server via SSH.

  2. 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 it, use the following command:

    # 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

Additional information

PHP Extensions and Settings | Plesk Obsidian documentation

How to install PECL packages in Plesk?

How to enable the ionCube Loader module for PHP shipped with Plesk on Linux?

How to add additional PHP module for PHP engines shipped with Plesk on Linux?

Exit mobile version