How to set up the PHP extension for cPanel individually

Mondo Technology Updated on 2024-03-07

Last week, we came across a Linux web hosting customer who purchased Hostease that needs to use the MB strlen function on the page. For settings like this, which require specific PHP functions, we can set them up separately in the cPanel panel.

Step 1: Log in to cPanel

Open your web browser and log in to your cPanel control panel login page.

Step 2: Visit the PHP configuration page.

In the cPanel Control Panel, find"software"(Software) section, click"select php version"(Select PHP version).

Step 3: Enable or disable the PHP extension.

In"php selector"On the page, you can see the currently selected PHP version and a list of available PHP extensions.

To enable or disable a specific PHP extension, check or uncheck the appropriate box. The previous customer was due to a lack of mbstring extensions.

Step 4: Update the PHP version.

In"current php version"page, click"apply"(Update) button to apply your changes.

Step 5: Verify the PHP extension configuration.

Open your ** and make sure your PHP extension has been successfully configured. You can verify that the configuration is in effect by visiting a page that contains specific PHP features.

With the above steps, you can successfully set up the PHP extension of cPanel to suit your needs and the needs of your application.

Related Pages