![]() # you must use the following syntax keys to define the log format string: # "your_own_personalized_log_format" = If your log is a personalized format, # 5 = ISA server native standard log format # With LogFormat=4, some features (browsers, os, keywords.) can't work. # 4 = Apache or Squid native common log format (NCSA common log format) # 1 = Apache native combined log format (NCSA combined/XLF/ELF log format) # Possible values: 1,2,3,4,5 or "your_own_personalized_log_format" ![]() # instructions in documentation know how to configure your web server to have # Put here your log format (Must match your web server config. # You can use 0 for n if you need current year, month, day, hour. # %WM-n is replaced with the week number in month (1-5) # %HH-n is replaced with hour we were n hours ago # %DD-n is replaced with day we were n hours ago # %MM-n is replaced with 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 server logfile to analyze. # MAIN SETUP SECTION (Required to make AWStats working) # it with its value when reading it), follow the example: # To include an environment variable in any parameter (AWStats will replace # Unix/Linux) or same directory than (Windows, Mac, Unix/Linux.) # The config file must be in /etc/opt/awstats, /etc/awstats or /etc (for # edit this new file to setup AWStats (See documentation in docs/ directory). Once you run the script, it will update the config file for you. Paste the contents below into the file to create the basic configuration for awstats. If you are running as root, make sure to change ownership of the file to the user the domain belongs to. ![]() # 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 -) 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 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. First (useful) thing I did was just post a simple "hello world" script in the cgi-bin: #!/usr/bin/perl
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |