Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

Apache2 - Configuration Reverting randomly

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

Joined: 24 Aug 2018
Posts: 2
Location: Gold Coast, Australia

PostPosted: Fri 24 Aug '18 8:32    Post subject: Apache2 - Configuration Reverting randomly Reply with quote


I've recently been assisting my friend with some Web Design, however, he's been having issues with all his sites that he's hosting on the dedi just vanishing. I looked into it and it seems the httpd.conf has been reverted - clearing all the rules for the subdomains, but I'm unsure why this is actually happening.
This happened today (out of the blue) at 10:30AM AEST and two days ago about 2:00AM AEST.

I checked the error log and access log and found the following:

There wasn't anything interesting in the access_log, but I've pasted the two lines I didn't understand:

Information -
Apache Version: Apache/2.4.34 (cPanel)
OS: CentOS v74.0.4
PHP: 7.1.20
MySQL: 5.7.23

I've tried to include as much information to not only find out why this is happening but prevent it from further happening.

If I'm missing any critical information please let me know.

Cheers in advance,
Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6604
Location: Germany, Next to Hamburg

PostPosted: Mon 27 Aug '18 15:14    Post subject: Reply with quote

Config files are not changed by apache itself. You better create backups from your config files when ever you change something or you create a local git repository like I do and track there the changes. Maybe your Linux distro changed some files due a system update. Which distro do you use? You put the vhosts in httpd.conf? On most Linux distros there is a separated folder for just the vhosts.
Back to top

Joined: 24 Aug 2018
Posts: 2
Location: Gold Coast, Australia

PostPosted: Mon 27 Aug '18 15:49    Post subject: Reply with quote

Hi James,

Thanks for your reply.
Well that's what I thought, no configuration file just reverts itself, but there is something - that as I mentioned, has now twice reset the configuration file and it's very frustrating.

We use CentOS. I have a feeling it might have been just due to the developers directly editing that file (adding in the virtual hosts)? But that wouldn't explain why it would reset twice, and so randomly both times - would it?

Back to top

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1