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 Logs not being written at /var/log/virtualmin/host_error.log on the new forum.
Hi,
Instructed VMin to use a different directory for domain logfiles (/var/log/virtualmin/). Apparently these two are suggested locations for those logs: 1) the "logs" directory of the virtual server, and 2) /var/log/virtualmin. But logs are not been written at this location.
Log file rotation is also correctly set up for the changed location, But still logs are putting at /var/log/httpd.
Any help would be greatly appreciated.
What distribution are you using?
The "logs" directory in a virtual server homedir normally contains just two symlinks to /var/log/virtualmin, which indeed should be the default location. I've never seen Virtualmin log to /var/log/httpd.
Did you install Virtualmin using the installer script on a fresh system? Or did you install it on top of an already active system?
Server built with centos 6.5.
Installed webmin/virtualmin on a fresh system using the below document.
http://www.webmin.com/vdownload.html
That document describes both methods. Did you use the installer script or the manual method?
Used manual installation.
Okay, that's what I thought. :) The script method is highly recommended to prevent issues like you're seeing now. So if that's an option, you could re-install the server (use a grade-a supported distro!), select only a bare minimum of packages, and let the installer do the job for you. It'll work out of the box then.
If reinstalling is not an option, I'm afraid it'd be too much time-consuming guesswork on my end to try and fix this over the forum, especially since I'm not familiar with CentOS and the way it configures Apache by default. Eric might be able to help you out though.
Howdy,
Yeah, if at all possible, we'd definitely recommend using the install.sh script on a fresh install of your OS.
However, if this is a live server, or that's otherwise undesirable, you could try posting your /etc/httpd/conf/httpd.conf file, that will help us troubleshoot what's going on there.
-Eric