![]() If you want to see your website stats use below link but don t forget to use your own Server IP and domain name in that link For example, we want to update website stats after every every 59 mins so we will configure cron job using below commandsĬreate cron job using below command crontab -eĪdd below lines in cron file */59 * * * * root /usr/share/awstats/-update You setup a cron job to keep updating your website statistics at specific time interval. If you face any error during execution of above command, use below command and try again, mkdir /var/log/httpd/-access_log Step 5: Setting up Cron Job Note: don’t forget to replace -config= with your domain name. Update your website statistics from current logs using below command Now save changes to file and restart apache systemctl restart httpd vi /etc/awstats/Īnd modify below lines in this file with your domain name Then make some changes in “ ” file, use below command to edit it. Now you need to make a configuration file for desired website so we can check its statistics.You can make separate file for each website.Ĭreate a copy of default AWStats configuration file with your domain name using below command cp /etc/awstats/ /etc/awstats/ systemctl restart httpd Step 4: Create AWStats Configuration File for Website In this article we will not edit this file. ![]() once you made the changes restart apache using below command. AWStats generates an default Apache configuration file /etc/httpd/conf.d/nf This file allows access to all IP addresses but if you want to access Awstats from the particular network or IP addresses then modify the “Allow from” section in this file with your desired network IP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |