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"   =&gt; "/var/www/awstats-6.95/wwwroot/cgi-bin/",
    "updatepath"  =&gt; "/var/www/awstats-6.95/wwwroot/cgi-bin/",
    "siteurl"     =&gt; "http://wiki.nas78.net",
    "sitename"    =&gt; "wiki.nas78.net",
    "theme"       =&gt; "default",
    "fadespeed"   =&gt; 250,
    "password"    =&gt; "my-1st-password",
    "includes"    =&gt; "",
    "language"    =&gt; "fr"
  );
 
?&gt;

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" =&gt; "/var/www/awstats-6.95/wwwroot/cgi-bin/")
    index-file.names = ("awstats.pl")
    cgi.assign = (".pl" =&gt; "/usr/bin/perl")
  }
  $HTTP["url"] =~ "^/jawstats/" {
    alias.url = ("/jawstats" =&gt; "/var/www/awstats-6.95/wwwroot/jawstats/")
    index-file.names = ("index.php")
  }
}

Retour en haut