Aller au contenu
Infogérance Linux Debian en France

Infogérance Linux Debian en France

Kogitae : Ingéniérie de l'hébergement Internet

  • Accueil
  • Parcours
  • Presse
  • Portfolio
  • Blog

Sur-couche AJAX pour Awstats

  • Accueil » Blog » Sur-couche AJAX pour Awstats
Dansawstats, Hebergement

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")
  }
}

ajax-serve-static-files apache-awstats-wordpress awstat-ajax awstats-ajax awstats-ajax-version awstats-configuration-php awstats-theme awstats-thismonth-all centos-jawstat config-php-jawstats index-php-jawstats jawstats-filename jawstats-statspath mod_fcgid-awstats sur-couche-ajax-wordpress-3 surcouche-asterisk surcouche-awstats surcouche-dadministration-apache url-awstats-sous-debian-linu-5-0 varssiteurl-administrator

Étiquettes

administrateur-systeme-freelance (9) amazon (3) apache (14) asterisk (9) auth (3) bash (6) blog-administrateur-systeme (14) blog-administration-systeme (4) collectd (5) cpu (3) debian (30) dovecot (4) duplicate (3) f (6) freelance-asterisk (3) google (3) infogerance-linux (5) infogérance (4) ipv6 (7) kernel (4) kogitae (30) kogitae-com (3) kogitae-fr (6) lamp-or-linux-or-developpement-web-and-apache-or-php-or-mysql-or-adobe-or-eclipse-or-zend-or-mozilla-or-firefox (17) lenny (4) lighttpd (5) limit (4) linux (26) mail (7) mdadm (6) mysql (14) openvz (9) optimiser (4) php (5) postfix (11) privvmpages-openvz (3) pxe (3) raid (3) SEO (5) ssh (8) ssl (3) test (3) voip (4) wordpress (6) www-kogitae-fr (7)