Serveur EPP

De Wiki NCad
Révision de 20 mars 2013 à 19:08 par Cacheln (discuter | contributions) (Installation module Whois pour Apache)

Aller à : navigation, rechercher

Installation

Prérequis

Pour pouvoir fonctionner, ces services ont besoin des services suivants :

  • Serveur web avec modules PHP, MySQL et SSL
  • Base de données MySQL

En plus des services précédements indiqués, les paquets suivants devront également être présents :

  • apache2-suexec
  • libapache2-mod-fcgid
  • apache2-prefork-dev
ICON Terminal.png

sudo apt-get install apache2-suexec libapache2-mod-fcgid apache2-prefork-dev

Installation module Whois pour Apache

ICON Terminal.png

wget http://downloads.sourceforge.net/project/modwhois/mod_whois/0.1/mod_whois-0.1.tar.gz
tar -zxvf mod_whois-0.1.tar.gz
cd mod_whois
apxs2 -i -a -c mod_whois.c


ICON boxWarning.png

Le répertoire cgi-bin est dans la racine /usr/lib ! Il faut donc penser à mettre à jour le chemin dans /etc/apache2/conf.d/whois.conf

Installation du module EPP pour Apache

ICON Terminal.png

wget http://downloads.sourceforge.net/project/aepps/mod_epp/1.9/mod_epp-1.9.tar.gz
tar -zxvf mod_epp-1.9.tar.gz
cd mod_epp-1.9
apxs -i -a -c mod_epp.c

Compilation des méthodes EPP

ICON Terminal.png

perl -MCPAN -e 'install File::Type'
perl -MCPAN -e 'install HTML::Template'
perl -MCPAN -e 'install MIME::Lite'
perl -MCPAN -e 'install Net::DNS'
perl -MCPAN -e 'install Net::SSLeay'
perl -MCPAN -e 'install Net::EPP'
perl -MCPAN -e 'install XML::Writer'
perl -MCPAN -e 'install XML::Writer::String'
perl -MCPAN -e 'install XML::XPath'
perl -MCPAN -e 'install XML::Parser'
perl -MCPAN -e 'install MIME::Base64'
perl -MCPAN -e 'install Authen::SASL'
perl -MCPAN -e 'install Email::Valid'
perl -MCPAN -e 'install CGI::Session'
perl -MCPAN -e 'install Net::XWhois'

Création du groupe et utilisateur EPP

ICON Terminal.png

groupadd -g 700 -r epp
useradd -c "EPP" -d "/usr/lib/cgi-bin/epp" -g 700 -m -o -p MonMotDePasse -r epp -u 700 -s /bin/bash