Log in

View Full Version : How to Rebuild Apache in cPanel ?



HosTechS
05-10-2019, 01:46 AM
You can Rebuild Apache in cPanel using the following steps:

1. Log in as the root using ssh to your server
2. Type the following commands:
# cd /scripts
# ./updatenow
# ./easyapache
3. Simply take after on screen directions to modify Apache for CPanel server under Linux/FreeBSD OSes.

4. If you don't mind take note of that you should see a menu on the screen asking you which alternative you might want to be incorporated with your Apache introduce.

5. Select alternatives according to your prerequisites.

6. When it has finished it will naturally restart Apache for you and you will then have the capacity to utilize the new components.

yuva12
04-23-2021, 09:39 AM
You can use the /usr/local/cpanel/scripts/rebuildhttpdconf script to rebuild Apache's main configuration file. Important: This script does not restart Apache. To restart Apache, run the restartsrv_httpd script.

hoststud
05-03-2021, 12:13 PM
You can rebuild Apache with ths script: /usr/local/cpanel/scripts/rebuildhttpdconf .
After that you can restart Apache with below commad to restart:
service httpd restart

You can also restart Apache in WHM:
Login to WHM >> Restart Services >> Here choose Apache to restart.

You can also follow guide to restart Apache service (https://hoststud.com/resources/how-to-start-stop-or-restart-apache-server-on-centos-linux-server.191/) if you are new in linux.

yuva12
06-11-2021, 11:02 AM
When you install cPanel & WHM, the installation process automatically runs EasyApache 4, which installs Apache with the basic requirements for a functional web server. ... The Apache Software Foundation develops the Apache HTTP Server Project, which provides the Apache web server software.

AdrianG001
03-31-2022, 10:19 AM
To rebuild the Apache configuration file, run the following command as root:



# /scripts/rebuildhttpdconf


Then, reload Apache:



# /scripts/restartsrv_httpd