![]() Note that these statistics are public unless you secure them.Īdd the following code to /etc/crontab for each domain:Ġ */3 * * * /usr/lib/cgi-bin/ -config=yourdomain. Statistics for yourdomain.ext should now be available at:įor if you have multiple config files. Reload apache2: /etc/init.d/apache2 reload.Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Otherwise, add this code inside the VirtualHost tag for each domain you want to monitor: Alias /awstatsclasses "/usr/share/awstats/lib/"Īlias /awstats-icon "/usr/share/awstats/icon/"Īlias /awstatscss "/usr/share/doc/awstats/examples/css" If you have no VirtualHosts set up, place the following code in '/etc/apache2/sites-available/default'. Navigate to /etc/apache2/sites-available/ cd /etc/apache2/sites-available/.In order to access Awstats, we have to tell Apache2 where it is. generate the initial stats for AWStats based on existing var/log/apache2/access.log: /usr/lib/cgi-bin/ -config=yourdomain.ext -updateįirst tell your apache to use mod_cgi if you haven't enabled it yet a2enmod cgi.make the following changes: LogFile="/var/log/apache2/access.log" SiteDomain="yourdomain.ext" HostAliases="localhost 127.0.0.1 yourdomain.ext".Open file with vi or nano: vi /etc/awstats/ or nano /etc/awstats/.Create a copy of nf for each domain: cp /etc/awstats/nf /etc/awstats/ Advanced Web Statistics (AWStats) is a powerful web server logfile analyzer written in perl that shows you all your web statistics including visits.com/index.php/20100125/setup-awstats-phpmyadmin-phppgadmin-with-nginx-on-ubuntu/more-150. Install AWStats with Synaptic or sudo apt-get install awstatsĪwstats configuration files in Ubuntu are located in /etc/awstats. add the following to your nginx config file for awstats. For more help, get XChat and subscribe to channel "#awstats" on the Ubuntu Server. It assumes you already have an Apache2 web server up and running. The following documentation contains specific information on installing and configuring Awstats with Ubuntu and Apache2. It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C log format) and a lot of other web, proxy, wap, streaming servers, mail servers and some ftp servers. ![]() It uses a partial information file to be able to process large log files, often and quickly. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. This automatically updates my AWStats every hour whether I view my statistics in a web browser or not.AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. Instead, I append the site to the end of the string like this: “”.Īlso, rather than adding entries to my crontab, I simply added a script to my “/etc/cron.hourly”: #! /bin/bash This means that browsing to “” as they suggest won’t work. I configured my sites individually with no default site in the following files: /etc/awstats/.conf I chose awstats because it is part of Ubuntu's repositories. Awstats is not new and I have been using it since 2000 because google analytics is risky and slow. Ubuntu Tutorials has provided a nice tutorial about setting up AWStats on Ubuntu. Posted under Ubuntu Linux Perl SEO updated on 30 March 2012. After playing with both, I decided to use AWStats. DreamHost provides Analog web statistics. Another site I administer is hosted by DreamHost. My personal website is hosted by Nearly Free Speech, and they provide AWStats for statistics. ![]() Since I am running this blog on my own server, I decided I should probably set up some log parsing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |