Outils personnels

Installation FastCGI de l'interface Thruk sur une Debian

De wikiGite

Révision datée du 31 mai 2011 à 14:54 par Nicolas (discussion | contributions) (Page créée avec « Thruk Installation FastCGI avec le module "mod_fcgid" Pré-Requis : apt-get install libapache2-mod-fcgid libfile-copy-recursive-perl libmodule-install-perl apache2 libgd2-... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Thruk Installation FastCGI avec le module "mod_fcgid"

Pré-Requis :

apt-get install libapache2-mod-fcgid libfile-copy-recursive-perl libmodule-install-perl apache2 libgd2-xpm-dev

wget http://www.thruk.org/files/Thruk-1.0.4-x86_64-linux-gnu-thread-multi-5.10.0.tar.gz
tar -xzf Thruk-1.0.4-x86_64-linux-gnu-thread-multi-5.10.0.tar.gz

Apache :

/etc/apache2/sites-available
vi thruk

mettre le contenu du fichier

Thruk Apache Configuration

ports.conf

thruk Supprimer l'ancien lien symbolique de la configuration d'origine

sudo a2dissite default

Il faut maintenant activer le vhost. Pour cela il faut créer un lien symbolique du fichier de sites-available/ vers sites-enabled/. En utilisant:

sudo a2ensite thruk

/etc/init.d/apache2 restart / reload

git clone http://github.com/sni/Thruk.git
cd Thruk
perl Makefile.PL && make
cp thruk.conf thruk_local.conf

Editer thruk_local.conf

htpasswd -c /opt/thruk/htpasswd.users admin

chown -R shinken:shinken /opt/thruk

Editer cgi.cfg

désactiver l'authentification

Attention aux droits sur /tmp, pour être tranquille :

chmod -R 777 /tmp

Attention :

use this apache example configuration:
replace /home/thruk/Thruk with your installation path
replace your-web-host.local with your hostname
create a /home/thruk/Thruk/htpasswd.users with htpasswd2
make sure the /home/thruk/Thruk/logs/ directory exists