8/2/2023 0 Comments Awstats install windows![]() ![]() Sed -i "s/#DOMAINAANALYSER#/$DOMAINAANALYSER/g" "$RESS_1" #RESS referer.blacklist /tmp/referer.blacklistīLACKREFERERFILE="/etc/awstats/referer.blacklist"ĪWDOMAINFILE="/etc/awstats/awstats.$nf" Name of the robot : installawstats-site Fichier /script.mtya #CHECK DOMAINAANALYSER Options ExecCGI -MultiViews SymLinksIfOwnerMatchĪlias /awstats-icon/ /usr/share/awstats/icon/Īutomaton for installing the AWSTATS website configuration file (see robots) ScriptAliasMatch ^/awstats\.pl$ /usr/lib/cgi-bin/ If thenĮcho " La configuration awstats existe déjà" usr/bin/htpasswd -b -c $HTPASSWD admin $PASSWORD # Get apg password root and mainuser (pi)Įcho " Génération des mots de passe (admin accès web awstats)" Sed -i "s/#DOMAINAWSTATS#/$DOMAINAWSTATS/g" $RESS_1Įcho " Installation du paquet DEBIAN : apt - générateur aléatoire de mot de passe"Īpt-get -y install apg > /dev/null 2>/dev/null Name of the robot : installawstats-Debian /script.mtya #CHECK DOMAINAWSTATSĪWAPACHECONF=/etc/apache2/sites-available/nfĪpt-get -y install apache2 awstats libgeoip1 libgeoip-dev AWSTATS installation robot (see Mytinydc-automation) The AWSTATS Debian package automatically installs the cron file: /etc/etc/cron.d/awstats, which performs the data collection every 10 minutes. usr/bin/perl /usr/lib/cgi-bin/ -update -config= This process can be started manually by the command: Data collection and statistics calculation Manual method The Debian awstats package includes the file /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh which starts the update of statistics before log rotation. Log rotation (logrotate)ĭata collection must be done before the automatic logs are rotated, otherwise you will lose data. You can find all awstat configuration directives on the official website. It’s necessary to create the configuration for the website to be analyzed: Target domain, location of the access.log file, as well as its domain Aliases (e.g. The AWSTATS script is a program written in Perl, executed by the apache2 server. ) and build the related Apache virtualhost. Create a new Apache virtual host file: nano /etc/httpd/conf.d/(**) Translated with AWSTATS and GeoIP perl installation apt-get install apache2 awstats libgeoip1 libgeoip-devĭetermine the domain name that will be used to consult the statistics (e.g.To set up Apache to work with AWStats, follow these steps: Save the changes and close the text editor.DirData: The directory where AWStats will store its data.SiteDomain: The domain name of your website.LogFile: The path to your Apache log file.Modify the following variables in the configuration file: Edit the newly created configuration file using your preferred text editor: nano /etc/awstats/.Replace “” in the above command with the name of your domain. Copy the example configuration file to a new file: mkdir /etc/awstats cp /var//etc/awstats/.Once AWStats is installed, you need to configure it to analyze your Apache logs. Move the extracted folder to the Apache web server’s root directory: mv awstats-7.9 /var/www/html/awstats.Extract the downloaded archive using the following command: tar xvzf awstats-7.9.tar.gz.Download the latest version of AWStats using the following command: wget. ![]() Install the required dependencies using the following command: sudo dnf install perl-Time-HiRes perl-libwww-perl.To install AWStats on your system, follow these steps: Perl and other required dependencies installed.Apache web server installed and configured.A VPS or dedicated server with a Linux operating system installed.The guide covers all the necessary prerequisites, including installing the required dependencies and the AWStats software, configuring AWStats to analyze Apache logs, setting up Apache to work with AWStats, and updating the AWStats database to analyze Apache logs.īy the end of this article, you’ll have a full understanding of how to install and set up AWStats on your Linux system and start analyzing your Apache logs to get valuable insights into your website’s traffic. ![]() This article provides a step-by-step guide on how to set up AWStats on CentOS, RHEL, and Fedora systems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |