On Cpanel server, a client told his AWStats not working. I checked his AWStats and it shows following error.
NOTE: I changed clients domain with bizhat.com, cpanel username with bizhat
Error: Couldn't open config file "awstats.bizhat.com.conf" nor "awstats.conf" after searching in path ".,/home/bizhat/tmp/awstats/,/etc/opt/awstats,/etc/awstats,/etc,/usr/local/etc/awstats": No such file or directory
- Did you use the correct URL ?
Example: http://localhost/awstats/awstats.pl?config=mysite
Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
- Did you create your config file 'awstats.bizhat.com.conf' ?
If not, you can run "./../../tools/awstats_configure.pl" from command line, or create it manually.
Check config file, permissions and AWStats documentation (in 'docs' directory).
The error is due to AWStats configuration file "awstats.bizhat.com.conf" missing in folder /home/CPANELUSERNAME/tmp/awstats
The error is fixed by running /scripts/runweblogs as root on SSH prompt.
server20# /scripts/runweblogs bizhat Log checker loaded ok.. ==> cPanel Log Daemon version 22.2 ==> Shared RRDTOOL support enabled Processing bizhat... Run Logs domain: dpk.in BW Limit: 262144000 Domains: [] Processing exim stats for bizhat.......Done WEBLANG english Archive Status: 0 About to fork for bizhat [DOMAIN: bizhat.com] Complete server20#
Now AWStats start working.
Questions? Concerns? Comments? We want to hear from you!
Drop us a line with whatever is on your mind and we will get back to you ASAP!!