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 bonafide components that expand the capabilities of PHP, enabling developers to wedge new features necessary for their web projects. Plesk - a Linux/Windows strong control panel developing interface for webserver management - is composed of an intuitive design, thus providing users with a user-friendly way to administer their servers efficiently. PHP extensions can be enabled or disabled using Pleski and it could be done via a few steps with ease.

This knowledge base is designed to show how Plesk manages PHP extensions and to help you follow this procedure.

Step 1: Accessing the Plesk Control Panel

Enter your username and password to access your Plesk control panel to get started. After logging in, select the "Websites & Domains" option to get a list of all the domains you have hosted.

Step 2: Selecting the Domain

Select the domain name you wish to manage PHP extensions for from the list of hosted domains. To access the domain's settings, click on its name.

Step 3: Accessing PHP Settings

Find and choose the "PHP Settings" option from the domain settings. This will direct you to a website where you may adjust the chosen domain's PHP settings.

Step 4: Managing PHP Extensions

The PHP Settings page has a section called "Additional PHP directives." Custom PHP directives can be specified here to customize the PHP setup for your domain. A PHP extension's associated directive must be added or removed to activate or disable it.

Step 5: Enabling PHP Extensions

Add the following directive to the "Additional PHP directives" section in order to activate a PHP extension:

makefile

extension=extension_name.so

To activate a PHP extension, replace "extension_name" with its name. For instance, you would add the following directive to activate the GD extension:

makefile

extension=gd.so

After adding the directive, click on the "Apply" button to save the changes.

Step 6: Disabling PHP Extensions

In a similar vein, to make a PHP extension inactive, find the directive in the "Additional PHP directives" section that activates the extension, and comment it out by starting the line with a semicolon (;). As an illustration:

swift

;extension=extension_name.so

Once more, substitute the name of the PHP extension you wish to disable for "extension_name". Once the directive has been commented out, click "Apply" to save the changes.

Step 7: Verifying Changes

It is crucial to confirm that the adjustments you made to allow or deactivate the required PHP extensions have really taken effect. To accomplish this, go to your website and check the functionality linked to the extensions that are enabled or deactivated.

Final Words

 

In Plesk, managing the PHP extensions is a straightforward and convenient way you utilize to tune the PHP environment settings of your domains in alignment with your needs. By implementing the procedure described in this guide, you can switch on or switch off PHP extensions with ease at your disposal, supporting your web application with all the missing functions and meeting your needs successfully. For more information, get in touch with our team of experts.

Cut Hosting Costs! Submit Query Today!

Grow With Us

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