How to select a PHP version in cPanel

Changing your PHP version to a newer version like 8.1 or higher will increase your website speed, performance and security.

To select a PHP version in cPanel, follow these steps:

  1. Log in to your cPanel account.
  2. Click on the "Software" tab.
  3. Click on the "Select PHP Version" link.
  4. In the "Select PHP Version" section, select the PHP version you want to use.
  5. Click on the "Set as Current" button.

Your new PHP version will be set as the default for your account.

Here are some additional tips for selecting a PHP version in cPanel:

  • Use the latest version of PHP that is supported by your hosting provider. This will help to ensure that your website is secure and runs smoothly.
  • If you are using a plugin or application that requires a specific version of PHP, select that version.
  • Make sure that the PHP version you choose is compatible with your website's software.
  • If you are having problems with a particular PHP version, try changing to a newer or older version.
  • It is a good idea to test your website after changing the PHP version to make sure that everything is working properly.
  • If you are not sure which PHP version to use, contact your hosting provider for assistance.

By following these tips, you can select the best PHP version for your website.

Here are some of the benefits of using the latest PHP version:

  • Improved performance: The latest versions of PHP are often faster than older versions.
  • Increased security: The latest versions of PHP include security patches that can help to protect your website from attack.
  • New features: The latest versions of PHP often include new features that can make your website more powerful and versatile.

By using the latest PHP version, you can help to ensure that your website is secure, fast, and up-to-date.

PHP Selector Extensions

PHP Selector extensions are a feature of cPanel that allows you to enable or disable PHP extensions for your website. PHP extensions are modules that add additional features to PHP. Some common PHP extensions include MySQL, GD, and PDO.

To enable or disable a PHP extension in cPanel, follow these steps:

  1. Log in to your cPanel account.
  2. Click on the Software section.
  3. Click on the PHP Selector link.
  4. Select the PHP version you want to edit from the drop-down menu.
  5. Click on the Extensions tab.
  6. To enable an extension, check the box next to its name.
  7. To disable an extension, uncheck the box next to its name.
  8. Click on the Save button.

Your changes will take effect immediately.

Here are some things to keep in mind when enabling or disabling PHP extensions:

  • Make sure that the PHP extension you are enabling or disabling is compatible with your website's software.
  • If you are having problems with a particular PHP extension, try disabling it.
  • It is a good idea to test your website after enabling or disabling a PHP extension to make sure that everything is working properly.

Here are some of the benefits of using PHP Selector extensions:

  • It allows you to customize the PHP environment for your website.
  • It can help you to troubleshoot problems with your website.
  • It can improve the performance of your website.

If you are having problems with your website, you may want to try enabling or disabling a PHP extension. This can often fix the problem.

Here is a list of some of the most common PHP extensions:

  • MySQL: This extension allows you to connect to MySQL databases.
  • GD: This extension allows you to create and manipulate images.
  • PDO: This extension provides a unified interface for connecting to databases.
  • mcrypt: This extension provides encryption and decryption functions.
  • curl: This extension allows you to make HTTP requests.
  • zip: This extension allows you to create and extract ZIP files.
  • openssl: This extension provides cryptographic functions.
  • mbstring: This extension provides support for multibyte strings.
  • exif: This extension provides support for EXIF data in images.
  • Tokenizer: This extension provides support for tokenizing strings.
  • DOM: This extension provides support for the DOM API.
  • XML: This extension provides support for XML parsing.
  • JSON: This extension provides support for JSON parsing.
  • imagick - This extension provides support for editing and manipulating digital images.
  • redis - This extension provides support for lightspeed cache.
  • memcached - This extension provides support for lightspeed cache.
  • ioncube_loader - This extension provides support for pre-compiled PHP code.
  • inotify - This extension provides support for monitoring files and folders in real time.
  • pdf - This extension provides support for generating PDF files.
  • oauth - This extension provides support for OAuth consumer and provider bindings.

These are just a few of the many PHP extensions that are available. If you need to use a particular feature that is only available in a PHP extension, you can enable that extension in cPanel.

PHP Selector Options

The PHP Selector options in cPanel allow you to customize the PHP environment for your website. These options include:

  • PHP version: You can choose which version of PHP your website will use.
  • PHP extensions: You can enable or disable PHP extensions.
  • PHP settings: You can change various PHP settings, such as the memory limit and the maximum execution time.

If you are having problems with your website, you may want to try changing the PHP Selector options. This can often fix the problem.

Here is a list of some of the most common PHP settings:

  • memory_limit: This setting controls the maximum amount of memory that PHP can use.
  • max_execution_time: This setting controls the maximum amount of time that a PHP script can run.
  • post_max_size: This setting controls the maximum size of a POST request.
  • upload_max_filesize: This setting controls the maximum size of an uploaded file.

These are just a few of the many PHP settings that are available. If you need to change a particular PHP setting, you can do so in the PHP Selector options in cPanel.

Was this answer helpful?

48 Users Found This Useful