Use your favorite editor for such task and restart Apache HTTP so the changes take effect. In my case I’m using the Event MPM, so I must uncomment line 166. If in doubt of what MPM module you’re using here’s how to find out which MPM is being used. However, if you’ve used the more performant Event enabled one (already linked in the pre-requisites section), you will need to uncomment line 166. If you’ve used my Github’s script for a standard FAMP stack box you’re surely using the Pre-fork MPM, hence you need to uncomment line 169. ]# grep -n -B1 'mod_cgi' /usr/local/etc/apache24/nfġ66: LoadModule cgid_module libexec/apache24/mod_cgid.soġ69: #LoadModule cgi_module libexec/apache24/mod_cgi.soģ81- # ScriptSock: On threaded servers, designate the path to the UNIXģ82: # socket used to communicate with the CGI daemon of mod_cgid.ĭepending on the Apache’s MPM module we’re using we’ll enable the CGI capability by uncommenting the lines 166 or 169. We’ll first look for the module’s configuration line on the main Apache’s HTTP config file. Configure Apache HTTP to use CGI scriptsĪWStats makes use of CGI scripts but Apache HTTP on FreeBSD has the module to execute those scripts disabled by default. Github script in case you want to automate your install. Use this link to get 100 $ credit at DigitalOcean and support hosting costs.īut probably that extends to a FreeBSD with a FAMP stack on. This same setup can be built in DigitalOcean. This article is a how to install AWStats on FreeBSD using the Apache HTTP web server. It can be used with Apache but with Nginx as well. Here comes in AWStats in the modern web sphere. However, nowadays not everyone is using Google Analytics services and even it may be difficult to make use of it for corporations and governmental agencies alike. The tool is basically coded in Perl and it was a very popular choice before Google made it way easy when they launched their Google Analytics tool. # Example: "/pathtotools/ *.AWStats is a very powerful and useful software allowing webmasters count the visits to their managed websites. # If there are several log files from load balancing servers : # You can also use a pipe if log file come from a pipe : # 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 # %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. 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).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |