Good to know when manually updating Apache configuration

For those out there that run WHM/cPanel servers and like to get under the hood to configure Apache outside of the WHM interface, here’s a need to know tip.

These commands must be run if you add any custom configurations to /usr/local/apache/conf/httpd.conf

This is because in cpanel/whm, the apache configuration is saved into a database for safe keeping, and when whm updates or rebuilds apache configuration it pulls the previous configuration from database.

This command must be run after the save

$ /usr/local/cpanel/bin/apache_conf_distiller --update

This command can be run to test if you changes were saved because it reloads the httpd.conf file from database.
/usr/local/cpanel/bin/build_apache_conf

I should also say that this is for Centos 5 servers (and probably RHEL too).

Leave a Reply

Consulting

I'm currently available
for Lotus Notes / Domino consulting engagements.

LinkedIn

Connect with me:

LinkedIn

Advertisement
Advertisement
Categories