Sur-couche AJAX pour Awstats
Le package s’appelle Jawstats : http://www.jawstats.com/
Installation
mkdir /var/www/awstats-6.95/wwwroot/jawstats cd /var/www/awstats-6.95/wwwroot/jawstats wget http://static.jawstats.com/src/jawstats-0.7beta.tar.gz tar -xzvf jawstats-0.7beta.tar.gz cp config.dist.php config.php
Modification de config.php :
<?php // core config parameters $sDefaultLanguage = "fr"; $sConfigDefaultView = "thismonth.all"; $bConfigChangeSites = false; $bConfigUpdateSites = false; $sUpdateSiteFilename = "xml_update.php"; // individual site configuration $aConfig["wiki.nas78.net"] = <a href="http://www.php.net/array">array</a>( "statspath" => "/var/www/awstats-6.95/wwwroot/cgi-bin/", "updatepath" => "/var/www/awstats-6.95/wwwroot/cgi-bin/", "siteurl" => "http://wiki.nas78.net", "sitename" => "wiki.nas78.net", "theme" => "default", "fadespeed" => 250, "password" => "my-1st-password", "includes" => "", "language" => "fr" ); ?>
Configuration
-
Configuration de lightppd :
server.modules = ( "mod_cgi", "mod_alias", "mod_access", "mod_accesslog") server.port = 8888 server.document-root = "/var/www/" server.pid-file = "/var/run/lighttpd.pid" server.errorlog = "/var/log/lighttpd/error.log" server.username = "www-data" server.groupname = "www-data" dir-listing.encoding = "utf-8" server.dir-listing = "disable" static-file.exclude-extensions = (".php", ".pl", ".fcgi", ".inc", "~") url.access-deny = ( "~", ".inc" ) include_shell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl" $HTTP["host"] =~ "vrp" { accesslog.filename = "/var/log/lighttpd/access_awstats.log" server.document-root = "/var/www/awstats-6.95/wwwroot/" $HTTP["url"] =~ "^/stats/" { alias.url = ("/stats" => "/var/www/awstats-6.95/wwwroot/cgi-bin/") index-file.names = ("awstats.pl") cgi.assign = (".pl" => "/usr/bin/perl") } $HTTP["url"] =~ "^/jawstats/" { alias.url = ("/jawstats" => "/var/www/awstats-6.95/wwwroot/jawstats/") index-file.names = ("index.php") } }