How to fix stats after deleting logs in domlogs?

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
I was running out of disk space last week and just ran rm * in /usr/local/apache/domlogs to wipe them out. Now AwStats are not working on any users files and I was wondering what I need to do to fix this. Here's the error that is coming up:

Error: LogFile parameter is not defined in config/domain file

Setup ('/home/LOGIN/tmp/awstats/awstats.domain.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
 

rootsupport

Member
May 2, 2006
18
0
151
India
Is there any configuration details under awstats.domain.com.conf file for any of the domain ? If yes, do you see the LogFile, what is the path given over there ?

You can touch one of the domain in the domlogs, for ex.

touch /usr/local/apache/domlogs/domain.com
chown root.groupname /usr/local/apache/domlogs/domain.com
chmod 640 /usr/local/apache/domlogs/domain.com


After doing so execute /scripts/runweblogs username . Let us know the results what you get.
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
Did you also restart apache. If not all kinds of weird errors will happen. Deleting the logs is never a good idea to do manually. The system has all kinds of checks and balances to delete them at the right time and rebuild them correctly - not to mention losing the stats data form the last run until the time they were deleted