How to Manage PHP Versions and Settings in cPanel

Website owners can manage their PHP versions, enable and disable PHP extensions, and edit PHP parameters using the Select PHP Version section in cPanel. This article will discuss how to manage a website's PHP version, select the enabled PHP extensions, and change basic PHP parameters through cPanel.

Why Manage PHP Versions, Extensions and Parameters

PHP is a server-side scripting language used to build dynamic websites. Different versions of PHP come with various features and security updates. Additionally, many PHP applications and scripts require specific versions of PHP and particular extensions to run correctly. Editing PHP parameters can also help optimize your website's performance.

Managing PHP Versions in cPanel

PHP Selector provides an easy way to manage PHP versions on your website. To select your PHP version with PHP Selector, follow these steps:

Log in to your cPanel account.

In the Software section, click on "Select PHP Version."

From the Current PHP version drop-down list, select the version of PHP you want to use.

You can now verify your PHP version by creating a PHP file containing the following script and putting in on your website.

<?php
phpinfo();
?>

 

Enabling and Disabling PHP Extensions

PHP Selector allows you to enable or disable PHP extensions on your website. To enable or disable PHP extensions, follow these steps:

Log in to your cPanel account.

In the Software section, click on "Select PHP Version."

Click on "Extensions" to view the list of available extensions.

To enable an extension, check the box next to it.

To disable an extension, uncheck the box next to it.

Editing PHP Parameters

PHP Selector allows you to edit PHP parameters on your website. To edit PHP parameters with PHP Selector, follow these steps:

Log in to your cPanel account.

In the Software section, click on "Select PHP Version."

Click on "Options" to view the list of available parameters.

To edit a parameter, select the parameter and enter the new value.

 

It is important to note that changing PHP parameters can affect your website's performance, so it is recommended to make changes only if you know what you are doing.

 

PHP Selector is a powerful tool that allows website owners to manage their PHP versions, enable and disable PHP extensions, and edit PHP parameters. By following the steps outlined in this article, you can easily manage your PHP configuration and optimize your website's performance. It is recommended to use caution when making changes to your PHP settings and to make a backup of your website before making any changes.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 65