

Save and exit the file & restart apache service sudo systemctl restart This command creates a new password file and sets the password for the “admin” user: sudo htpasswd -c /etc/apache2/.htpasswd adminĮdit /etc/httpd/conf.d/nf and add the following in the file. To add HTTP Authentication to AWStats, follow the below steps :ġ. NOTE: As AWStats is allowed to access from all networks, it is advised to add HTTP Authentication on AWStats. (Change the domain name at the end of the URL to match your own.)

Now you can access your AWStats by visiting the URL: Phase 1 : First bypass old records, searching new record.ĭirect access after last parsed record (after line 209) The output will look something like this: From data in log file "/var/log/httpd/access_log". You can use this command for it: sudo /usr/share/awstats/-update Restart the Apache service to reload the new settings: sudo systemctl restart httpdĪfter doing the above changes, you need to build your initial statistics, which will be generated from the current logs on your server.
Awstats install update#
Update the following lines: # Change to Apache log file, by default it's /var/log/apache2/access.log Next, make the following changes in the config file sudo vim /etc/awstats/ NOTE: You need to create a separate configuration file for each website for which you wish to view statistics.įirst, create a copy of the default AWStats configuration file with your domain name: sudo cp /etc/awstats/ etc/awstats/ Here are the steps in installing AWstats on Apache Web Server as your web log analyzer and statistics: STEPS: Assuming VirtualHost setting is already added. Here, we will create a configuration file for the domain. Restart the Apache service to reload new settings sudo systemctl restart httpd If you want to access AWStats from all networks, then you will need to update the settings as follows. Configure AWStats for ApacheĪWStats creates an Apache configuration file /etc/httpd/conf.d/nf by default. NOTE: The mentioned steps are performed on CentOS 7 server. AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. You need to follow all the steps carefully to setup the AWStats for Apache.
Awstats install how to#
This tutorial shows how to install and configure AWStats for Apache. The AWStats is the most widely used log analyzer program with Apache Web Servers on Respective Enterprise Linux. AWStats analyzes server log files and produces HTML reports in a nice graphical display. It generates advanced web, streaming, FTP, or mail server statistics. AWStats (Advanced Web Statistics) is a free web analytics reporting tool.
