You are currently viewing How to Enable/Disable PHP Extensions in Plesk

How to Enable/Disable PHP Extensions in Plesk

Fine-tuning your server environment is crucial for optimal performance. PHP, a popular scripting language, often relies on extensions to enhance functionality. Plesk, a powerful hosting control panel, provides a user-friendly interface for managing PHP extensions. This comprehensive guide will walk you through the process of enabling and disabling PHP extensions via Plesk.

Steps To Enable/Disable PHP Extensions In Plesk

To turn on or off PHP extensions in Plesk, follow these simple steps:

  1. Log in to your Plesk Panel using your administrator account.
  1. Click on “Tools & Settings.”
Click on Tools & Settings.
  1. Go to the “General Settings” section and choose “PHP settings.”
Click on Tools & Settings.
  1. You’ll see a list of available PHP versions. Pick the one you want to work with.
  1. In the “Extensions” tab, find all the PHP extensions linked to that PHP version.
step -5
  1. Tick the boxes next to the extensions you want to enable. For the ones you want to disable, slide the toggles.
  1. Once you’ve made your choices, click “OK.”

By following these steps, you can easily manage your PHP extensions in Plesk, turning them on or off based on your preferences.

Best Practices for PHP Extension Management

1. Regular Review: Periodically review your PHP extensions to ensure alignment with your application’s evolving needs.

2. Security Considerations Disable unused extensions to minimize potential security vulnerabilities. Keep only those extensions necessary for your application’s functionality.

3. Backup Configuration: Before making significant changes, consider backing up your Plesk configuration to avoid unintended issues.

4. Stay Informed: Stay informed about updates and security patches for PHP extensions. Regularly updating can enhance performance and security.


Enabling and disabling PHP extensions via Plesk is a straightforward yet powerful way to customize your server environment. By mastering this process, you can optimize your server for specific application requirements, ensuring a seamless and efficient web hosting experience. Stay proactive, stay informed, and unleash the full potential of your server through thoughtful PHP extension management in Plesk.


Q1. How to enable PHP extensions in Plesk?

In Plesk, go to the ‘Domains’ tab, select the desired domain, and navigate to ‘PHP Settings.’ In the ‘Additional Directives’ field, add the line `` to enable the desired extension. Save your changes.

Q2. How to enable PHP extension?

To enable a PHP extension, add `` to your PHP configuration. This can be done in the ‘Additional Directives’ field under ‘PHP Settings’ in Plesk.

Q3. How to change PHP settings in Plesk?

In Plesk, access ‘PHP Settings’ within the selected domain under the ‘Domains’ tab. Modify PHP settings such as memory_limit or max_execution_time as needed and save your changes.

Q4. How do I turn off PHP safe mode in Plesk?

PHP safe mode is deprecated, but if needed, you can turn it off in Plesk by editing the domain’s PHP settings. In ‘PHP Settings,’ find ‘safe_mode’ and set it to ‘off.’ Save your changes.

Q5. How do I add extensions to Plesk?

To add extensions in Plesk, go to ‘PHP Settings’ within the desired domain. In the ‘Additional Directives’ field, add `` to include the extension. Save your changes.