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.


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


  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.


  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 the current profile and click Next.

  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.

    For PHP 7.3

    ea-php73-pear ea-php73-php-bcmath ea-php73-php-bz2 ea-php73-php-calendar ea-php73-php-cli ea-php73-php-common ea-php73-php-curl ea-php73-php-devel ea-php73-php-exif ea-php73-php-fpm ea-php73-php-ftp ea-php73-php-gd ea-php73-php-gettext ea-php73-php-iconv ea-php73-php-imap ea-php73-php-ioncube5 ea-php73-php-mbstring ea-php73-php-mcrypt ea-php73-php-mysqlnd ea-php73-php-pdo ea-php73-php-posix ea-php73-php-soap ea-php73-php-sockets ea-php73-php-tidy ea-php73-php-xml ea-php73-php-xmlrpc ea-php73-php-zendguard ea-php73-php-zip ea-php73-runtime
    For PHP 7.4
    ea-php74-libc-client ea-php74-pear ea-php74-php-bcmath ea-php74-php-bz2 ea-php74-php-calendar ea-php74-php-cli ea-php74-php-common ea-php74-php-curl ea-php74-php-devel ea-php74-php-exif ea-php74-php-fpm ea-php74-php-ftp ea-php74-php-gd ea-php74-php-gettext ea-php74-php-iconv ea-php74-php-imap ea-php74-php-mbstring ea-php74-php-mcrypt ea-php74-php-mysqlnd ea-php74-php-pdo ea-php74-php-posix ea-php74-php-soap ea-php74-php-sockets ea-php74-php-tidy ea-php74-php-xml ea-php74-php-xmlrpc ea-php74-php-zip ea-php74-runtime
  10. Once necessary PHP modules are selected, the setup will review all the selections. 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.

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

  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.

Related Articles

How to create a package for cPanel account?

In WHM, each cPanel account is assigned with a web hosting package, which defines the hosting...

  • 4 Users Found This Useful

Was this answer helpful?