These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Domain Setup Error on the new forum.
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!
Should I Be worried?
Now got worse!
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]
Howdy,
Hmm, is your log directory by chance missing?
What is the output of these commands:
ls -ld /var/log
ls -ld /var/log/httpd
ls -ld /var/log/virtualmin
-bash-4.1# ls -ld /var/log drwxr-xr-x. 2 root root 4096 Nov 20 20:15 /var/log
-bash-4.1# ls -ld /var/log/httpd -rw-r--r-- 1 root root 0 Nov 20 20:15 /var/log/httpd
-bash-4.1# ls -ld /var/log/virtualmin -rw-r--r-- 1 root root 0 Nov 20 20:15 /var/log/virtualmin
httpd or virtualmin is not there - I am pretty sure I have not deleted it!
Also, only 3 out of 66 logifiles have any data!
I have tried to create folders, but they seem to appear as files!!
Yeah, those do look like files now.
What you can do is run these commands:
rm /var/log/httpd
rm /var/log/virtualmin
mkdir /var/log/httpd
mkdir /var/log/virtualmin
After that, are you able to start Apache?
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?
-Eric
I am the only one with access and I never really go into any other folders!