Search Our Database

How to Install a New PHP Version in WHM (cPanel)

Last updated on |

Introduction

This Knowledge Base article guides you through the process of installing a new PHP version in WHM (cPanel). Keeping PHP up to date is crucial for the security and performance of your websites. The EasyApache 4 feature in WHM makes this task straightforward, allowing you to customize your server’s PHP versions and configurations.

Prerequisites

  • You must have root access to your WHM (cPanel) server.
  • Ensure you have a backup of your server or website. While updating PHP is generally safe, having a backup is a wise precaution.
  • Familiarize yourself with EasyApache 4 in WHM, as it’s the tool you’ll use for this process.

1. Login into your WHM by using https://<ip-address>:2087

2. In the search bar, search EasyApache 4 and click on it.

3. Click Customize to customize your current package.

4. Click PHP Versions.

5. Choose the PHP version you wish to install, and select the PHP version. After that, click PHP <version> and extension to install all the related extensions or PHP <version> Only for installing only the PHP version.

6. Click Review to review the package. After that, scroll down and click Provision.

7. After the provision process is completed, click Done.

8. After the PHP version is installed, you can follow this guide to change your domain’s PHP version: https://www.ipserverone.info/knowledge-base/change-the-php-version-for-the-cpanel/

Conclusion

You have successfully installed a new PHP version in WHM using EasyApache 4. This process allows you to keep your server and websites secure and efficient by utilizing the latest PHP features and improvements. Regularly check for PHP version updates to ensure optimal performance and security.

For additional assistance or if you encounter any issues, please contact our support team at support@ipserverone.com.