How do I change PHP versions?

Browse by products and services

  • Applies to: Grid
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Account Center
  • Applies to: All DV
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Admin/Root access and SSH


This article shows you how to update PHP to a different version. The latest version is PHP 7, which includes many upgrades to speed and stability. For more information about PHP 7, navigate here

Before Proceeding! Make sure that you have a recent backup of all data on the server that you will be making changes to.

Update PHP for Grid

Instructions for changing your Grid PHP version may be found in this article. Please keep in mind that PHP 7 is only currently available for Grid accounts that were provisioned after October 2015. Our team is working hard to bring PHP 7 to all of our customers as soon as possible. 

Update PHP for Plesk

These instructions will show you how to use the Plesk admin panel to update PHP versions. Start by logging into Plesk.

1. Log into the Plesk admin panel and select Tools & Settings from the options on the left.


2. Select Updates and Upgrades from the Plesk column. 

3. Select Add/Remove Components

4. Use the + next to Web hosting to expand the column, then do the same for PHP interpreter versions. Change PHP 7.0 to install and click continue. 

The Plesk installer will run. Once complete, you will be able to use your chosen PHP version.

Note: You do not necessarily need to remove previous versions of PHP. Doing so may cause conflict with various native Plesk applications such as Horde.  

Update PHP for cPanel

These instructions will show you how to use the cPanel WHM utility to change PHP versions.

 As of right now, there is no native support for PHP 7 on cPanel. The following steps are for changing your PHP version and will work once PHP 7 is available. 

1. Log into WHM and select the Software panel. 

2. Select either EasyApache 3 or 4. If you are unsure, you probably need to use EasyApache 3. Don't worry if you select the wrong version. You'll receive an error letting you know that another version is currently active and will need to be used.

3. You should now see a list of available Apache profiles. From here it is easy to manage various aspects of your Apache build. To change your PHP version, select the  to the right of your default profile. 

4. Select Next Step to move to the PHP version menu. Select the version that you'd like to install and proceed through the remaining menus. 

Important: It is very important to allow the EasyApache build process to complete. A premature termination will very likely result in a total failure of cPanel, and you will have to restore from a backup. 

Once complete, verify that your version is correct and working properly by creating a PHP info page. If you need help, instructions can be found in this article