Upgrading From EasyApache3 to EasyApache4 | HostGator Support
  1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Upgrading From EasyApache3 to EasyApache4

Upgrading From EasyApache3 to EasyApache4

 

EasyApache is a built-in cPanel utility used to compile, update, and customize Apache and PHP. EasyApache 3 has been around for a long time, but its support will be ending soon. EasyApache 4 is the successor to EasyApache 3, and with it comes many benefits, such as having prebuilt binary packages and multiple PHP versions, including PHP 7 and 7.1 support. The EasyApache 3 depreciated schedule can be found on cPanel's website here:

Why should I upgrade?

In the past, to update EasyApache 3 or install an Apache or PHP module inside of EasyApache 3 would be required a recompile which meant site downtime. With EasyApache 4, there are prebuilt binary packages, which means there is virtually no site downtime for an install or upgrade. Also, these packages allow updates to be performed with the server automatically, which can maximize the stability and security of the associated services.

According to cPanel, if you are running EasyApache 3, the server's cPanel software will be blocked from upgrading to v62 or later. It is highly recommended to upgrade to EasyApache4 and continue to get the latest updates of cPanel and WHM.

Checking Version

To see which version of EasyApache is running, you must navigate to WHM and log in as the root user. Go to the Software section, then to the EasyApache 4 option.

If the page displays as Currently Installed Packages, the server has EasyApache 4 installed.

If the page displays EasyApache 4 is not available when EasyApache 3 is active, the server is still running EasyApache 3. If this is a HostGator VPS or dedicated server, you can contact us via phone or chat and request a ticket be created to be updated to EasyApache 4.

Note: There may be some site downtime to perform an upgrade. Please be prepared to specify a window of time when your sites can be down for the upgrade. The sites may be down for a period of time during this process. Before this process can proceed, we will need a date and time, including the time zone.

Frequently Asked Questions

Which versions of Apache and PHP will be installed with Easy Apache 4?

PHP 5.4, 5.5, 5.6, and 7.0 will be installed with Apache 2.4. PHP 7.1 is also available, and please see How can I add, remove or install components for EasyApache 4? on how to do this.

How can I change my site to use a different PHP version?

If a specific site needs to use a certain PHP version, this can be changed in WHM by:

  1. Log in to WHM.
  2. Go to the Software section, and select MultiPHP Manager.

    HostGator WHM MultiPHP Manager

  3. In the User Domain Settings, check the box on the left, next to the domain you would like to have the custom PHP version.
  4. You will then want to select the desired PHP (ex: ea-php73) in the PHP Version dropdown on the right.

    HostGator WHM MultiPHP Manager

  5. You will get a confirmation once the PHP has been set to your desired value.
PHP 5.4 and 5.5 are currently at their end of life and are no longer receiving security updates. If your site requires PHP5, it is recommended to use PHP 5.6. If your site requires the use of these older versions of PHP, it is recommended to get with a developer and update your site to a newer version of PHP. Please see the following for more information on the supported versions of PHP: http://php.net/supported-versions.php.

As an alternative, the following can be added to the .htaccess file:

AddType application/x-httpd-ea-php73 .php

How can I run a PHP script using a different PHP version?

Below is how to run a PHP script from the command line for a specific PHP version:

/usr/bin/php -ea_php 73 /path/to/filename.php

How can I add, remove or install components for EasyApache 4?

  1. Log in to WHM.
  2. Go to the Software section, and select EasyApache 4.

    HostGator WHM EasyApache 4

  3. Click on the Customize button. This will provide a series of menus to toggle on or off the desired component.

    HostGator WHM EasyApache 4 Customize

  4. The last screen will show a list of packages to be installed or removed; click on the Provision button.
  5. After the provisioning has been completed, click Done, and the main EasyApache 4 screen will return.