How do i enable php version in cpanel?

ChemiCloud uses CloudLinux as the OS on our servers to improve server stability. A major feature of CloudLinux is that each cPanel account can select the global PHP version they want to have for their websites.

Need to set a different PHP version for an Addon Domain instead?

If you want to set a different PHP version for on of your Addon domains, you can easily do so using a .htaccess handler as described in this guide.

You can easily change the PHP version on your account by following these steps:

How to change PHP version in cPanel

Info

PHP 8.1 is now available at ChemiCloud for all environments.

The video above may look slightly different than our current cPanel layout. However, the functionality described will be similar.


Here are the instructions outlined in the video above.

Curious as to what PHP version your website is using? A phpinfo file is what you need. To find out how to create a phpinfo file, please visit this article, How to create a phpinfo.php file.

  1. Log in to cPanel.
  2. Select MultiPHP Manager in the Software section.

    How do i enable php version in cpanel?

  3. Select the domain you want to upgrade by checking the box on its left side.

    How do i enable php version in cpanel?

  4. Choose 7.4 or select the newest PHP version from the dropdown, then click Apply.

    How do i enable php version in cpanel?

  5. There will be a pop-up in the upper right corner notifying you that the change was successful.

    How do i enable php version in cpanel?

If you previously used the PHP Selector to change your PHP version, there may be a handler in your .htaccess file that needs to be removed similar to this one:


Use PHPedge as default
AddHandler application/x-httpd-php-edge .php

    suPHP_ConfigPath /opt/phpedge/lib
 

For specific instructions on fixing Missing MySQL Extension errors, please refer to our support article How to Fix Error After MultiPHP upgrade.


Option 2 - PHP SelectorThis will be sunset, and few will have it available.

The PHP Selector can be seen in some Shared servers. However, it may be time to say goodbye to this feature very soon, as you may no longer see the PHP Selector available in your cPanel. If you still have the PHP Selector, click the expand below for the instructions.

The PHP Selector allows users on Shared and Reseller servers to quickly enable a specific PHP version for a site.

To upgrade the PHP version of a site using the PHP Selector, please watch this video.

The video above may look slightly different than our current cPanel layout. However, the functionality described will be similar.


Here are the instructions outlined in the video above.

  1. Log into cPanel.
  2. In the Software section, click the PHP Selector icon.
    How do i enable php version in cpanel?
  3. Navigate to the directory of the website you wish to upgrade the PHP. The document root for the primary site on your account is the public_html folder.
    How do i enable php version in cpanel?
  4. Select the version of PHP you want to use from the dropdown menu, then click upgrade.
    How do i enable php version in cpanel?

    Caution: If your site's scripts rely on PHP's older functions, which are no longer available in the latest stable version used on the server, you may encounter compatibility issues when the PHP is automatically upgraded.

When using PHP Selector, upgrades are applied recursively. Any upgrade you apply to a directory will also apply to all subdirectories unless you apply a different directive to one of those subdirectories. Therefore, to use a different PHP version for an addon domain, you must navigate the document root for the addon domain and select the appropriate PHP version.

Need a bit more help? Contact HostGator support via phone or Live Chat, and we will be happy to assist you!

How do I enable PHP extensions in cPanel?

Steps to Install PHP Extension in cPanel.
Step 1: Select the cPanel and login..
Step 2: Go to PHP version..
Step 3: Pick your ideal PHP version and click on Set as Current and select the extensions..
Step 4: Select the required Extensions..

How do I install the latest PHP version in cPanel?

php file..
Log into cPanel..
In the Software section, click the PHP Selector icon..
Navigate to the directory of the website you wish to upgrade the PHP. The document root for the primary site on your account is the public_html folder..
Select the version of PHP you want to use from the dropdown menu, then click upgrade..

What is PHP version in cPanel?

The cPanel default profile includes PHP versions 7.4 and PHP 8. EasyApache 4 supports PHP versions 5.4 through 5.6, PHP versions 7.0 through 7.4, and PHP 8.0 through 8.1.

How do I enable selected PHP version in WHM?

1) Login to the WHM of your server. 2) Navigate to “Software” section in WHM. 3) Select “MultiPHP Manager” from the software section in WHM. 4) In the “MultiPHP Manager” by scrolling down you can see the option to set php version per domain from there you can see the list of domains hosted on your server.