H3XED

How to Rebuild Apache Config (httpd.conf) On cPanel VPS SSH Web Host

Nov 17, 2015   Web Development   Nick Vogt   Comments (1)
Please note that this post is over a year old and may contain outdated information.
Run this command and cPanel will rebuild the Apache httpd.conf file:

/scripts/rebuildhttpdconf
This rebuilds the httpd.conf file from the cPanel templates at /var/cpanel/templates/.

Restart Apache
Your web server will not be affected until you restart Apache, which you can do safely either inside WHM (Web Host Manager):

Restart Services -> HTTP Server (Apache) -> Restart
Or via SSH command:

/scripts/restartsrv_apache
Share This Post
Twitter
Browser Servers
Server Computers
Server Computers
See More Details
Web Server Books
Web Server Books
See More Details

Comments (1)

Aswin   Apr 28, 2018
httpd: Syntax error in -C/-c directive: Could not open config directory /usr/local/apache/conf.modules.d: No such file or directory
Share This Post
Twitter
Browser Servers
Server Computers
Server Computers
See More Details
Web Server Books
Web Server Books
See More Details
H3XED © Nick Vogt   RSS   Policies   Twitter