3/16/2023 0 Comments Cgi bin awstats pl config![]() ![]() Download the latest build from –, for this tutorial version 7.7 was used.If you can’t find a PATH Variable, then simply click new and create one – Variable Name must be PATH and the value must be the path to your perl.exe directory eg in my case C:\xampp\perl\bin.Find the PATH variable and click edit -> Add the full path to the perl.exe folder eg in my case – C:\xampp_\perl\bin If there are already values in here, separate the last value with a semi-colon EG: C:\appData C:\xampp\perl\bin.Right Click My Computer -> Properties -> Advanced System Settings -> Environment Variables.This will make it much easier when using the command prompt, meaning you won’t have to specify explicit paths to the perl.exe. Add the PERL path variable to your computer (It may already be there after installing but just check in case).At any time that ‘XAMPP_WAMPP_INSTALL_DIRECTORY’ is specified within this tutorial, it needs to be replaced with Your XAMPP or WAMPP install directory.Please read through the following two steps, it is vital for you to understand before configuring your development environment with this how-to-tutorial. Important things to do and take note of before we start You must have a text editor installed to edit certain files.XAMPP/WAMPP must be installed, preferably to the C: Drive. ![]() To save you the hassle of banging your head against the desk for hours on end! Prerequisites This is the exact reason this tutorial is being made. ![]() ![]() The AWStats website doesn’t really clarify how to install it correctly on a windows machine. Perl awstats_ -config=sitename -awstatsprog=/web/cgi-bin/awstats.Installing AWStats with XAMPP or the WAMPP build can be quite tricky. You have to give it the path to the perl script, and a directory to put the static html files in. If you want to generate static html files run the awstats_ script found in the tools folder. Where sitename would be the name of your config file Now copy everything in the wwwroot folder to a web root, and visit if you want to view other domains use /cgi-bin/?config=othersitename Once that is setup you will want to update the database this is done from the command line by running perl config=sitename update You will probably want to edit the LogFile directive to point to where your logfile is stored, SiteDomain this is the main domain for the site, HostAliases lets you put in other domains for the site, and the DirData directive lets you specify where the awstats databases will be stored (each site will have its own file in the directory). Make sure your log files are using NCSA combined format, this is usually done in apache by saying CustomLog /logs/access.log combined you can use other formats but you have to customize the conf file. Here's a quick rundown of setting it up on unix/apacheĮach virtual web site you want to track stats for should have a file /etc/ the directives for the configuration file can be found here: they also provide a default conf file in cgi-bin/ you can use this as a base. You can either have generate static html files, or run with a perl script in the cgi-bin. awstats can be used on several web servers including IIS, and Apache. It looks a bit like web trends (though I haven't used web trends in several years). There are a lot of free http log file analysis tools out there that haven't been updated since the mid 90's, awstats however is both free, and up to date. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |