logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache2 - Configuration Reverting randomly
Author
Camm



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

Hi,

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:
error_log:
https://pastebin.com/raw/eHNnYmDw

There wasn't anything interesting in the access_log, but I've pasted the two lines I didn't understand:
https://pastebin.com/raw/A39L8UY6

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,
Cam
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
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
Camm



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?


Cheers!
Back to top


Reply to topic   Topic: Apache2 - Configuration Reverting randomly View previous topic :: View next topic
Post new topic   Forum Index -> Apache