Comment installer AWStats avec certains plug-ins sur un serveur avec ISPConfig
HowTo install AWStats with some plugins on a server with ISPConfig:based and abouted to the instructions for installation of AWStats-installer of jnsc J'ai écrit ce HowTo pour les installations avec certains plugins .
Permettez-moi de dire d'abord :c'est une façon parmi tant d'autres possibles, mais j'essaie cela plus d'une fois et ça marche.Vous aurez besoin de :
Quoi qu'il en soit, je dois vous dire aussi => Si vous utilisez ce HowTo, vous le faites à vos risques et périls ! Le programme d'installation d'AWStats est en état bêta l'état bêta du programme d'installation d'AWStats ! Si vous avez des questions, écrivez-moi ou envoyez-moi un MP.
Si vous souhaitez l'avoir en allemand, envoyez-moi également un e-mail.
Wer diese Anleitung auf deutsch haben möchte, muss mir nur eine eMail oder PN schreiben.ÉTAPE 1 - Téléchargez et installez AWStats
cd /usr/src
wget http://jnsc.ch/downloads/ISPConfig_awstats_pkg_beta-3.tar.gz
tar -xvzf ISPConfig_awstats_pkg_beta-3.tar.gz
cd ISPConfig_awstats_pkg
./install.sh
/root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php
ÉTAPE 2 - Téléchargez et installez un localisateur géographique pour IP´s
cd /root
wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
tar xzvf GeoIP.tar.gz
cd GeoIP-1.4.0
./configure
make
make check
make install
wget http://www.maxmind.com/download/geoip/api/perl/Geo-IP-1.27.tar.gz
tar xzvf Geo-IP-1.27.tar.gz
cd Geo-IP-1.27
perl Makefile.PL
make
make test
make install
perl -MCPAN -e shell
install Net::XWhois
q
Lang="de" (line 892 - "de" is an example) ShowScreenSizeStats=1 (line 1021) ShowMiscStats=anjdfrqwp (line 1041) LoadPlugin="geoip GEOIP_STANDARD /root/GeoIP-1.4.0/data/GeoIP.dat"(Zeile 1289)Si vous souhaitez utiliser AWStats dans la mesure applicable, vous devez copier le javascript sur chaque site de votre serveur et inclure la ligne suivante dans votre index :
<script language="javascript" src="/js/awstats_misc_tracker.js"></script> <noscript><img src="/js/awstats_misc_tracker.js?nojs=y" height="0" width="0" border="0"style="display: none"></img></noscript>
Vous pouvez trouver le javascript ici : /home/admispconfig/ispconfig/tools/awstats-6.5/wwwroot/js
Exécutez le script AWStats pour créer les fichiers de statistiques
/root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php