KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:how-to-use-easyapache4

How to use EasyApache 4

This guide is not going to be covering the Ruby section of EasyApache 4. This guide is only for Apache/PHP and their related sections.

In this guide; we'll be explaining the different sections and functions of EasyApache 4

We'll go through Apache MPM's, Apache Modules, PHP Versions and PHP Extensions.

You can quick-jump to any section in which you want to check over utilizing the contents listing on the right hand side of this page.

How to get to EasyApache 4 within WHM

First; we're going to want to get to EasyApache 4; so let's begin

Step 1. Login to WHM! (Remember: The username for WHM is always 'root')

Step 2. Get to EasyApache 4

Once you're logged in you there are two ways to get to the "software" area of WHM.

Method 1: Click 'Classic' then "Software".

You'll want to then click EasyApache 4

Method 2: If you're in the new WHM look; you can use the search bar (works for both versions) and type "EasyApache 4"

Step 3: Click EasyApache 4, whichever method you used!

This takes you to the EasyApache 4 GUI Interface.

You'll see a section called "Currently Installed Packages"

This section lists what's currently installed to the profile; for this server it's the following:

Contains Apache 2.4, PHP 5.6, PHP 7.0, PHP 7.2, and PHP 7.3

This lets you know what Apache version and which PHP versions are currently enabled for your server.

If you click "View Packages" it'll give a detailed breakdown of what modules and packages are installed.

It's recommended that you modify your current profile and not to switch to any of the cPanel provided profiles; as they may have adverse configurations that do not benefit you.

In order to adjust your profile – you would click "Customize"; do note after clicking "Customize" this can take awhile to load, but once it does you'll see the middle section which displays module information, and on the left hand side you'll see "Apache MPM, Apache Modules, PHP Versions, etc"

Apache for EA 4

In this section we will be going over the Apache side of EasyApache 4.

There are two parts to cover Apache MPM's and Apache Modules.

In order to adjust the Apache MPM; you'll want to be in the Apache MPM section of EasyApache 4

There are multiple MPM's to choose from. Our default and recommended is mpm_prefork; but we have some that use mpm_worker

mpm_event is not currently recommended for production environment use unless you know what you are doing!

For this reason; if you feel like you need to adjust MPM modules or have questions, please submit a support ticket!

Apache Modules

Configuring Apache modules is just as easy as everything else in EasyApache 4; due to the RPM based system – this is just toggling to enable/disable as necessary.

You can use the search bar to search for specific modules that you need; in our example we use 'lsapi'

In this case 'mod_lsapi' is already installed, so we don't need to do anything.

If you were to toggle to install this and this is all you wanted you could go ahead and click "Review" on the left and provision as necessary.

This same process would be used for any other additional Apache modules you wanted to build/include to your server.

PHP Versions for EA 4

In this section; we'll be explaining how to use EasyApache 4 in cPanel to add and remove PHP Versions.

EasyApache 4 is an RPM based system now, vastly different from it's predecessor EasyApache 3 – no more recompiling PHP! This is now essentially a point and click process.

In order to add or remove PHP versions; you'll want to click "PHP Versions" on the left-hand side bar

You'll click "PHP Versions" – you can then toggle the switch to install or remove PHP versions.

When you toggle a PHP version to install; it's going to ask you if you want the PHP version alone or if you want the extensions with it.

It's best to get it with the extensions so that you don't miss anything.

When you toggle a PHP version to uninstall/remove – if there are websites assigned to it; you must remove them from that version first!

Otherwise; it'll turn 'yellow' around the outline to indicate removal.

If you don't need any PHP Modules; skip to the review changes!

PHP Extensions for EA 4

In this section; we will cover how to use EasyApache 4 for adding or removing PHP Modules.

You'll want to click the PHP Extensions section on the left-hand menu; you'll be brought to the PHP Extensions area.

You'll see a page displayed for extensions with your PHP versions listed at the top.

You can deselect to have the page display only modules for specific PHP versions to help isolate what versions you need.

Alternatively; you can use the search bar if you know the specific module you want and it'll show it for all installed versions of PHP.

In this example we will use 'opcache'

You can see that I've entered 'opcache' and the results for each PHP version have been shown.

I've toggled it to install for PHP 7.3.

If you were logged to remove it; you would just untoggle it and continue on to the "Review" section to provision your changes.

Review your changes

Once you've made your decisions you can click "Review" – this section will show what you're installing; if anything is being updated or if anything is being removed.

In this example; we installed PHP 7.1.

Confirm these are what you intend to add and scroll to the very bottom and click 'Provision'

You'll see a quick install page where a series of outputs will be provided to you.

Here's a snippit below.

                    Provision process started.
[2019-04-19 07:42:35 -0500] info [xml-api]  
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-7.1.28-1.1.1.cpanel.x86_64                         1/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-pear-1.10.7-1.1.9.cpanel.noarch                    2/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-php-xml-7.1.28-1.1.1.cpanel.x86_64                 3/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-php-litespeed-7.1.28-1.1.1.cpanel.x86_64           4/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-php-devel-7.1.28-1.1.1.cpanel.x86_64               5/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-php-posix-7.1.28-1.1.1.cpanel.x86_64               6/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-php-common-7.1.28-1.1.1.cpanel.x86_64              7/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-php-cli-7.1.28-1.1.1.cpanel.x86_64                 8/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-runtime-7.1.28-1.1.1.cpanel.x86_64                 9/10 
[2019-04-19 07:42:35 -0500] info [xml-api]   Verifying  : ea-php71-php-ftp-7.1.28-1.1.1.cpanel.x86_64                10/10 
[2019-04-19 07:42:35 -0500] info [xml-api] Installed:
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71.x86_64 0:7.1.28-1.1.1.cpanel                                         
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-pear.noarch 0:1.10.7-1.1.9.cpanel                                    
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-php-cli.x86_64 0:7.1.28-1.1.1.cpanel                                 
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-php-common.x86_64 0:7.1.28-1.1.1.cpanel                              
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-php-devel.x86_64 0:7.1.28-1.1.1.cpanel                               
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-php-ftp.x86_64 0:7.1.28-1.1.1.cpanel                                 
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-php-litespeed.x86_64 0:7.1.28-1.1.1.cpanel                           
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-php-posix.x86_64 0:7.1.28-1.1.1.cpanel                               
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-php-xml.x86_64 0:7.1.28-1.1.1.cpanel                                 
[2019-04-19 07:42:35 -0500] info [xml-api]   ea-php71-runtime.x86_64 0:7.1.28-1.1.1.cpanel                                 
[2019-04-19 07:42:35 -0500] info [xml-api] Finished Transaction
[2019-04-19 07:42:35 -0500] info [xml-api] Leaving Shell

The above lets us know that the system installed the specified packages that we wanted to install; if you added more or removed packages; there will be details here.

You've now successfully modified your EasyApache 4 profile for the changes you've wanted.

We hope that this guide has helped with the understanding the ease of EasyApache 4.

control-panels/cpanel-whm/how-to-use-easyapache4.txt · Last modified: 2019/04/26 11:42 by Jonathan K. W.