In this tutorial, we will be upgrading our Apache version via the EasyApache script in the command-line interface (CLI). Please keep in mind that this tutorial requires you to be logged in with your root access.
Note that you will require root access in order to use these directions.
- 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, 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 understand 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).
[email protected] [~]# 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, when you upgrade Apache web server you provide better overall security to your server as fixes will be applied as well.
DDoS Protection 99.99% Uptime Software RAID New Customer Discounts