Divi WordPress Theme

Topic: httpd.conf changes are reverted automatically on cPanel server  (Read 3052 times)

Offline Web_news

  • New Member
  • *****
  • Premium Member
  • Posts: 44
  • iTrader: +5/-0
    • View Profile
Hi,

I manually changed httpd.conf file for one virtualhost but today I noticed that the changes were reverted automatically by cPanel. I want to override some settings for one particular account and that was the reason I edited httpd.conf file present in /usr/local/apache/conf/. Am I doing anything wrong?

Thanks for your help!
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 652
  • iTrader: +153/-0
    • View Profile
Re: httpd.conf changes are reverted automatically on cPanel server
« Reply #1 on: August 07, 2014, 10:13:12 AM »
This is the way cPanel works. It is not recommended to modify main httpd.conf. Instead of this, you should use include file to override default settings for any virtualhost. For more details, refer our article Customize httpd.conf for VirtualHost in cPanel.

Offline Web_news

  • New Member
  • *****
  • Premium Member
  • Posts: 44
  • iTrader: +5/-0
    • View Profile
Re: httpd.conf changes are reverted automatically on cPanel server
« Reply #2 on: August 13, 2014, 10:15:55 AM »
Hi,

Thanks for the article. I was able to create include file to override default settings.

Thanks!

Offline WebhostingTalk

  • Junior Guru
  • *****
  • Premium Member
  • Posts: 54
  • iTrader: +2/-0
    • View Profile
Re: httpd.conf changes are reverted automatically on cPanel server
« Reply #3 on: August 26, 2014, 12:06:16 PM »
It is indeed great article. Many users do not know how to overwrite certain settings using include file on cPanel server and due to this they end up with modifying main apache configuration file (httpd.conf) and they loss the settings when it is rebuilt.
Shopify Divi WordPress Theme
Tags: