How to enable/disable Apache & PHP modules using EasyApache4?

EasyApache is a powerful script that allows you to upgrade and configure Apache web server. It also lets you enable/disable Apache or PHP modules using the EasyApache tool in WHM. During this process, cPanel rebuilds Apache and PHP with the options you select or deselect.

With an older version of cPanel, EasyApache version 3.0 was shipped, whereas in the latest version of cPanel (58.0), EasyApache version 4.0 is shipped. EasyApche 4.0 is little tricky to configure compared to that EasyApache 3.0. In this tutorial, we'll show you, how to enable/disable Apache & PHP modules using the EasyApache4. If you are using EasyApache 3.0, you should refer to this tutorial.

  1. Login into your WHM panel via URL https://server-IP-Address:2087.
  2. In the left-hand menu pane, type EasyApache and you will see EasyApache4 option appearing.
  3. Click on EasyApache4 option.

    EasyApache4

  4. On the next screen, click on Customize button on current Apache settings. It will load your current Apache settings.

    Customize

  5. Click on the Apache module you want to use and click Next.

    Prefork Multi Processing

  6. On the next screen, enable your choice of Apache modules to be installed in the current profile.

    Shared Caching Memory Module

    In default VPS configuration, we enable following Apache modules.

    ea-apache24-mod_bwlimited
    ea-apache24-mod_cgi
    ea-apache24-mod_deflate
    ea-apache24-mod_expires
    ea-apache24-mod_headers
    ea-apache24-mod_proxy
    ea-apache24-mod_proxy_fcgi
    ea-apache24-mod_proxy_http
    ea-apache24-mod_security2
    ea-apache24-mod_ssl
    ea-apache24-mod_suphp
    ea-apache24-mod_unique_id
  7. Click on Next button once all the modules are selected.

    Periodic Task Module

  8. Now select the PHP versions you want to add in current profile and click Next.

    PHP Version

  9. Enable your choice of PHP modules for the PHP version you select and click on Next. In default VPS configuration, we enable following PHP modules.

    PHP Package

    For PHP 5.6

    ea-php56-libc-client
    ea-php56-pear ea-php56-php-bcmath ea-php56-php-bz2 ea-php56-php-calendar ea-php56-php-cli ea-php56-php-common ea-php56-php-curl ea-php56-php-devel ea-php56-php-exif ea-php56-php-fpm ea-php56-php-ftp ea-php56-php-gd ea-php56-php-gettext ea-php56-php-iconv ea-php56-php-imap ea-php56-php-ioncube5 ea-php56-php-mbstring ea-php56-php-mcrypt ea-php56-php-mysqlnd ea-php56-php-pdo ea-php56-php-posix ea-php56-php-soap ea-php56-php-sockets ea-php56-php-tidy ea-php56-php-xml ea-php56-php-xmlrpc ea-php56-php-zendguard ea-php56-php-zip ea-php56-runtime
    For PHP 7.0
    ea-php70-libc-client ea-php70-pear ea-php70-php-bcmath ea-php70-php-bz2 ea-php70-php-calendar ea-php70-php-cli ea-php70-php-common ea-php70-php-curl ea-php70-php-devel ea-php70-php-exif ea-php70-php-fpm ea-php70-php-ftp ea-php70-php-gd ea-php70-php-gettext ea-php70-php-iconv ea-php70-php-imap ea-php70-php-mbstring ea-php70-php-mcrypt ea-php70-php-mysqlnd ea-php70-php-pdo ea-php70-php-posix ea-php70-php-soap ea-php70-php-sockets ea-php70-php-tidy ea-php70-php-xml ea-php70-php-xmlrpc ea-php70-php-zip ea-php70-runtime
    Note : You need to enable the same extensions for PHP 7.1
  10. Once necessary PHP modules are selected, the setup will review all the selection. It may take between 2 to 15 minutes based on a number of selected modules.

    Review Packages

  11. On the next screen, the setup will show the list of packages to be installed.

    Package Check

  12. Click on Provision button to install the packages you have selected.

    Provision Button

  13. Once it is provisioned, we need to enable suphp for all the PHP versions. Goto MultiPHP Manager, click on Edit and select suphp and click on Apply.

    MultiPHP Manager

  • 4 Users Found This Useful

Was this answer helpful?

Related Articles

How to modify an account in WHM

How to modify an account in WHM This demo assumes you've already logged in to WebHost Manager....

How to reset cPanel password from WHM?

WHM helps you to create and manage the cPanel accounts. Following tutorial will provide you step...

How to change an account password in WHM

How to change an account password in WHM This demo assumes you've already logged in to WebHost...

How to manage MX entries in WHM

Managing MX entries in WHM This demo assumes you've already logged in to WebHost Manager. Now...

How to upgrade/downgrade an account in WHM

How to upgrade/downgrade an account in WHM Click the Account Functions link. Then click...