nixCraft Linux Sys Admin Blog |
| Lighttpd Install and Configure AwStats Software Log Analyzer Posted: 29 Apr 2008 12:08 AM CDT AWStats is a free powerful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly. It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C log format) and a lot of other web, proxy, wap, streaming servers, mail servers and some ftp servers. You can easily configure awstats under Lighttpd web server. Step # 1: Install awstatsVisit project web site to grab latest stable version. Important Configuration Files
Step # 2: Configure lighttpdOpen lighttpd.conf file and configure perl cgi access (see tutorial for more info): alias.url = ( "/awstatsclasses" => "/usr/local/awstats/wwwroot/classes/", "/awstatscss" => "/usr/local/awstats/wwwroot/css/", "/awstatsicons" => "/usr/local/awstats/wwwroot/icon/", "/awstats/" => "/usr/local/awstats/wwwroot/cgi-bin/", "/icon/" => "/usr/local/awstats/wwwroot/icon/" ) # provide awstats cgi-bin access $HTTP["url"] =~ "/awstats/" { cgi.assign = ( ".pl" => "/usr/bin/perl" ) } Save and close the file. Restart lighttpd: Step # 3: Configure domainMake a copy of default configuration file awstats.model.conf as awstats.domain.com.conf:
Save and close the file. Create dataDir: Step 4: Generate statsType the following command at a shell prompt: Create/Update database for config "/etc/awstats/awstats.theos.in.conf" by AWStats version 6.7 (build 1.892) From data in log file "/var/log/lighttpd/theos.in/access.log"... Phase 1 : First bypass old records, searching new record... Direct access after last parsed record (after line 50894) Jumped lines in file: 50894 Found 50894 already parsed records. Parsed lines in file: 47047 Found 0 dropped records, Found 0 corrupted records, Found 0 old records, Found 47047 new qualified records. Step 5: View statsFire a web browser and type url:
Password protect your statsUse mod_auth to setup a secure password protected area under Lighttpd. Automatically update statsSimply create a shell script to update all domains - /etc/cron.daily/01awstats via a cron job: #!/bin/bash # path to cgi-bin AWS=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl # append your domain DOMAINS="theos.in cyberciti.biz nixcraft.com cricketnow.in vivekgite.com" # loop through all domains for d in ${DOMAINS} do ${AWS} -update -config=${d} done Save and close the file. Test your script: Recommended readings:
Related Posts:
© Lighttpd Install and Configure AwStats Software Log Analyzer - nixCraft - Support nixCraft when you shop at amazon. Thanks! |
| Ubuntu Linux Usability Testing with Girlfriend Posted: 28 Apr 2008 11:16 PM CDT Finally someone is doing Ubuntu Linux usability testing with a girlfriend. The new user was given a couple of common tasks over a default installation of Ubuntu. I hope, the Linux distributions can learn a lot from this article and improve Linux user experience on a desktop computer. From the post:
=> The Great Ubuntu-Girlfriend Experiment (via slashdot) Related Posts:
© Ubuntu Linux Usability Testing with Girlfriend - nixCraft - Support nixCraft when you shop at amazon. Thanks! |
| Hans Reiser Guilty of First Degree Murder Posted: 28 Apr 2008 10:52 PM CDT Hans was deeply involved in Linux kernel development with his widespread ReiserFS journaling file system and its successor Reiser4. Reiser's estranged wife, Nina Reiser, disappeared on September 3, 2006; Reiser was convicted of her murder on April 28, 2008:
Related Posts:© Hans Reiser Guilty of First Degree Murder - nixCraft - Support nixCraft when you shop at amazon. Thanks! |
| How To Extract a Single File / Directory from Tarball Archive Posted: 28 Apr 2008 11:04 PM CDT How do I extract a single file or directory form a tarball under UNIX / Linux shell prompt? How do I restore a single file from /dev/st0 tape device? Answer to "How To Extract a Single File / Directory from Tarball Archive" Copyright © nixCraft. All Rights Reserved. Support nixCraft when you shop at amazon. Thanks! |
| You are subscribed to email updates from nixCraft Linux Sys Admin Blog To stop receiving these emails, you may unsubscribe now. | Email Delivery powered by FeedBurner |
| Inbox too full? | |
| If you prefer to unsubscribe via postal mail, write to: nixCraft Linux Sys Admin Blog, c/o FeedBurner, 20 W Kinzie, 9th Floor, Chicago IL USA 60610 | |
No comments:
Post a Comment