• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Plesk put

E

ElricM

Guest
Plesk messed up httpd.conf with awstats installed

I installed the awstats package which has been working just fine for months now. However this am, Plesk evidently rewrote the main apache config file and by error, put the include line above inside the last <Directory> block for awstats like this:

Code:
<Directory "/usr/local/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
Include /etc/httpd/conf/httpd.include
</Directory>

The problem of course is that all the commands inside the httpd.include file(s) are illegal inside a directory block so apache would not start and all the domains on the server were down. I think the configuration files are regenerated early morning so unfortunately the webserver might have been down for several hours while I was sleeping peacefully!

How can I prevent this from happening again?
 
Ok, duh.... the answer I guess was obvious, early morning panic. This is what I did,

I created a new file awstats.conf, moved all of the lines from /etc/httpd/conf/httpd.conf that were specific to awstats to and placed it into directory /etc/httpd/conf.d

Hopefully this will eliminate the problem from happening again.

Please let me know anyone if I'm missng something.
 
Back
Top