How to Check the Version of EasyApache Running

Servers running cPanel come with their custom software, EasyApache, which controls the PHP and Apache configurations. If you need to change PHP settings and you are running EasyApache 3 (EA3), you may directly modify the php.ini file to change them. However, if you are running EasyApache 4 (EA4), direct changes to the php.ini file are not recommended. This is due to the fact that EA4 now includes a MultiPHP INI Editor for cPanel and WHM. This plugin allows you to modify the settings for PHP through the cPanel/WHM interface and will not function properly if changes are made to the php.ini file manually. In this guide, you will learn how to check which version of EasyApache your server is running.

  1. SSH into your server with the root user.

  2. Run the following command:

    /usr/local/cpanel/scripts/easyapache –version

    If you are running EA3, you should see the following example output:

    root@server [~]# /usr/local/cpanel/scripts/easyapache --help Easy Apache v3.34.19  [cpanel] 68.0 (build 21)   [apache] Server version: Apache/2.4.25 (Unix) Server built:   Apr 26 2017 11:29:10 Cpanel::Easy::Apache v3.34.12 rev9999   [server] Linux server.hostname.com 2.6.32-042stab117.16 #1 SMP Fri Sep 9 21:57:19 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux

    If you are running EA4, you should see the following example output:

    root@server [~]# /usr/local/cpanel/scripts/easyapache --help EasyApache3 is not available when EasyApache4 is in effect.

Now that you are familiar with how to check which version of EasyApache you are running, you can confidently make changes to your PHP configuration accordingly. Remember, if you are running EasyApache 3, you can make modifications directly to your php.ini file. If you are running EasyApache 4, you must make changes to the PHP settings from the cPanel/WHM MultiPHP INI Editor.

Leave a Reply