If you have not used vi before or have been scared by the stories do not fear and follow these instructions. You now need to edit this with an editor. So far so good we need to now modify the awstats configuration file. If all is well you will get a little in the right hand side. The method I used was to issue the command $ sudo chown root:www-data /var/log/apache2/access.log $ sudo chown -R www-data:www-data /var/lib/awstats/ $ sudo chown -R -dereference www-data:www-data wwwroot $ sudo ln -s /usr/lib/cgi-bin/ wwwroot/cgi-bin/ $ sudo ln -s /usr/share/awstats/* wwwroot/ $ sudo ln -s /usr/local/awstats/css/ wwwroot/ These lines added to nf do not match the directory structure so I added the recommended links to the real ones modifying again for the Apache2 structure. # This is to permit URL access to scripts/files in AWStats directory. 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/" The final part of this file will have these lines added to it. Once run successfully the perl script will add some lines to nf. If your unique name given was foo then you will end up with a file called. You just need to enter this location after the script complains about not finding nf.Įnter /etc/apache2/nf when prompted for nf location and give the configuration file a unique name such as your domain name. This is because Apache2 in Ubunto’s default configuration is called nf. Now we need to run the perl script, which immediately failed because it cannot find nf. I then followed anniec’s instructions more or less, but modifying them for Apache2 rather than Apache. I made a backup $ sudo cp then copied it to /usr/local/awstats. $ sudo gunzip which will give you a copy of. In this directory you will find a compressed copy of the main config file called. You can use mv (move) as well, I just wasn’t sure what I was doing so wanted to keep a virgin copy at hand and maybe Ubuntu may yet need it. $ sudo cp /usr/share/doc/awstats/examples $sudo cp /etc/apache2/nf /etc/apache2/ĪWSTATS in ubunto seems to dump all the files into /usr/share/doc/awstats/examples so step one was to copy them all over to the documented directory /usr/local/awstats. script you needs to get your directories in shape and make a backup of your Apache2 config file as it is modified during this process. ![]() I wish I had bookmarked some of the sites I got useful information from, just in a hurry I suppose but I didn’t other than one which was very useful, posted by anniec and gave me more than 90% of what I needed. Well it works just fine now so true to my word here is what I had to do. Where were wwwroot and the tools directory all the documententation kept referring to?Īfter 30 minutes of googling and forum searching I found a number of documents that just confused me so decided then if I got this thing going, I would write it up. ![]() Now what? I suppose I’ll have to read some documentation so went to () to find some interesting background reading and very little detail that matched my install. ![]() After under a minute of detailed research I decided to go for AWSTATS because it just looked better.ĭiving right in I did a $ sudo apt-get install awstats and was happy to find a package available and watched it install without any fuss. Proud of my little ADSL connected web server built on an old Gateway P200 was I, that I felt the need to add some stats pages. I have installed AWStats on my web server and posted the following guide to help others.Ī mini Howto tutorial - Getting AWSTATS working with APACHE2 in UBUNTU Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |