|
|
Here is a tutorial for installing awstats to work with DirectAdmin:
Get the directadmin plugin and install it via Plugin Manager from Extra Features section:
http://www.fusion-ict.nl/da_plugin/awstats.tar.gz
Log into the server via ssh and modify /etc/cron.d/directadmin_cron by adding this line:
0 */4 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
You can do quick by copy/paste:
echo "0 */4 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl " >> /etc/cron.d/directadmin_cron
Then create the file user_create_post.sh in directory /usr/local/directadmin/scripts/custom. It should contain:
#!/bin/sh
echo $username >> /usr/local/directadmin/plugins/awstats/hooks/permissions.txt
Quick copy/paste:
cat <<EOF>> /usr/local/directadmin/scripts/custom/user_create_post.sh
#!/bin/sh
echo $username >> /usr/local/directadmin/plugins/awstats/hooks/permissions.txt
EOF
Make it executable:
# chmod a+x user_create_post.sh
Update awsatats at the last version:
# /usr/local/directadmin/plugins/awstats/update/update.sh
That's it. You can access awstats via: http://www.domain.ro/awstats
More info here: http://awstats.sourceforge.net/
Note:
We use Hosting and VPS Hosting, from: www.star-host.org
We like and trust them.
Good prices, high security.