
Replace with : HostAliases=” localhost 127.0.0.1″ Replace the value with “W” for analyzing web server log files, “S” for a streaming server log file, “M” for mail log files, “F” for ftp log files.Ĭ) Check if LogFormat has the value “1” (it means “NCSA apache combined/ELF/XLF log format”) or use a personalized log format if you don’t use combined log format.ĭ) Check if SiteDomain parameter with the main domain name or the intranet web server name used to reach the web site to analyze (Example: E) If you have several possible name for same site, add list in HostAlias parameter:įind : HostAliases=”localhost 127.0.0.1 REGEX” Note that the directory seperator is /)ī) Change log file type (Optional, typically no need to change)

If you change your Apache path, please input accordingly. (Important: The setting is for default Apache installation path. Replace with : LogFile=”C:/Program Files/Apache Group/Apache2/logs/access_log” nfįind : LogFile=”/var/log/apache/access.log” It has been reported that sometime the CustomLog is not changed from common to combined.Īdditional Configuration at Main Parameters of awstats.
#Customize awstats for mac os
– For Mac OS X, Windows and other operating systems: the same directory as (cgi-bin).Ĭheck through the nf is configured properly according to steps above. – For Linux/BSD/Unix users: /etc/awstats. mysite.Īwstats_ will create a new file called by copying the template file. Enter an appropriate name such as that of your web server or the virtual domain to be analyzed, i.e. This is an example of the type of records you should see inserted in your new log file after Apache was restarted:Ħ2.161.78.75 – – “GET / HTTP/1.1” 200 1234 “” “Mozilla/4.0 (compatible MSIE 5.01 Windows NT 5.0)”ĭ) awstats_ will ask you for a name for the configuration profile file. To be sure the log format change is effective, go to your homepage. # This is to permit URL access to scripts/files in AWStats directory.Ĭ) if changes were made as indicated in parts A and B, awstats_ restarts Apache to apply the changes. ScriptAlias /awstats/ “/usr/local/awstats/wwwroot/cgi-bin/” # Note that path “/usr/local/awstats/” must reflect your AWStats Installation path.Īlias /awstatsclasses “/usr/local/awstats/wwwroot/classes/”Īlias /awstatscss “/usr/local/awstats/wwwroot/css/”Īlias /awstatsicons “/usr/local/awstats/wwwroot/icon/” # Directives to add to your Apache conf file to allow use of AWStats as a CGI.
#Customize awstats manual
See the Apache manual for more information on this directive (possibly installed on your server as B) awstats_ will then add, if not already present, the following directives to your Apache configuration file (note that the “/usr/local/awstats/wwwroot” path might differ according to your distribution or OS: If you answer yes, awstats_ will modify your nf, changing the following directive from:ĬustomLog /yourlogpath/yourlogfile commonĬustomLog /yourlogpath/yourlogfile combined If you use a common log, awstats_ will suggest changing it to the NCSA combined/XLF/ELF format (you can use your own custom log format but this predefined log format is often the best choice and makes setup easier). This is what the script does/asks (you can do all these steps manually instead of running awstats_ (automatically launch by Windows installer) if you prefer):Ī) awstats_ tries to determine your current log format from your Apache web server configuration file nf (it asks for the path if not found). To execute it use (if location of perl.exe is within your path environment): If you’re not using the Windows installer, you can find the script in the AWStats tools directory. Setup and Configuration for Apache Web ServerĪWStats installer will automatically launches the awstats_ script to do several setup actions. Then click on “Install” to start the installation. You may want to change the installation folder here.


Launch the AWStats setup file by double clicking on the executable that just has been downloaded. Choose the setup package that ended with.
#Customize awstats download
Download latest stable release of AWStats from.
