Archive
This post is archived and may contain outdated information. It has been set to 'noindex' and should stop showing up in search results.
How to Rebuild Apache Config (httpd.conf) On cPanel VPS SSH Web Host
Nov 17, 2015Web DevelopmentComments (1)
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
Comments (1)
Add a Comment
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