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. Maybe you can create a custom log only for awstats that contains only that kinda urls.ĬustomLog logname.AWStats, also known as “Advanced Web Statistics,” is an open-source web analytics software written in Perl. AFAIK that is not possible within awstats. So that param is not to do what you want. # will be reported as 2 hits on /mypage.cgi?param=abc # /mypage.cgi?param=abc&id=Yo4UomP9d and /mypage.cgi?param=abc&id=Mu8fdxl3r Posted: Fri 30 Sep '11 15:45 Post subject:Įnter here list of wanted parameters. URLWithQueryWithOnlyFollowingParameters="parameter=input"īut awstats counted other URLs too. freePrasadAvailability.do?parameter=input In the access.log, i am only interested in hits where the URL is I want AWSTATS to match and count only 4 specific urls, but could not achieve it using the I am using AWSTATS to analyse the httpd access.log creted by Apache. Posted: Thu 29 Sep '11 12:24 Post subject: custom configuration of AWSTATS
0 Comments
Leave a Reply. |