---
title: "Installing suPHP with mod_suphp using EasyApache 4"
description: "In This Tutorial: Install suPHP Change PHP Handler Confirm Changes suPHP is one of a few PHP Handlers availble to choose from. suPHP runs as a CGI module and its major benefits are stronger security..."
url: https://www.inmotionhosting.com/support/edu/easyapache/installing-suphp-with-mod-suphp-using-easyapache-4/
date: 2017-11-30
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["EasyApache"]
type: post
lang: en
---

# Installing suPHP with mod_suphp using EasyApache 4

## In This Tutorial:

[Install suPHP](#install-suphp) [Change PHP Handler](#change-php-handler) [Confirm Changes](#confirm-changes)

**suPHP** is one of a few [PHP Handlers availble to choose from](/support/website/choosing-the-best-php-handler/). suPHP runs as a CGI module and its major benefits are stronger security and easy permissions management. In this guide, you will learn **how to install suPHP with mod_suphp using EasyApache 4**.

**NOTE: **A [VPS](https://www.inmotionhosting.com/vps-hosting) or [Dedicated Server](https://www.inmotionhosting.com/dedicated-servers) with [root access](/support/amp/obtain-root-access/) is required to follow the steps in this guide.

## Installing suPHP

1. [](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-root-login.png)[![WHM login screen, Username root, Password field filled, and Log in button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-root-login.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-root-login.png) [Log into WHM](/support/edu/whm/log-into-whm/) as root.
2. [![easy entered into WHM search field](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-search-easy.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-search-easy.png) Type ‘**easy**‘ into the search field in the top left of WHM.
3. [![WHM Software EasyApache 4 menu option highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-easyapache-4-menu-option.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-easyapache-4-menu-option.png) Under the *Software* category, click on **EasyApache 4**.
4. [![EA4 Currently Installed Packages Customize button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_ea4-currently-installed-packages-customize-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_ea4-currently-installed-packages-customize-button.png) In the *Currently Installed Packages* section, click on the **Customize** button.
5. [![Apache MPM mod_mpm_prefork selected and toggle highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-mod-mpm-prefork.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-mod-mpm-prefork.png) Click on the toggle button next to **mod_mpm_prefork**. [![Apache MPM package selection conflict warning message](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-package-selection-warning-message.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-package-selection-warning-message.png) If prompted with a warning message, review the conflicts and click the **Yes** button to proceed. [![Apache MPM mod_mpm_prefork green Installed icon highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-mod-mpm-prefork-installed-icon.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-mod-mpm-prefork-installed-icon.png) **NOTE: **If *mod_mpm_prefork* is already selected, a green icon labeled *Installed* will appear next to the option. If it is already installed, there is no need to click the toggle button to enable it. Simply proceed to the next step.
6. [![Apache MPM section Next button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-next-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-mpm-next-button.png) Click the **Next** button to proceed.
7. [![Apache Modules Search field contains mod_suphp and is highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-modules-search-field-mod-suphp.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-modules-search-field-mod-suphp.png) Under the *Apache Modules* section, in the **Search** field, type *mod_suphp*.
8. [![Apache Modules mod_suphp toggle button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-modules-mod-suphp-toggle-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-modules-mod-suphp-toggle-button.png) Click on the toggle button next to *mod_suphp* to select it to be installed.
9. [![Apache Modules section Next button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-modules-next-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_apache-modules-next-button.png) Click the **Next** button to proceed.
10. [![PHP Versions toggle buttons highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-versions-toggle-buttons.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-versions-toggle-buttons.png) Select the version(s) of PHP you want to install by clicking on the toggle button next to it.
11. [![PHP Versions section Next button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-versions-next-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-versions-next-button.png) Click the **Next** button to proceed.
12. [![PHP Extensions section Next button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-extensions-next-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-extensions-next-button.png) *OPTIONAL: *Select the PHP Extensions you would like installed. Note that you will need to select the extension for each PHP version you would like it installed for. Once you have completed your selection, click the **Next** button to proceed.
13. [![Ruby via Passenger section Next button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_ruby-via-passenger-modules-next-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_ruby-via-passenger-modules-next-button.png) *OPTIONAL: *Select the Ruby via Passenger modules you would like installed. Once you have completed your selection, click the **Next** button to proceed.
14. [![Review section Provision button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_review-provision-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_review-provision-button.png) Your selected packages will be reviewed to ensure conflicts do not exist. After the results display, review them yourself and then click on the **Provision** button at the bottom of the page to save your selections and provision the package as configured.
15. Once provisioning completes, you will see a green status message. Click on the **Done** button to close your EasyApache 4 session.

## Change PHP Handler

If you provisioned multiple versions of PHP, additional configuration may be necessary to run suPHP for those PHP versions. Follow the steps below to ensure that all your PHP versions are configured to suPHP handlers.

1. [](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-root-login.png)[![WHM login screen, Username root, Password field filled, and Log in button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-root-login.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-root-login.png) [Log into WHM](/support/edu/whm/log-into-whm/) as root.
2. [![WHM Search field contains multiphp and highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-search-multiphp.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-search-multiphp.png) Type ‘**multiphp**‘ into the search field in the top left of WHM.
3. [![WHM MultiPHP Manager menu option highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-multiphp-menu-option.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_whm-multiphp-menu-option.png) Under the *Software* category, click on **MultiPHP Manager**.
4. [![MultiPHP Manager PHP Handlers tab highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_multiphp-manager-php-handlers-tab.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_multiphp-manager-php-handlers-tab.png) Click on the **PHP Handlers** tab.
5. [![PHP Handler Edit link highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-handler-edit-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-handler-edit-button.png) Next to the PHP version, select **Edit** under the *Actions* column.
6. [![PHP Handler drop-down menu suphp selection highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-handler-selection-suphp.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-handler-selection-suphp.png) Select **suphp** from the drop-down menu under the *PHP Handler* column.
7. [![PHP Handler Apply button highlighted](https://www.inmotionhosting.com/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-handler-apply-button.png)](/support/wp-content/uploads/2017/11/whm-edu_easyapache-4_ea4-install-suphp_php-handler-apply-button.png) Finally, click the **Apply** button.

## Confirm PHP Handler

Once you have finished provisioning and setting the PHP handlers for each PHP version, you can confirm the handler(s) set. The instructions below will guide you through the process of confirming the current PHP versions/handlers.

1. Connect to your server as root via an [SSH connection](/support/server/ssh/how-to-login-ssh/).
2. Run the following command: /usr/local/cpanel/bin/rebuild_phpconf –current

You should see the following output after running that command:

root@localhost ~ $ /usr/local/cpanel/bin/rebuild_phpconf --current
DEFAULT PHP: ea-php70
ea-php70 SAPI:suphp
ea-php71 SAPI:suphp
Congratulations! You have completed setting your PHP Handlers to suPHP.
