![]() ![]() # Use 0 for n if you need current year, month, day, hour. # %Dw-n is replaced with the day number in week (0-6, 0=sunday) # %DW-n is replaced with the day number in week (1-7, 1=sunday) # %Wy-n is replaced with the week number in year (00-51) # %WY-n is replaced with the week number in year (01-52) # %Wm-n is replaced with the week number in month (0-4) # %WM-n is replaced with the week number in month (1-5) # %NS-n is replaced with number of seconds at 00:00 since 1970 # %HH-n is replaced with hour we were n hours ago 33 I have many old log files (apache) and they span 3 different VPS servers I've had so there are different sets with the same name: old vps 1 (jan. # %DD-n is replaced with day we were n hours ago # %MO-n is replaced with 3 letters month we were n hours ago # %MM-n is replaced with 2 digits month we were n hours ago # %YY-n is replaced with 2 digits year we were n hours ago # %YYYY-n is replaced with 4 digits year we were n hours ago # depending on date or time (Replacement is made by AWStats at the beginning # You can also use tags in this filename if you need a dynamic file name # Possible values: A full path, or a relative path from directory. # "LogFile" contains the web, ftp or mail server log file to analyze. ![]() Awesome.So I realized AWSTATS provides tags which you can use to dynamically represent the date which means you don't have to manually change the date each day (whether it be with custom code or actually changing the LogFile path each day). # This is to permit URL access to scripts/files in AWStats directory.Īnd there's AWStats in the browser. ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/" # Directives to allow use of AWStats as a CGIĪlias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"Īlias /awstatscss "/usr/local/awstats/wwwroot/css/"Īlias /awstatsicons "/usr/local/awstats/wwwroot/icon/" Reinstated the AWStats configuration changes to etc/apache2/nf: # Then: a2enmod cgiĬommented out the changes AWStats had made, ran a2enmod, restarted and 'Hello World' worked. To do so, first remove (or comment out) the things you've already added. Note that in Debian, there's an advanced configuration system which would have done all of this for you, if you would have used it -) Apache/2.4.41 (Ubuntu) Server at Port 443. What you want to do is ensure that you have something like That means you haven't configured authorization for your webserver. Posted a more useful question, joined the Debian email list and was referred to the docs: /usr/share/doc/apache2/README.Debian then got the following SO response: Hmmm: AH01630: client denied by server configuration: /usr/local/apache2 Cool!Ĭhecked Apache error log: $ sudo cat /var/log/apache2/error.log awstats will use the LogFormat directive from your nf file and replace it with the awstats identifiers. Shows a tree of files, ownerships and permissions. Someone at Linode (web hosting) recommended using to check file permissions: sudo apt-get install tree Played around with changing ownerships of various files to and from root:root, myusername:www-data. Made sure all permissions were 755 for directories and 644 for files. AWStats is short for Advanced Web Statistics. It works with IIS 5.0+, Apache and all major web, wap, proxy, streaming server log. First (useful) thing I did was just post a simple "hello world" script in the cgi-bin: #!/usr/bin/perl Free real-time logfile analyzer to get advanced web statistics. AWStats (Advanced Web Statistics) is a powerful, full-featured web server logfile analyzer which shows you all your Web statistics including: visitors, pages, hits, hours, search engines, keywords used to find your site, broken links, robots and many more. ![]()
0 Comments
Leave a Reply. |