Install httpd :
yum -y install httpd
# remove la page de bienvenue.
rm -f /etc/httpd/conf.d/welcome.conf
# remove la page d’erreur par default
rm -f /var/www/error/noindex.html
# create a link for Perl
ln -s /usr/bin/perl /usr/local/bin/perl
Configure httpd :
vim /etc/httpd/conf/httpd.conf
# line 44: change
ServerTokens Prod
# line 76: change to ON
KeepAlive On
# line 262: Admin’s address
ServerAdmin root@domaine.com
# line 276: change to your server’s name
ServerName www.domaine.com:80
# line 331: change (enable CGI and disable Indexes)
Options FollowSymLinks ExecCGI
# line 338: change
AllowOverride All
# line 402: add file name that it can access only with directory’s name
DirectoryIndex index.html index.cgi index.php
# line 536: change
ServerSignature Off
# line 759: make it comment
#AddDefaultCharset UTF-8
# line 796: uncomment and add file-type that apache looks them CGI
AddHandler cgi-script .cgi .pl
service httpd start
chkconfig httpd on
Créer une page de test HTML et l’accès à un navigateur web
vim /var/www/html/index.html