How to Upgrade Apache

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.

  1. Log into your servers command line interface as the root user.
  2. Run the following to start up EasyApache.
    /scripts/easyapache
  3. A window will come up regarding previous build issues or cPanel upgrades. Just hit tab and select no for both.
  4. 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.

  5. 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.

  6. You will need to confirm what you are doing by selecting Yes to rebuild apache.

  7. 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.

  8. 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.

Thoughts on “How to Upgrade Apache

  • You should probably consider updating this thread. It doesn’t work for Easy Apache 4. I type “scripts/easyapache” and I get “EA3 is no longer available”

    • This means you have already upgraded to EA4. Now, you should access/upgrade Apache using Easy Apache in the Web Host Manager (WHM). I have added a flagged note to the article to clarify this.
      Thank you for letting us know,
      John-Paul

Leave a Reply