How to restart Apache to make httpd.conf changes permanent? Print

  • 2

When cPanel is updated or Httpd service is restarted using WHM, the custom changes made in the Apache configuration file directly won't work because cPanel looks the new values in the file /var/cpanel/conf/apache/local.

However, you can still make the changes directly in the Apache configuration and run the following distiller commands to save the changes. In order to make the changes permanent and make sure the changes don't get overwritten on the next cPanel update / WHM restart, execute the following commands:

# /usr/local/cpanel/bin/apache_conf_distiller –update –main
# /usr/local/cpanel/bin/build_apache_conf
# /scripts/restartsrv httpd


Was this answer helpful?

« Back
Sign up for a newsletter

chat