ownfoki.blogg.se

Awstats ubuntu
Awstats ubuntu




  1. Awstats ubuntu how to#
  2. Awstats ubuntu update#

# chown -R -dereference www-data:www-data wwwroot # ln -s /usr/lib/cgi-bin/ wwwroot/cgi-bin/ # cp /usr/share/doc/awstats/examples /usr/local/awstats I did this as root, and am just listing the commands since the descriptions above were so good! (March 25, 2005).

Awstats ubuntu update#

Here's a quick and dirty update - I think some packages have changed since the original tutorial. Hopefully if everything I have here is correct and it will work the first time.Īwesome tutorial. Now to see if it worked, open your browser to: $su www-data -c '/usr/lib/cgi-bin/ -config=your_domain -update' Su www-data -c '/usr/lib/cgi-bin/ -config=your_domain -update' Now to keep from losing data during log rolls and to keep the logs readable: The default setup won't let www-data see the logs so we need to change them I changed mine to run every day at 4 :03 AM with 3 4 * * * Also make a line for each domain you have if you went that way.ģ,33 * * * * -a -r /var/log/apache2/access.log ] & /usr/lib/cgi-bin/ -config=your_domain -update >/dev/null You will need to change it to look like this, of course adding you domain. Now to make awstats automatically update.Ġ,10,20,30,40,50 * * * * -a -r /var/log/apache/access.log ] & /usr/lib/cgi-bin/ -config=awstats -update >/dev/null You only need to have access to awstats through one domain to see any number of different ones. The changes would be made in your virtual host. If you want to lock down /var/lib/cgi-bin/awstats/ using apache2 now is the time to do it. There are many other options to work with, but the above are the most important.Īdd this to nf, to fix the lost icon problem, it will work with all domains when put here.Īlias /awstats-icon/ /usr/share/awstats/icon/ This could be used as a DoS so it should be locked down in some way. I have also seen that on my 500 MHz server awstats will use 100% of the processor when serving a page. I have found publicly accessible awstats on the web. Line 319 to 349 deal with security, if you want to use awstats to limit certain users. Each one added will be picked up using this config. $pico /etc/awstats/awstats.your_nfĬhange the line 153: SiteDomain="" to SiteDomain="your_domain"Īnd change line 168 if you want to use this config for all your domains. If you are doing this for many virtual domains, repeat for each one. $cp -a /etc/awstats/nf /etc/awstats/awstats.your_nf

awstats ubuntu

To: LogFile="/var/log/apache2/access.log"Ĭhange line 122: LogFormat=4 to LogFormat=1

awstats ubuntu

This makes a root session without enabling the root account.Ĭhange line 52: LogFile="/var/log/apache/access.log"

awstats ubuntu

I am assuming the server is headless and administered thought ssh. Easiest to use you root domain name for example Actually any name but awstats will work as long as it is the same throughout. This configuration is for monitoring Apache2 only.įor this Howto your_domain should be substituted with your site domain name.

Awstats ubuntu how to#

Any suggestions on how to make this howto better is welcome. There is an existing Howto here but it is old and breaks the debian Apache model. I thought it would be good to document them here as each one has wrong or missing information. I got awstats running on my server with the use of 3 different howto's.






Awstats ubuntu