Update below settings in the configuration file: LogFile="/var/log/apache2/-access_log" For this copy the AWStats example configuration file with a new name (preferably with the website name) and make changes as below. Each of the websites hosted in the server needs to have its own AWStats configuration file. Restart Apache service for the changes to be made effective: # systemctl restart apache2Ĭreate AWStats configuration files for websites now. # sudo vi /etc/apache2/conf-available/nfĪdd in the below configuration settings, where 123.123.123.123 denotes the network IP address from which the AWStats is to be accessed.Įnable the CGI/CGID module (if it is not enabled already) and also enable the AWStats apache configuration by running the below commands: # sudo a2enmod cgi For this, create a new AWStats configuration file using any editor. # sudo apt-get install awstatsĪn Apache configuration file needs to be created for the AWStats setup. The below steps can be followed to install and configure AWStats in a Ubuntu/Debian server, which already has an Apache webserver running in it.Įxecute the below command to install AWStats and all its related dependencies. Open the crontab using any editor: # vi /etc/crontabĪdd the below line to the end of the crontab file: 0 2 * * * /usr/bin/perl /usr/share/awstats/**-updateĪWStats can now be accessed through a browser using the server IP in the format of the below link. HostAliases=" Execute below command for updating the log files: # perl /usr/share/awstats/-updateĬreate a cronjob to update the AWStats database on a regular basis using newly created log entries from the server. Update below settings in the configuration file: LogFile="/var/log/httpd/-access_log" Open the newly renamed website configuration file using any editor: # vi /etc/awstats/ Note: The website name has been considered as as an example in the above command. Restart Apache service for the changes to be made effective: # systemctl restart httpdĬreate AWStats configuration files for websites now. If AWStats needs to be accessed externally from a specific network, the IP address of the network needs to be allowed in the AWStats configuration file.įor this, open the AWStats configuration file using any editor: # vi /etc/httpd/conf.d/nfĪdd in the network IP (example: 123.123.123.123) using Allow from directive as per below. This default configuration is useful except in cases of allowing from access. Start to configure Apache for AWStats, the default AWStats configuration file is located at the path /etc/httpd/conf.d/nf. To install AWStats which the server already has Apache webserver installed in it, execute the below command to install AWStats and all required dependencies using YUM. The below command can be executed in order to install the EPEL repository on the server. The below steps can be followed to install and configure AWStats in a CentOS/Fedora server, which already has an Apache webserver running in it. This guide outlines the basic steps involved in the installation of AWStats in a Linux server (provided Apache service is already installed in the server). This can easily be installed on a Linux-based server. AWStats produces outputs in the form of an easily readable graphical format. AWStats (Advanced Web Statistics) is a freely available analytics tool that is used to generate web/FTP/mail statistics by analyzing the available logs in a server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |