To install AWStats which the server already has Apache webserver installed in it, execute the below command to install AWStats and all required dependencies using YUM. The below command can be executed in order to install the EPEL repository on the server. The below steps can be followed to install and configure AWStats in a CentOS/Fedora server, which already has an Apache webserver running in it. This guide outlines the basic steps involved in the installation of AWStats in a Linux server (provided Apache service is already installed in the server). This can easily be installed on a Linux-based server. AWStats produces outputs in the form of an easily readable graphical format. 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.AWStats (Advanced Web Statistics) is a freely available analytics tool that is used to generate web/FTP/mail statistics by analyzing the available logs in a server. 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/.Install AWStats with Synaptic or sudo apt-get install awstatsĪwstats configuration files in Ubuntu are located in /etc/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. AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |