---
title: "Remove Older PHP Versions in WHM"
description: "As PHP 5.6 and 7.0 reaches end of life, VPS users will want to remove these packages to improve server security. Below we cover how to remove PHP versions using Easy Apache 4 in WHM. Remove PHP..."
url: https://www.inmotionhosting.com/support/edu/easyapache/remove-old-php-versions/
date: 2019-05-29
modified: 2023-07-18
author: "InMotion Hosting Contributor"
categories: ["EasyApache"]
type: post
lang: en
---

# Remove Older PHP Versions in WHM

As PHP [5.6 and 7.0 reaches end of life](https://php.net/supported-versions.php), VPS users will want to remove these packages to improve [server security](/support/security/server-security-best-practices/). Below we cover **how to remove PHP versions using [Easy Apache 4](https://www.inmotionhosting.com/support/edu/easyapache/) in WHM**.

## Remove PHP Versions

1. [Login WHM](/support/edu/whm/log-into-whm/#whm-root-access) as root.
2. Select **EasyApache 4**.
3. Select **Customize** at the top.
4. Select **PHP Versions** on the left. ![Deselect old PHP version](https://www.inmotionhosting.com/support/images/stories/whm/ea4-remove-php-56.png)
5. Select the PHP version to turn it grey.
6. Select **Review**.
7. Select **Provision** at the bottom.
8. Select **Done**.

Further secure your VPS with [best security practices](/support/security/server-security-best-practices/), [ConfigServer & Firewall (CSF)](/support/security/server-security-block-ports-csf/), and [email authentication](/support/email/strengthen-overall-email-authentication/).
