![]() If this does not work for you, please go through the howto more slowly and double check every setting as well as your Apache httpd error logs:Ĭommon mistakes are: Typos, file permissions, file ownership, improper or conflicting Apache httpd Options directives or other Apache httpd config errors.You should now be able to go to: or and see your sites stats. Troubleshooting & TestingĮxplanation troubleshooting basics and expectations. If it does not work, try double checking the steps or join #centoshelp or #httpd on Freenode for further assistance. Now, try hitting your site at: You should be prompted for a username and password for your user. Finally, to update our stats automatically every hour via cron we do the following:Īdd this line before exit 0, save and exit:.Next we’ll call the Awstats perl script to automatically update our stats right now:.Next let’s restart Apache httpd so our changes take effect:.Note: The LogFile directive must be the same as the httpd CustomLog directive for the site we actually want the stats from (). LoadPlugin=”geoip_city_maxmind GEOIP_STANDARD /var/www/GeoIP/GeoLiteCity.dat”.( using the MaxMind direct download method) LoadPlugin=”geoip GEOIP_STANDARD /var/www/GeoIP/GeoIP.dat”.LoadPlugin=”geoip GEOIP_STANDARD /var/lib/GeoIP/GeoIP.dat”.Now let’s edit the .conf we created above.ScriptAlias /awstats/ "/var/www//stats/cgi-bin/"ĪuthUserFile /var/AuthGroupFile /dev/null ScriptAlias /cgi-bin/ /var/combinedĮrrorLog logs/_error_logĪlias /classes "/var//icon "/var/www//stats/icon/" We'll be adding this subdomain to track the above domains stats: ![]() You should already have a domain configured that you’d like to track the stats of like this: Next let’s alter the Apache httpd nf file and add an entry for our new subdomain:Īdd this information in /etc//nf.Mkdir /var/& mkdir /var/Next we copy the Awstats program files to our newly created /cgi-bin directory:Ĭd /usr/share/awstats/wwwroot/ & cp -R * /var/www//stats/ For security purposes the default Apache httpd documentRoot in Centos is /var/www/ Next we create the directories for the new subdomain.After successful install of the above software we will make a copy of the default Awstats config that we can use over and over:Ĭopy default conf so we always have a clean starting point if something goes wrong.Ĭp /etc/awstats/ /etc/awstats/Ĭp /etc/awstats/ /etc/awstats/.conf.Sudo mkdir /var/www/GeoIP cd /var/www/GeoIP If you choose to use only the MaxMind files directly, you can put them in /var/www/GeoIP as follows: Since there is no Centos package for the GeoLiteCity.dat you can get the single file from MaxMind as well as updated GeoIP.dat files here: Yum -enablerepo=epel install awstats GeoIP-data perl-Geo-IP Installing the EPEL software repository, Awstats and optional components for Geo tracking:Ĭlick the EPEL link for more verbose instructions or give this command:.In this howto we will assume: you are root, you own and have administrative access to create the subdomain. Apache httpd configured properly with the domain you want to track with Awstats.Root access to an official current Centos system.Administrative control over your domain and DNS.The purpose of this particular setup is to give a stats link to your customers or for your own sites that will show the actual stats as recorded by the Apache httpd log files so you or your customers can contrast and compare with Google Analytics or other stats. You are running an official copy of Centos and not a datacenter clone/image, cPanel or other Centos derivative.(New-Object ).DownloadFile("", "C:_Install Files$($AwStats_WebApp.FolderName)SolidCP-AWStatsViewer-$dSolidCPversion.This howto will show you how to configure Apache httpd to display unique stats on from for as many domains as you have configured. Now i have install it like this on my portal server, probably you dont need to make any modification in the install script, but i did not want to have some things that the script is installingĪnd it was complaining about ROW 4737 that it couldnt find the download path. i was trying to install that on one of my webservers. I had some problem before with Awstat 400 and i couldnt solve it. Now i have a working solution so maybe this will help someone.
0 Comments
Leave a Reply. |