AWstats isn't updating stats.

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
I just installed this server and it seems like it never worked.

I did

Code:
cd /usr/local/directadmin/custombuild
./build set awstats yes
./build awstats
But still no luck.

If I do a manual run of awstats_process.sh it's generating the files, but I don't see anything changing on the AWstats page.
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
I know that too.
With just I actually mean 3 weeks ago. :p

Not sure what I have to do because even the manual run doesn't work.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,152
Location
GMT +7.00
Hello Fred,

please make sure you have awstats=1 in your directadmin.conf and restart directadmin.
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
Hi Alex,

awstats=1 is in directadmin.conf


I just noticed it's trying to access httpd logs while I use nginx. The configuration files are wrong.
I think this happened because I copied my old stats (from my old server) to that folder.
Is it possible to re-generate those files? If I delete them is DA re-generating them?

If I click on update on the AwStats page I get this.
Code:
Error: Couldn't open server log file "/var/log/httpd/domains/example.com.log" : Permission denied 

Setup ('/home/admin/domains/example.com/awstats/.data/awstats.example.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
I got it.

Deleted the .conf file in awstats/.data

and then run

Code:
echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d800 | tee /usr/local/directadmin/dataskq.out
It's working perfect now.
 
Top