If you don’t have a password that can be used for this purpose, the command htpasswd can do it for you. Open your apache2 configuration file # nano /etc/apache2/sites-available/ĪuthUserFile '/usr/lib/cgi-bin/.htpasswd' htaccessĪ basic, simple way of restricting access is to set up a http password. Phase 2 : Now process new records (Flush history on disk after 20000 hosts).įound 4258 new qualified records. Searching new records from beginning of log file. Phase 1 : First bypass old records, searching new record. # /usr/lib/cgi-bin/ -config= -updateĪfter it is done, if it is successful, with no errors, you should get some output like: Create/Update database for config "/etc/awstats/nf" by AWStats version 7.8 (build 20200416)įrom data in log file "/var/log/apache2/access.log". It is all right, you just have to manually run the first update. The top line displays the time when statistics were updated. You can see how the installation is progressing by pointing your web browser to: # To implement the changes, restart Apache webserver: # systemctl restart apache2 Then enable the "cgi" module in Apache: # /usr/sbin/a2enmod cgi To enable this conf run the command: # ln -s /etc/apache2/conf-available/nf /etc/apache2/conf-enabled/nf ![]() Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Paste the content as shown below: Alias /awstatsclasses "/usr/share/awstats/lib/"Īlias /awstats-icon "/usr/share/awstats/icon/"Īlias /awstatscss "/usr/share/doc/awstats/examples/css" Open the Apache configuration file /etc/apache2/conf-available/nf : # nano /etc/apache2/conf-available/nf LoadPlugin="tooltips" Step 5: Configure Apache for AWStats Once the installation routine is completed, edit the file nf as follows: LogFile="/var/log/apache2/access.log" To get GeoIP information install the following Perl packages: # apt install libgeo-ip-perl libgeo-ipfree-perl Step 4: Configure AWStats It will resolve dependencies, run a transaction check, and install the necessary packages. This command will start the installation process. To install AWStats, you need to run the following command: # apt install awstats Process: 928 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled preset: enabled) Verify the status of the Apache service using systemctl status command: # systemctl status apache2 ![]() You can install it via apt package manager by executing the following command. Update your Debian 12 operating system to the latest version with the following command: # apt update & apt upgrade Step 2: Install Apache webserver ![]() In this tutorial, we will show you how to install AWStats on Debian 12 OS. It’s important to note that AWStats relies on server log files, so it may not provide real-time data and requires proper configuration to work effectively. It provides detailed information about various aspects of web traffic and visitor behavior on a website. AWStats (Advanced Web Statistics) is an open-source web analytics tool that analyzes and generates comprehensive reports about web server log files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |