ScriptAlias /awstats/ "/usr/local/awstats/httpd -M | grep cgi proxy_fcgi_module (shared) Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"Īlias /awstatscss "/usr/local/awstats/wwwroot/css/"Īlias /awstatsicons "/usr/local/awstats/wwwroot/icon/" Within the configuration file, you need to define the location of the AWStats CGI/perf configuration files as the root directory. In order to be able to view the statistics generated above on the browser, you need to create an Apache configuration file to define how to process and server the AWStats.Ĭreate AWStats configuration file vim /etc/httpd/conf.d/nf Phase 2 : Now process new records (Flush history on disk after 20000 hosts).įound 7421 new qualified records. Searching new records from beginning of log file. Phase 1 : First bypass old records, searching new record. You can now generate your initial statistics from the current Apache logs on your Web server /usr/local/awstats/-update Create/Update database for config "/etc/awstats/.conf" by AWStats version 7.8 (build 20200416)įrom data in log file "/var/log/httpd/_log". For the basic setup, that is just enough. The configuration is highly commented and you can proceed to make othe configuration changes. Set all other possible domain names, addresses or virtual host aliases someone can use to access your site. ![]() For Apache logs LogFormat=1ĭefine the domain name on which your web server is reached on SiteDomain="" This must match the log format defined on the web server configuration file. See the possible options on the configuration file. LogFile="/var/log/httpd/_log"Įnter the log file type you want to analyze. In this case, we will be using the default Apache access log file. vim /etc/awstats/.confĭefine the path to the Web server log file to analyze. Next, open your configuration file for editing. This creates a copy of the main configuration file with the FQDN of your server ls /etc/awstats/ .conf Open HTTP Server on Firewall firewall-cmd -add-port=.conf Start and enable Web Server to run on system boot. For the demo purposes, we will use Apache HTTP server. We assume that you are installing AWStats on server with a web server setup and running already. Run system update dnf update Install a WebServer on CentOS 8
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |