cPanel AwStat error - ('/home/{user}/tmp/awstats/awstats.{domain.com}.conf' file, web server or permissions) may be wrong.



Error:

Error: LogFile parameter is not defined in config / domain file
('/home/{user}/tmp/awstats/awstats.{domain.com}.conf' file, web server or permissions) may be wrong.
See AWStats documentation in 'docs' directory for informations on how to setup awstats.

Initial Checking:-

# ls -ld /home/{user}/tmp
    -Permission should be 700.

# cat /home/{user}/tmp/awstats/awstats.{domain.com}.conf
    -In some cases this file will be empty, it will cause the above error. This file must contain awstat configration.

Solution:

Usually the above error means one of the following ...

1. The /home/{user}/tmp doesn't have the correct permissions, you can fix this withthe following command.
     
 # chmod 700 /home/{user}/tmp
    -For one user

 # chmod 700 /home/*/tmp
    -For all users in the server.

2. The account has exceeded their disk quota and the awstats.domain.com.conf file cannot be created/updated.
      The stats will not run until the disk quota has been increased for the affected accounts.
You also might have to wait up to 24 hours for logs to run again, or you can force logs to run.

To run the webstats for one account:

 # /scripts/runweblogs {user}

To run the webstats for all accounts in the server.

 # /scripts/runlogsnow


 # cat /home/{user}/tmp/awstats/awstats.{domain.com}.conf
    -Check whether this file is emty or not. The file must contain the configration of awstat. If it is empty there will be some other issues.


Leave a Reply