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

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?

ADVERTISEMENTS

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.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
3 comments… add one
  • David Grega Jul 11, 2007 @ 15:58

    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.

  • 🐧 nixCraft Jul 11, 2007 @ 18:58

    David,

    Thanks for information :)

  • Swapneel Jul 12, 2007 @ 5:09

    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.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.