AWStats 6.4 - easy install/remove script here.
Hi,
I had a look around for an quick and easy way to install AWStats on some domains , not as a serverwide solution .
I didn't find the 'magic' install script that I wanted (one that requires no thinking
.. so I took a bit of time to write one. I thought it ended up being usefull enough to be posted here as it might help other people. Unless AWStats is part of DA or Installatron already and I havent noticed 
In summary, it's a perl script that must be run as root, it takes the username , domain and action (add/remove) as arguments.
No questions asked, it downloads AWStats 6.4 the first time you use it , unpacks it, installs it for a specific domain, creates the conf file and user cron job , processes logs for the first time and that's it, you can just go to the url and browse the stats.
Dont want it anymore on a domain ?, run the script again with a -d argument and all is gone, including the cron job.
I'm not sure if DA allows execution of scripts after adding a domain, nor which arguments are passed on, but it's probably an easy process to use it to automatically add AWStats when a domain is added.
It can be downloaded from :
http://directadmin.domaindirect.com.au
The script, description and a bit of help is available on the above page. Comments & bug reports are welcome here.
( There is an issue with this script < 2.2 and DA >= 1.24 please read the message with subject "WARNING" in this thread for more info about this issue and work around)
Miky
Hi,
I had a look around for an quick and easy way to install AWStats on some domains , not as a serverwide solution .
I didn't find the 'magic' install script that I wanted (one that requires no thinking


In summary, it's a perl script that must be run as root, it takes the username , domain and action (add/remove) as arguments.
No questions asked, it downloads AWStats 6.4 the first time you use it , unpacks it, installs it for a specific domain, creates the conf file and user cron job , processes logs for the first time and that's it, you can just go to the url and browse the stats.
Dont want it anymore on a domain ?, run the script again with a -d argument and all is gone, including the cron job.
I'm not sure if DA allows execution of scripts after adding a domain, nor which arguments are passed on, but it's probably an easy process to use it to automatically add AWStats when a domain is added.
It can be downloaded from :
http://directadmin.domaindirect.com.au
The script, description and a bit of help is available on the above page. Comments & bug reports are welcome here.
( There is an issue with this script < 2.2 and DA >= 1.24 please read the message with subject "WARNING" in this thread for more info about this issue and work around)
Miky
Last edited: