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 the EasyApache4 option.
- On the next screen, click on the Customize button. It will load your current Apache settings.
- In the Apache MPM option, select the Apache MPM module option that you wish to install. The interface displays any existing conflicts. Click Yes to resolve any conflicts or No if you do not wish to make the changes.
- You can only use one Apache MPM module at a time.
- To navigate between customization options, click that option’s link on the left side of the interface.
- Click on the Next button to move forward.
- Once you click on it, you will reach to Apache Modules. Here, you will get all the available Apache modules.
- Select the Apache modules that you wish to install. You can also search for your desired packages by typing them on the search box. Here, we have typed the LSAPI apache module as an example. It provides a fast and stable way to serve PHP applications. Once you type it, it will appear below the search box. You can see that the mod_lsapi apache module is shown below the search box.
- Click on the install button to enable it on the VPS or dedicated server. If you are getting the button in the blue colour, it means that it is enabled. If you are getting the button in the Grey colour then it means that it is disabled.
- Click on the Next button once all the modules are selected.
- In the PHP versions option, select the PHP version you want to add to the current profile. Here, you will get all the available PHP versions.
- You can also search the PHP version by typing the PHP version in the search box. Here, we have selected PHP 8.0 to enable it on our VPS.
- Click on the grey button to install PHP 8.0 in the current profile. If you are getting the button in the blue colour, it means that it is installed. If you are getting the button in the Grey colour then it means that it is uninstalled.
If you select a new version of PHP, the system will detect the PHP extensions that already exist for other installed versions of PHP. You can select the following options:
- In the following examples, php ## represents the PHP version that you selected. If you do not select one of the following options, the system only installs the selected PHP version and its required extensions.
- PHP ## and Extensions — This option installs the selected PHP version and all detected extensions.
- PHP ## only — This option only installs the PHP version and its required extensions.
- Edit — This option displays the proposed PHP extensions. You can deselect any extensions that you do not wish to install.
- Click on the Next button to move to the PHP Extension section.
- In the PHP Extension option, select the PHP extensions that you wish to install in your current profile. Select the checkbox for a version of PHP if you wish to filter your results.
- You can also search for a particular extension by typing its name in the search box.
- In default VPS configuration, we enable the following PHP extension.
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-mysqlnd ea-php74-php-pdo ea-php74-php-posix ea-php74-php-soap ea-php74-php-ioncube10 ea-php74-php-sockets ea-php74-php-tidy ea-php74-php-xml ea-php74-php-xmlrpc ea-php74-php-zip ea-php74-runtime
- Once the necessary PHP extensions are selected, click on the Next button to move forward.
- Next is Ruby via Passenger. In this option, the available Ruby RPMs will appear.
- You can also search Ruby RPMs by typing it on the Search box.
- Select the Ruby RPMs and click on the grey button to install it.
- Click on the Next button to go to the additional packages section.
- By clicking on it, you will move to the Additional Packages section. Here, the available additional packages will appear. Please note that this section only displays additional packages if any exist.
- You can select the Nginx package if you want to install Nginx in your VPS or dedicated server.
- Click on the Next button.
- Once you click on it, the review section will appear. The setup will review all the selections. It may take between 2 to 15 minutes based on the number of selected modules. Review your selections to confirm the changes. The Review section displays the following information:
- The packages that the system will install.
- The packages that the system will upgrade.
- The packages that the system will uninstall.
- Unaffected packages.
- To accept the changes, click on the Provision button to start the build process.
- Click on the Done button once the provision process is completed.
- Now, we need to enable lsapi for all the PHP versions. Go to PHP Manager, click on Edit and select lsapi.
- Once you select it for the PHP version, it will save automatically. You will get a message on the screen that Success: Successfully applied the "lsapi" PHP handler to the ea-php" package.