

Phase 2 : Now process new records (Flush history on disk after 20000 hosts). Searching new records from beginning of log file. Phase 1 : First bypass old records, searching new record. You can generate it with the following command: /usr/share/awstats/You should get the following output: Create/Update database for config "/etc/awstats/.conf" by AWStats version 7.8 (build 20200416)įrom data in log file "/var/log/httpd/test_access.log". Next, you will need to generate your initial statistics from the current Apache logs. Step 5 – Generate Web Statistics from Apache Logs Save and close the file when you are finished. Next, edit the configuration file: nano /etc/awstats/.confĬhange the following lines: LogFile="/var/log/httpd/test_access.log" To do so, create a copy of the main configuration file to the file that matches your domain name: cp /etc/awstats/ /etc/awstats/.conf Here, you will need to create a separate configuration file for your domain. Step 4 – Configure AWStatsīy default, AWStats all configuration files are located inside /etc/awstats/ directory. Once the installation is completed, you can proceed to the next step. Next, install the AWStats with the following command: yum install awstats -y You can add it with the following command: yum install epel-release -y Save and close the file, then restart the Apache service to apply the changes: systemctl restart httpd Step 3 – Install AWStatsīy default, AWStats is not available in the CentOS 7 default repo, so you will need to add EPEL repo to your system. Next, create a new virtual host configuration file with the following command: nano /etc/httpd/conf.d/nfĬustomLog /var/log/httpd/test_access.log combined Once the installation is completed, start the Apache service and enable it to start at system reboot with the following command: systemctl start httpd Next, edit your /etc/hosts file and setup a fully qualified domain name as shown below: nano /etc/hostsĪdd the following line: your-server-ip įor this article, you will need to install the Apache webserver and create a virtual host configuration file for domain .įirst, install the Apache package with the following command: yum install httpd -y Once you are logged in to your CentOS 7 server, run the following command to update your base system with the latest available packages. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Create a new server, choosing CentOS 7 as the operating system with at least 2GB RAM. Step 1 – Create Atlantic.Net Cloud Serverįirst, log in to your Atlantic.Net Cloud Server. A root password configured on your server.A valid domain name pointed to your server.A fresh CentOS 7 server on the Atlantic.Net Cloud Platform.In this post, we will show you how to install AWStats on CentOS 7.

It also displays information about visitors OS, IP, Browser, Search engine, Screen size, and keywords used to find your website.7 AWStats is a very useful tool that helps you to monitor your website traffic, the number of visits, unique visitors, visit duration, and other data. It uses log files to analyze log files from Apache, Nginx, IIS, and other web servers. AWStats, also known as “Advanced Web Statistics,” is an open-source web analytics software written in Perl.
