I have just added a new domain to my server and got the following errors:
Adding new virtual website …
… Apache website failed! : Failed to open /var/log/virtualmin/xxxxxxxxx_access_log for writing : Not a directory at /usr/libexec/webmin/web-lib-funcs.pl line 1376.
Setting up scheduled Webalizer reporting …
… no logging directive found in webserver configuration!
Setting up log file rotation …
… no logging directive found in webserver configuration!
Apache seems to have gone down and starting up gives this:
Failed to start service :
Starting httpd: [Wed Nov 20 18:11:04 2013] [warn] NameVirtualHost xxxx:d0:87aa:1::22:80 has no VirtualHosts
[Wed Nov 20 18:11:04 2013] [warn] NameVirtualHost 149.x.x.x:80 has no VirtualHosts
[Wed Nov 20 18:11:04 2013] [warn] NameVirtualHost 149.x.x.x:443 has no VirtualHosts
(20)Not a directory: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs
[FAILED]
Now, as for where those directories went – that is indeed a bit of a mystery. I hadn’t heard of a case where those were deleted before… does anyone else have admin access to your server?