Howto rebuild Apache for Cpanel Linux / UNIX Server (Control Panel)

last updated in Categories , ,

Q. I’d like to rebuild Apache web to include support for additional modules or to latest version. How do I rebuild Apache for Cpanel Server?


A. Building Apache is quite easy under Cpanel server.

Procedure to Rebuild Apache for Cpanel

Login as the root using ssh

Type the following commands:
# cd /scripts
# ./updatenow
# ./easyapache

Just follow on screen instructions to rebuild Apache for Cpanel server under Linux/FreeBSD oses. Please note that you should see a menu on screen asking you which options you would like built into your apache install. Select options as per your requirements. Once it has completed it will automatically restart Apache for you and you will then be able to use the new features.


Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

3 comment

  1. Note that you can also use EasyApache by logging into the WHM interface, going to the “Software” section then clicking on “Apache Update.” Note that you may want to “Load Previous Config” as your first step to load your server’s existing configuration so you have a good idea of what is currently on the server as you customize Apache and PHP.

  2. I’ve noticed that the script updatenow has been deprecated since the latest cPanel ver. 11 or perhaps earlier and maybe I’ve noticed it during these times.

    In turn you may just rsync the /scripts/ directory manually using the rsync command.

    Still, have a question? Get help on our forum!