giftjersey.blogg.se

Awstats tool
Awstats tool







awstats tool
  1. #Awstats tool install#
  2. #Awstats tool update#
  3. #Awstats tool software#

Setup the software to use the "combined" version of Apache 2 logs : command sed -i -e 's/^LogFormat.*=.*/LogFormat=1/g' "/etc/awstats/nf"Īllow the complete year view when using browser : command sed -i -e 's/^AllowFullYearView.*=.*/AllowFullYearView=3/g' "/etc/awstats/nf"Ĭopy the default configuration file in order to have a safe template : command mv "/etc/awstats/nf" "/etc/awstats/"Įnable for all sites the interesting plug-ins of the software : command echo 'LoadPlugin="tooltips"Ĭreate the folder storing the passwords file : command mkdir -parent "/etc/apache2/passwords"Ĭreate a password for the admin account, allowed to view every site statistics : AWSTATS_PWD="$(command apg -q -a 0 -n 1 -M NCL)"Ĭreate the passwords file and the admin account : command htpasswd -cb "/etc/apache2/passwords/d" "admin" "$ add-site-user jdoeĬreate the 'jdoe' user, and allow him to access the site statistics. #10 03 * * * awstats & /usr/share/awstats/tools/buildstatic.sh" \ */10 * * * * awstats & command find '/etc/awstats' -type f -name 'awstats.*.conf' | command sed -e 's/.*awstats\.\(.*\)\.conf/\1/' | command xargs -ICONF /usr/lib/cgi-bin/ -config=CONF -update

#Awstats tool update#

Replace the default cron configuration by a version that can use more than one configuration file : command echo "# Awstats all sites update : Give ownership of the software files to this user : if thenĬommand chown awstats:www-data "/var/lib/awstats"Ĭommand chown awstats:awstats "/var/lib/awstats/"*Ĭommand chown awstats:www-data "/var/cache/awstats"Ĭommand chown awstats:awstats "/var/cache/awstats/"* no-create-home -home "/var/lib/awstats" "awstats" Libnet-dns-perl liburi-perl apache2-utilsĬreate a system user for the software : command adduser -system -group -shell "/bin/sh" \

#Awstats tool install#

Install the software, a password generator and the plug-ins dependencies : command apt-get install awstats apg \ Provide the domain name where will be available the software : DOMAIN=" " stats with webalizer).Īwstats could be disabled via the GUI in their account settings or in the user.This howto needs a Apache 2 HTTP server with the script a2tools available in the howto Install Apache 2 on Debian. awstats if the link is created (instead of the. stats symbolic link on the domain stats page will point to. Like webalizer, with this setup, subdomains will have their own awstats page.ĭirectAdmin will also parse the awstats data files to grab the bandwidth for the subdomains, so as long as the awstats are being processed for those subdomains, the bandwidth for each subdomain will show up in DA on the subdomains page (just like it did for webalizer, using the webalizer stats). With this setup, files are chown'd to root, and chmod to a minimal setting, thus things are safe, secure, and private. Some awstats plugins use chmod 777 for many files and folders, meaning anyone on the system has the ability to change things around. The benefit of the integrated awstats over many plugins is the security. The advantage of having the data under /home/user, is that users can bring it with them when their accounts are moved around. Also Apache is restarted post tally as usual anyway.Īwstats are placed as static HTML pages into:

awstats tool

Testers should keep an eye on the effects of truncating a live log without the instant Apache restart. During the rotation for each user, logs will simply be truncated instead of deleted (as they always have been for single-user tallies). This has side effects in that a HUP is not going to be sent to the master httpd process right before the tally. Before the tally, all logs will not be renamed to. NOTE: due to the way the log names are set up in config files, the rotation of Apache logs will be slightly different during the tally. add webalizer=0 in your nf (webalizer will be shut off, but you can override it if you want both).Dealing with large users and backup timings.









Awstats tool