MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to update apache configuration file on cpanel.  (Read 3936 times)

0 Members and 1 Guest are viewing this topic.

Offline Rahul Sambre

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
How to update apache configuration file on cpanel.
« on: July 09, 2016, 07:38:08 PM »
Hi,

If you are making any changes directly in the apache configuration file on cPanel servers then please donít forget to run the apache distiller to update the template, userdata and apache configuration data files. Otherwise, the changes will get revert back in next apache update.
For example, if you are editing virtualhost entry of any domain then use
the below command to update the userdata.

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

This will prevent cPanel and Apache from removing any changes you made whenever Apache gets restart.

Or

When you need to edit the httpd.conf file or settings for a specific cPanel user you should do so from the below command.

Quote
/var/cpanel/userdata/USERNAME folder

After you update any of those files you need to tell cPanel to rebuild the apache configuration file, the easiest way to do that is to run below command.

Quote
/scripts/rebuildhttpdconf

That's it.  :)

MilesWeb Hosting Forum

How to update apache configuration file on cpanel.
« on: July 09, 2016, 07:38:08 PM »