Feb 16

 How to make cpanel save our custom httpd.conf configuration

Yesterday i just found out that my nagios website on my cpanel server was off, i cannot access the nagios site. Then i tried to checked the server httpd.conf on /usr/local/apache/conf/httpd.conf it seem that my nagios conf path( Include "/usr/local/apache/conf.d/nagios.conf/httpd.conf")  has been deleted , then i tried to search nagios.conf httpd.conf also has bee changes from /usr/local/apache/conf.d/nagios.conf/httpd.conf to /usr/local/apache.backup/conf.d/nagios.conf/httpd.conf. Then i tried to ask the CPANEL support, they said

In order to save changes to the httpd.conf file after manually adding entries, you should run the following command: 

/usr/local/cpanel/bin/apache_conf_distiller –update 

Otherwise, cPanel will overwrite the changes.

How come my httpd.conf changes ? , they said this:

In general, this happens anytime cPanel uses: 

/scripts/rebuildhttpdconf 

This is used whenever new accounts are created, add-on/parked domains are added, or anytime cPanel is required to make changes to the httpd.conf file
By using: 

/usr/local/cpanel/bin/apache_conf_distiller –update 

It saves the changes, so that when the httpd.conf file is rebuilt, the changes are preserved.

 

Okay , so if you make any custom changes on the cpanel httpd.conf on /usr/local/apache/conf/httpd.conf you need to run . /usr/local/cpanel/bin/apache_conf_distiller –update after that so it will be save by cpanel configuration

 

Oct 15

http://en.wikipedia.org/wiki/Domain_name_system#Address_resolution_mechanism
http://www.faqs.org/docs/linux_network/x-087-2-resolv.howdnsworks.html