marcelp1
Posts: 132
Joined: Mon Jun 11, 2012 8:41 pm

lighttpd/1.4.31 + AWStats version 7.0 (build 1.971)

Sun Jul 14, 2013 5:58 pm

I want to get stats for my rpi web server running lighttpd and AWStats looks just fine for that purpose,
but I can get it to work, here is what I did:

Code: Select all

sudo apt-get install awstats

Code: Select all

sudo nano /etc/lighttpd/lighttpd.conf
###########################
server.modules = (
"mod_accesslog",
"mod_fastcgi",
"mod_status",
"mod_cgi",
"mod_rewrite" )

Code: Select all

sudo lighttpd -t -f /etc/lighttpd/lighttpd.conf

Code: Select all

sudo nano /etc/awstats/awstats.conf
############################
# Change the LogFile variable to point to the lighttpd log file
LogFile="/var/log/lighttpd/access.log"

# Change the LogFormat to the log settings for lighttpd
LogFormat="%host %virtualname %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"

Code: Select all

sudo /usr/lib/cgi-bin/awstats.pl --update --config=test

http://RaspberryPiIPaddress/cgi-bin/awstats.pl


but I always get 404 - Not Found

xXAzazelXx
Posts: 137
Joined: Tue Sep 18, 2012 8:32 am
Location: Australia

Re: lighttpd/1.4.31 + AWStats version 7.0 (build 1.971)

Sun Jul 14, 2013 9:49 pm

never tried AWStats but Webalizer works like a charm

Return to “Networking and servers”