[Cpanel] Edit httpd.conf and save the configuration changed

Posted by cikul | Posted in cpanel | Posted on 12-07-2012-05-2008


If you simply comment/change configuration in httpd.conf and distill those changes, they will return whenever you recompile Apache again or rebuild Apache again.

After removing the entries in httpd.conf, you can do the following commands to ensure they are properly distilled into the new configuration:

cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
/usr/local/cpanel/bin/apache_conf_distiller --update
/etc/init.d/httpd restart

The commands above will copy a backup of the existing httpd.conf, distill the changes you’ve made, rebuild Apache configuration, and restart Apache to ensure the new changes take effect.

Share and Enjoy

Write a comment