Cloud Service >> Knowledgebase >> Plesk >> How to Enable/Disable PHP Extensions via Plesk?
submit query

Cut Hosting Costs! Submit Query Today!

How to Enable/Disable PHP Extensions via Plesk?

PHP extensions are essential components that expand the capabilities of PHP, allowing developers to integrate new features necessary for their web projects. Plesk, a powerful control panel for Linux/Windows webserver management, offers an intuitive design that provides users with a user-friendly way to efficiently administer their servers. Managing Plesk PHP extensions is simple and can be done in just a few easy steps.

 

This knowledge base will show you how Plesk handles PHP extensions and guide you through the process.

Step 1: Accessing the Plesk Control Panel

Enter your username and password to log into your Plesk control panel. Once logged in, select the "Websites & Domains" option to display a list of all your hosted domains.

Step 2: Selecting the Domain

From the list of hosted domains, select the domain name for which you want to manage Plesk PHP extensions. Click on the domain name to access its settings.

Step 3: Accessing PHP Settings

In the domain settings, find and select the "PHP Settings" option. This will take you to a page where you can configure the PHP settings for the selected domain.

Step 4: Managing PHP Extensions

On the PHP Settings page, there is a section called "Additional PHP directives." Here, you can add custom PHP directives to manage your Plesk PHP extensions. You can enable or disable a PHP extension by adding or removing the appropriate directive.

Step 5: Enabling PHP Extensions

To activate a PHP extension, add the following directive to the "Additional PHP directives" section:

 

Replace extension_name with the name of the extension you want to enable. For example, to activate the GD extension, you would add:

 

 

Click the "Apply" button to save your changes.

Step 6: Disabling PHP Extensions

To deactivate a PHP extension, find the relevant directive in the "Additional PHP directives" section and comment it out by adding a semicolon (;) at the beginning of the line. For example:

 

Replace extension_name with the PHP extension you want to disable. After commenting out the directive, click "Apply" to save the changes.

Step 7: Verifying Changes

It’s important to verify that the changes you made to enable or disable the required Plesk PHP extensions have taken effect. Visit your website and test the functionality related to the extensions you modified.

Final Words

Managing Plesk PHP extensions is a simple and efficient way to tailor your PHP environment settings to the needs of your domains. By following this guide, you can easily enable or disable PHP extensions as needed, ensuring your web application has all the required functionalities. If you need further assistance, feel free to reach out to our team of experts.



Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!