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.
- Login into your WHM panel via URL https://server-IP-Address:2087.
- In the left-hand menu pane, type EasyApache and you will see EasyApache4 option appearing.
- Click on EasyApache4 option.
- On the next screen, click on Customize button on current Apache settings. It will load your current Apache settings.
- Click on the Apache module you want to use and click Next.
- On the next screen, enable your choice of Apache modules to be installed in the current profile.
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 - Click on Next button once all the modules are selected.
- Now select the PHP versions you want to add in current profile and click Next.
- 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 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-runtimeFor 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 - 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.
- On the next screen, the setup will show the list of packages to be installed.
- Click on Provision button to install the packages you have selected.
- 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.