
With this first Apache HTTP adjustments we can now move to the next task which is installing AWStats itself on FreeBSD. # ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/" ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/" You’ll need to edit and comment out all that Directory entry in block. Restart Apache HTTP after that so changes take effect.īe aware of the Directory directive since it’s a bit longer than just one line. Let’s just edit those and comment out using your favorite editor. Let’s find out where the default ‘cgi-bin’ data path entry and ‘ScriptAlias’ are present in Apache’s HTTP main configuration grep -n 'cgi-bin' /usr/local/etc/apache24/nfģ75: ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"ģ87:# "/usr/local/www/apache24/cgi-bin" should be changed to whatever your ScriptAliasedĤ67:#ErrorDocument 404 is an ScriptAlias entry on the line 375 and a ‘cgi-bin’ path declared on a Directory directive on the line 390. This is a security concern since any path for scripts that will not be used, specially the default ones, must be disabled so a potential attacker can’t make use of them. The automatic script we’ll use on Step 2 does that change automatically, however it leaves the default path untouched. With the CGI module enabled on Apache HTTP we need to adjust the path of the CGI scripts location from the default one to the AWStats one. Adjust CGI scripts path and aliases in Apache HTTP. To check the CGI module is really enabled use this next apachectl -M | grep cgiĬgid_module highlighted line is the one you need to see to certify the CGI module is enabled on an Event MPM configured Apache HTTP box. Use your favorite editor for such task and restart Apache HTTP so the changes take apachectl restart Mpm_event_module my case I’m using the Event MPM, so I must uncomment line 166.
#AWSTATS TOOL HOW TO#
If in doubt of what MPM module you’re using here’s how to find out which MPM is being apachectl -M | grep mpm 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.

We’ll first look for the module’s configuration line on the main Apache’s HTTP config 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 on the Apache’s MPM module we’re using we’ll enable the CGI capability by uncommenting the lines 166 or 169. 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.

Mind Vultr supports FreeBSD on their VPS offer.īut probably that extends to a FreeBSD with a FAMP stack on.
#AWSTATS TOOL FOR FREE#
Get $100 credit for free at Vultr using this link and support costs. Use this link to get $200 credit at DigitalOcean and support costs. If you find the articles in useful to you, please consider making a donation.
#AWSTATS TOOL INSTALL#
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.
#AWSTATS TOOL SOFTWARE#
AWStats is a very powerful and useful software allowing webmasters count the visits to their managed websites.
