sullise
Verified User
- Joined
- Mar 4, 2004
- Messages
- 475
This is my fresh install checklist for 3.0.0:
1) Install plugin via DA Plugin Manager:
Plugin url: http://www.capitalwebhost.net/daplugins/awstats.tar.gz
2) Install latest AWStats version:
cd /usr/local/directadmin/plugins/awstats/update/
./update.sh
3) Setup to automatically add access to new accounts:
nano -w /usr/local/directadmin/scripts/custom/user_create_post.sh
insert :
#!/bin/sh
echo $username >> /usr/local/directadmin/plugins/awstats/hooks/permissions.txt
chmod 755 /usr/local/directadmin/scripts/custom/user_create_post.sh
4) Add daily updates to Crontab:
nano -w /etc/cron.d/directadmin_cron
Replace :
10 0 * * * echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
With :
10 0 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
5) Login to DA Admin panel and click on the AWSTATS plugin link and activate all existing users ( other then service users like admin, dovecot, clamav, etc)