Serveur EPP : Différence entre versions

De Wiki NCad
Aller à : navigation, rechercher
(Installation module Whois pour Apache)
(Installation module Whois pour Apache)
 
(5 révisions intermédiaires par le même utilisateur non affichées)
Ligne 11 : Ligne 11 :
 
* apache2-suexec
 
* apache2-suexec
 
* libapache2-mod-fcgid
 
* libapache2-mod-fcgid
 +
* apache2-prefork-dev
  
{{ Box Console | objet=sudo apt-get install apache2-suexec libapache2-mod-fcgid }}
+
{{ Box Console | objet=sudo apt-get install apache2-suexec libapache2-mod-fcgid apache2-prefork-dev }}
  
 
=== Installation module Whois pour Apache ===
 
=== Installation module Whois pour Apache ===
 +
 +
C'est le serveur Apache qui répond aux interrogation du Whois depuis un terminal de commande. Pour que Apache puisse répondre, il faudra installer le '''mod_whois''' pour Apache.
  
 
{{ Box Console | objet=
 
{{ Box Console | objet=
Ligne 20 : Ligne 23 :
 
tar -zxvf mod_whois-0.1.tar.gz<br />
 
tar -zxvf mod_whois-0.1.tar.gz<br />
 
cd mod_whois<br />
 
cd mod_whois<br />
apxs -i -a -c mod_whois.c }}
+
apxs2 -i -a -c mod_whois.c }}
 +
<br />
 +
{{ Box Attention | objet=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 ===
 
=== Installation du module EPP pour Apache ===
Ligne 47 : Ligne 52 :
 
perl -MCPAN -e 'install Net::XWhois'
 
perl -MCPAN -e 'install Net::XWhois'
 
  }}
 
  }}
 +
 +
=== Création du groupe et utilisateur EPP ===
 +
 +
{{ Box Console | objet=groupadd -g 700 -r epp<br />
 +
useradd -c "EPP" -d "/usr/lib/cgi-bin/epp" -g 700 -m -o -p MonMotDePasse -r epp -u 700 -s /bin/bash }}

Version actuelle en date du 20 janvier 2014 à 02:06

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

C'est le serveur Apache qui répond aux interrogation du Whois depuis un terminal de commande. Pour que Apache puisse répondre, il faudra installer le mod_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