How to Upgrade PHP Version in cPanel/WHM Server?

Following article will assist you to upgrade PHP version in cPanel/WHM server. This article is only applicable to Linux server with cPanel/WHM. Before you upgrade PHP version, make sure that all your websites/web applications are compatible with new version of PHP.

 

  1. Log into WHM via root user.

  2. Search the EasyApache from the top left search bar. You will see EasyApache (Apache Update) option under Software section.

    EasyApache

  3. Click on EasyApache (Apache Update). This will open new window as following. >
  4. At next screen, you would see the current Apache configuration (current profile) under Previously Saved Config, hover the mouse over gear icon Customize Profile located under Action column.

    customize-profile.png

  5. You will see Apache version screen as shown below. Select the Apache version which you would like to build and click on Next Step. If you just want to upgrade the PHP version keep Apache radio button as is.

    apache-version.png

  6. At next stage, you will see screen to select the PHP Version

    .
  7. Select the PHP version you would like to upgrade and click on Next Step.

    php-version-select.png

  8. Since we are just upgrading PHP version, there is no need to make any changes at next 2 stages, Short Options List and Exhaustive Options List.

  9. Go to Next Step for Save and Build.



→ Want to upgrade PHP in your Windows Server? Check out our article with easy steps to upgrade PHP version in Windows Server.

→ Looking to enable/disable PHP extension from cPanel? Please refer to enable/disable PHP for more details.

→ Looking to change PHP Version in cPanel? Please refer to the change PHP version for more details.

Related Articles

Virtual Machine with CentOS 5 32-Bit OS Does not Address Physical Memory More Than 3 GB

Recently we came across very strange issue wherein Linux virtual machine with Centos 5.X 32 Bit...

how to configure SSH key-based Authentication in Linux VPS or Dedicated Server

This article will guide how to configure SSH key-based Authentication in Linux VPS or Dedicated...

Do you offer apache web service with controlpanel option?

Yes, we do offer apache web service with controlpanel like cPanel and Plesk. Both of these...

Fix :: Linux SSH error "connection refused"

Problem Statement Can't connect to a Linux server(Debian Flavour) via SSH. Error Message...

How to Run Multiple PHP versions with Nginx on Ubuntu?

You can run multiple php versions on Ubuntu without any issue. You require Multiple php versions...

  • 2 Users Found This Useful

Was this answer helpful?