![]() It uses a partial information file to be able to process large log files. 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. 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 is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. 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 AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically.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. So, you either need to add the dash to AWStats log format string, or remove the dash from nginx log format. So, AWStats tries to interpret the second dash as a timestamp, and that causes it to consider the record as failed. For more help, get XChat and subscribe to channel "#awstats" on the Ubuntu Server. Now, your log file contains two dashes, first one from your configuration, and the second one means an empty username. 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. Now you can see all domain statistics on is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. For exampe, apache config dir may be /etc/httpd/įinally, restart Apache graceful (recommended) apachectl -k graceful Please check all paths, they are depend on your system. sudo apt-get update & sudo apt-get upgrade -y Step 2: Install awstats Installing awstats is simple. ![]() Step 1: Update And Upgrade Debian In to make sure you are using the most up-to-date software, you need to first do the following. Put in /etc/apache2/conf.d/nf (or create a new one): ScriptAlias /awstats-full /srv/www/cgi-binĪlias /awstats-icon /usr/share/apache2/icons/awstats This article will mainly just write awstats. htpasswd Īt last you need to config Apache web-server. $_ = $file # my perl doesn't works without assignment result of readdir # if you need to see also ftp etc, modify my code My $file my awstats config files are named like Opendir (DIRH, '/usr/local/psa/etc/awstats') || die # path depends on your system htaccess: AuthUserFile /srv/www/cgi-bin/.htpasswd The awstats conf file for domain1 ( nf) Changes done in the file:: LogFile'/var/log/httpd/do main1-acce ss.log' SiteDomain'' HostAliases' 192.168.1.1' DirData'/awstats/data' Cron entry to run every night at 4am: 0 4 /awstats/cgi-bin/awstatsu pdateall. It must be located in cgi-bin directory which lies near your vhosts. So, our task is to create superadmin-access for AWStats for viewing all domains statistics with only one password.įirst of all, find you file. It’s not comfortably when your server holds much more than one domain. ![]() And you must type here FTP password for the domain. By default in Plesk you can view AWstats statistics for each domain separately at.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |