Note that you will require root access in order to use these directions.
In this tutorial, we will be upgrading our Apache version via the EasyApache script in the command line interface. Please keep in mind that this tutorial requires you to be logged in with your root access.
- Log into your servers command line interface as the root user.
- Run the following to start up EasyApache.
- A window will come up regarding previous build issues or cPanel upgrades. Just hit tab and select no for both.
At this point it will provide profiles to load. You can go ahead and select (spacebar) the Apache version you desire such as Apache 2.2 or 2.4.
If you need custom PHP versions, Apache modules installed or removed then you can hit tab and select Customize Profile. If not then you select Build Profile.
You will need to confirm what you are doing by selecting Yes to rebuild apache.
Another prompt will show up asking you to acknowledge that you unstand the changes being made to the server. You will need to select I Understand before the program will continue.
- Check to make sure your Apache is running on the correct version (run the code displayed in red).
root@dedicated [~]# httpd -v
Server version: Apache/2.4.18 (Unix)
Server built: May 11 2016 12:36:25
Cpanel::Easy::Apache v3.32.13 rev9999
When you use different versions of Apache you will have different modules to choose from. Also, by upgrading the version you provide better security to your web server as fixes will be applied as well.