---
title: "How to Upgrade PHP using EasyApache 4"
description: "You can easily upgrade or update your server's version of PHP using the EasyApache 4 tool in WHM (Web Host Manager). In this tutorial we will show walk you through the update/upgrade steps. If you..."
url: https://www.inmotionhosting.com/support/edu/easyapache/upgrade-php-easyapache/
date: 2017-09-13
modified: 2023-08-15
author: "InMotion Hosting Contributor"
categories: ["EasyApache"]
type: post
lang: en
---

# How to Upgrade PHP using EasyApache 4

You can easily **upgrade** or **update** your server’s version of [**PHP**](https://www.inmotionhosting.com/php-hosting) using the *EasyApache 4* tool in WHM (Web Host Manager). In this tutorial we will show walk you through the update/upgrade steps. If you came here from our article on [how to pass PCI compliance scans](https://www.inmotionhosting.com/support/security/how-to-pass-pci-scans/), outdated versions of PHP are a common thing that can cause your website to fail a PCI scan. So understanding how to update PHP on your own using EasyApache in WHM is great knowledge to have in order to help keep your website PCI compliant.

**Note:** You must have [root access](https://www.inmotionhosting.com/support/amp/obtain-root-access/) to complete this guide.

## Upgrading PHP with EasyApache

1. [Log into WHM](https://www.inmotionhosting.com/support/edu/whm/log-into-whm/) as the “root” user.
2. In the *search* box type ‘easy’ then click the **EasyApache 4** option. ![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_ea4-whm.png)
3. Click the **Customize** button next to *Currently Installed Packages*. ![Customize your Installed PHP Packages](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_customize-packages-ea4.png)
4. Click the **PHP Versions** link. ![Click into PHP Versions](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_php-versions-easyapache-4.png)You will then see your *installed* packages listed. If a PHP version is *updatable* it will have an **Update** switch already turned on. ![Update Outdated PHP Packages](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_updatable-php-version.png) There is no need to adjust this setting to update that PHP version.
5. To install additional PHP versions, click the slider next to the options. In this example, I am installing *PHP 7.1*, but the current minimum recommended version is PHP 8.0. ![Click the Slider to Install Additional PHP Versions](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_install-php-easyapache-4.png)
6. Click the **Review** button once you have chosen which packages to update/install. ![Review and Confirm the PHP Packages to Install](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_review-easyapache-install.png)You will then see a message stating “*Preparing selected packages for review …*” This may take several minutes to complete. ![Preparing selected packages for review](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_preparing-packages-easyapache-4.png)
7. The *Review* page will list all the changes you are about to make. Scroll to the bottom, and click the **Provision** button to proceed. ![Click the Provision button to Proceed](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_provision-php-version-easyapache-4.png)The *provision process* will then begin. This may take several minutes to complete. ![The Provision Process may take several minutes to complete](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_provision-process-started-easyapache-4.png)
8. You are finished when you see a message stating “*The provision process is complete.*” Click the **Done** button to return to the main *EasyApache 4* page. ![The provision process is complete](https://www.inmotionhosting.com/support/wp-content/uploads/2017/09/website_website-troubleshooting_pci-compliance_upgrade-php_provisioning-done-easyapache-4.png)

Congratulations, now you know how to **update** and **upgrade** the PHP version on your server!
