It is a good idea to set up a cron job to regularly update the AWStats database using newly-created log entries. 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 do this using: sudo /usr/share/awstats/-update Restart the Apache service to reload the new settings: sudo apachectl restartĪfter these changes, you need to build your initial statistics, which will be generated from the current logs on your server. # When this parameter is set to 1, AWStats adds a button on report page to allow to "update" statistics from a web browser Update the following lines: # Change to Apache log file, by default it's /var/log/apache2/access.log Next you will need to make some changes in the config file: sudo nano /etc/awstats/ Here, we will create a configuration file for the domain.įirst, create a copy of the default AWStats configuration file with your domain name: sudo cp /etc/awstats/ etc/awstats/ You need to create a configuration file for each website for which you wish to view statistics. Restart the Apache service to reload new settings sudo apachectl restart Substitute your own IP address for the sample address 192.168.1.0: Update the following lines as shown below. You can do this by editing the AWStats config file: sudo nano /etc/httpd/conf.d/nf If you need to access AWStats from the network, then you need to update the Allow from and Require with your server's IP address. sudo yum -enablerepo=epel install awstatsīy default AWStats creates an Apache configuration file /etc/httpd/conf.d/nf. This will also install all other required dependencies. Next, install the awstats package using Yum. You can install and enable the EPEL repository by running the following command: sudo rpm -ivh You will need to install the EPEL Yum repository on the server. 7 with Apache installedīy default the AWStats package is not available in the CentOS 7 repository. In this tutorial, I will explain how to install and configure AWStats on CentOS 7 Requirements It supports most web server log file formats including Apache and IIS. It presents all the information contained your log files in a few easy-to-read web pages. The AWStats log analyzer works as either a CGI program or from the command line. AWStats analyzes server log files and produces HTML reports in a nice graphical display. AWStats is a free (and very useful) web analytics reporting tool which generates advanced web, streaming, FTP, or mail server statistics.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |