cPanel Migrate EasyApache 3 to EA4

Issue: cPanel is ending support for EA3 in January 2018. Servers that use FastCGI are not yet natively supported in EA4.

Update: This is an old post. All cPanel now comes standard with EA4. This post left live for posterity only.

Reguired:

  • Apache-FastCGI
  • Ability to install and use Apache DSO
  • PHP-MailHeaders
  • Apache-Fileprotect
  • Apache Mod Cloudflare
  • Apache Access

Solution:

Apache-FastCGI – To install mod_fcgid, enable the “Experimental Repository”

yum install ea4-experimental

To install FastCGI:

yum install ea-apache24-mod_fcgid

Or remove it (if removal is ever required):

yum remove ea-apache24-mod_fcgid

FastCGI and EA4 Caveats:

  • You cannot use the FastCGI daemon (FCGId) with MultiPHP.
  • mod_fcgid Apache moduleis recommended for advanced system administrators who understand how to modify the performance of the mod_fcgid Apache module.

Apache DSO – You can install the DSO PHP package in the PHP Extensions section of WHM’s EasyApache 4 interface via WHM >> Home >> Software >> EasyApache 4

PHP-MailHeaders – This functionality is included by default with PHP in EasyApache 4. You can test this by sending a test email via a PHP script and noticing the “X-PHP-Script” entry in the message header.

Apache-Fileprotect – File Protect is enabled via the “Enable File Protect” option under the “Security” tab in “WHM >> Tweak Settings” on systems using EasyApache 4.

Apache Mod Cloudflare – GitHub’s latest installer includes support for EasyApache 4:
https://github.com/cloudflare/mod_cloudflare

Apache Access – In the case of Mod_Access, it’s deprecated in Apache 2.4. Thus, it’s not included with EasyApache 4. Instead, the following modules are compiled with Apache by default:
mod_access_compat.so
mod_auth_basic.so
mod_authn_core.so
mod_authn_file.so
mod_authz_core.so
mod_authz_groupfile.so
mod_authz_host.so
mod_authz_user.so

Further documentation:
https://documentation.cpanel.net/display/EA4/PHP+Handlers#PHPHandlers-DSO
https://forums.cpanel.net/threads/migrate-ea3-to-ea4-issues.611815/#post-2500747
https://documentation.cpanel.net/display/EA4/Apache+Module%3A+FCGId
http://www.yogsays.com/install-easyapache-4-cloudflare-module-cpanel/

Leave a comment

BlogLogistics