• Aucun résultat trouvé

Installation d un serveur cartographique sur GNU/Linux: Red Hat Enterprise Linux v.4

N/A
N/A
Protected

Academic year: 2022

Partager "Installation d un serveur cartographique sur GNU/Linux: Red Hat Enterprise Linux v.4"

Copied!
54
0
0

Texte intégral

(1)

Installation d’un serveur cartographique sur GNU/Linux:

Red Hat Enterprise Linux v.4

(2)

INDEXATION DU DOCUMENT

TITRE : REFERENCE :

Installation d’un serveur cartographique sur GNU/Linux: Red Hat Enterprise Linux v.4

ACTION NOM DATE SIGNATURE

RÉDIGÉ PAR Jean David TECHER 2006-06-23

SUIVI DU DOCUMENT

INDICE DATE MODIFICATIONS NOM

(3)

Table des matières

1 Pré-requis : Installer Red Hat Enterprise Linux v.4 1

2 Installation de l’application cartographique 5

2.1 Les outils utilisés . . . 5

2.2 Automatisation et installation complète . . . 6

A Explication détaillée de l’installation des différents éléments 9 A.1 Création du répertoire des sources et téléchargement des sources . . . 9

A.2 Geos . . . 9

A.3 Proj . . . 10

A.4 PostgreSQL . . . 10

A.5 PostGIS . . . 11

A.6 PostgreSQL : Création du super-utilisateur postgres et initilisation du groupe de bases de données par défaut . . . 11

A.7 PDFLIB . . . 11

A.8 LibJpeg,LibPng, FreeType2 et GD . . . 11

A.9 Php . . . 12

A.10 Gdal . . . 13

A.11 MapServer . . . 13

A.12 Installation de l’application cartographique de démonstration . . . 14

A.12.1 Pour Apache . . . 14

A.12.2 Pour PostgreSQL . . . 14

A.12.3 Installer l’application de démonstration . . . 15

B Fichiers de configuration 18 B.1 Script d’installation général . . . 18

B.2 Apache . . . 22

B.3 PostgreSQL . . . 38

B.3.1 Fichier de configuration du serveur . . . 38

B.3.2 Fichier pour le service . . . 45

C Bibliographie 48 C.1 [1] . . . 48

C.2 [2] . . . 48

(4)

Table des figures

1.1 Copie d’écran conforme à la désactivation du pare-feu sur Red Hat . . . 2

1.2 Copie d’écran conforme à la désactivation de SELinux sur Red Hat . . . 3

1.3 Installation des paquetages de la rubrique "Outils de développement" . . . 4

2.1 Formulaire d’accès à l’application . . . 7

2.2 L’application de démonstration . . . 8

A.1 Première copie d’écran pour PHPINFO . . . 16

A.2 Seconde copie d’écran pour PHPINFO : les extensions de MapServer(MapScript), PDFLIB (pdf) et PostgreSQL (pgsql) ont bien été prises en compte lors de la compilation de PHP . . . 17

(5)

Liste des tableaux

1.2 Les options choisies lors de l’installation . . . 1 2.2 Ensemble des outils à installer . . . 5

(6)

v.4. Le premier chapitre fournit l’installation adéquate et minimale requise afin de pouvoir compiler et installer nos divers outils sur de cette distribution. L’objectif du premier chapitre est de proposer un environnement de compilation GNU/Linux minimal conforme à l’implémentation de solutions cartographiques. Les divers outils nécessaires pour nos solutions cartographiques sont abordés dans le second chapitre ainsi que le déploiement automatique des applications cartographqiues.Les compilations et installations respectives des différents outils sont fournis en annexe de ce document.

(7)

Chapitre 1

Pré-requis : Installer Red Hat Enterprise Linux v.4

Red Hat Enterprise Linux v.4 est fourni avec 4 CD principaux. Ici nous n’aurons besoin que des 3 premiers CD. Au niveau de l’installation de la Red Hat, nous avons ôpté pour une installation minimale. A titre indicatif, sont fournis dans le tableau suivant divers paramètres choisis lors de l’installation du système Red Hat

Langue Français

Clavier Latin9

Méthode d’installation CD Local

Partitionnement Automatique

Chargeur de boot GRUB

Pare-feu Désactivé

SELinux Désactivé

Mode d’installation personnalisé

Paquetages à installer Développement / Outils de développement

TAB. 1.2 – Les options choisies lors de l’installation

Si par la suite, on souhaite partir d’une installation d’une Red Hat déjà existante, il est nécessaire que les divers points suivants soient impérativement respectés :

1. Le gestionnaire de pare-feu de Red Hat et de SELinux doivent être désactivés.

2. Au niveau des paquetages à installer : certains paquetages relatifs à la rubrique "Outils de développements" du gestionnaire de paquetages doivent être installés.

Pour désactiver le pare-feu et SELinux, allez dans "Applications" --> "Paramètres de système" --> "Niveau de sécurité"

(8)

FIG. 1.1 – Copie d’écran conforme à la désactivation du pare-feu sur Red Hat

(9)

FIG. 1.2 – Copie d’écran conforme à la désactivation de SELinux sur Red Hat

Toujours dans le cas d’une installation déjà existante, pour installer le paquetage "Développement / Outils de développement"

allez dans "Applications" --> "Paramètres de système" --> "Ajouter/Supprimer des applications" et cochez la case "Outils de Développement" dans la section développement. Cliquez sur "Mettre à jour". Pour procéder à l’installation de l’ensemble des paquetages concernés vous aurez besoin des CD n2 et n3 de la Red Hat. Celà permettra de fournir les outils tel que configure, make, perl etc...

(10)

FIG. 1.3 – Installation des paquetages de la rubrique "Outils de développement"

(11)

Chapitre 2

Installation de l’application cartographique

Nous allons procéder ici aux diverses compilations et installations. Les diverses étapes doivent avoir lieu dans l’ordre chronolo- gique des sections successives de ce chapitre.

Nous commencerons ce chapitre pour fournir un petit descriptif des divers outils à installer. Nous terminerons par la mise en place automatique de l’application cartographique.

NOTE

Nous avons rédigé un script install.sh contenu dans les sources à télécharger qui effectue lles diverses commandes à effectuer.

2.1 Les outils utilisés

L’ensemble des outils utilisés est récapitulé dans le tableau suivant

Outil Version Installation à partir de

GEOS 2.2.2 sources

PROJ 4.4..9 sources

POSTGRESQL 8.1.4 sources

POSTGIS 1.1.2 sources

PDFLIB 5.0.4p1 sources

LIBJPEG 6b-36.2.1 RPM

LIBPNG 1.2.8-1 RPM

FREETYPE2 2.1.7-53 RPM

GD 2.0.33 sources

PHP 5.0.5 sources

GDAL 2.0.33 sources

MAPSERVER 4.8.3 sources

TAB. 2.2 – Ensemble des outils à installer Certaines installations auront lieu à partir des sources, d’autres à partir de RPM.

Pour la suite du chapitre, il est nécessaire de se connecter soit en SSH sur la machine-cible si on n’est pas connecté sur la machine ou d’ouvrir un terminal localement sur la machine depuis la session graphique courante. Pour ce dernier choix, rendez-vous à

"Applications" --> "Outils de système" --> "Terminal".

Selon votre choix,

(12)

Connexion par SSH: Depuis un terminal, tapez ssh root@ < hot e_dist ant >

où<hote_distant>est l’IP de la machine distante. Répondez par ’yes’ si une question vous est posée, saisissez le mot de passe de root si celà vous est aussi demandé

Connexion depuis la sessions graphique courante

Pour ce dernier choix, rendez-vous à "Applications" --> "Outils de système" --> "Terminal". Saisissez who ami

si cette commande vous renvoit une réponse différente de root

alors saisissez su

et comme demandé, saisissez le mot de passe de root

2.2 Automatisation et installation complète

Pour procéder à l’installation complète, il vous suffira de faire

cd

wget http :// www .01 m a p s e r v e r . com / appl is / d o w n l o a d / s e r v e u r _ c a r t o _ v 1 . zip unzip s e r v e u r _ c a r t o _ v 1 . zip

chmod 700 i n s t a l l . sh ./ i n s t a l l . sh

L’installation commence. Veuillez alors patienter le temps de voir s’afficher le message suivant dans le terminal...

% % % % % % % % % % % % % % % % % % % % % % % % %

% I N S T A L L A T I O N T E R M I N E E %

% % % % % % % % % % % % % % % % % % % % % % % % %

A l’apparition de ce message, l’installation des différents élements est donc terminée ! Par la suite, pour accéder à l’ap- plication, saisissez simplement http ://nom_de_la_machine ou http ://IP_de_la_machine. Vous accéderez au formulaire d’accès suivant. Saisissez comme Login ddass26 et comme mot de passe ddass26

(13)

FIG. 2.1 – Formulaire d’accès à l’application Vous accéderez alors à l’application de démonstration

(14)

FIG. 2.2 – L’application de démonstration Bonne navigation !

(15)

Annexe A

Explication détaillée de l’installation des diffé- rents éléments

Remarque : Cet annexe détaille l’ensemble des commandes qui ont été utilisées dans le second chapitre. Puisque l’installation a été automatisée par l’emploi d’un script shell install.sh (voir section "Automatisation et installation complète" du second cha- pitre), nous proposons ici une mise en oeuvre manuelle détaillant les divers points abordés lors de l’installation. Nous procéderons ainsi ici aux diverses compilations et installations. Les diverses étapes doivent avoir lieu dans l’ordre chronologique des sections successives de ce chapitre. Le dossier de téléchargement pour les sources est le répertoire-racine /mnt/src.

Quand un outil est abordé, celui-ci fait l’objet d’une section. Pour chaque outil, nous commencerons par un descriptif succinct puis par son installation au sens GNU/Linux du terme : configuration (./configure...),compilation (make) et installation (make install)

A.1 Création du répertoire des sources et téléchargement des sources

Tapez la commande suivante pour créer le répertoire/mnt/src mkdir / mnt / src

Rendez-vous ensuite dans ce répertoire cd / mnt / src

On téléchargera l’ensemble des sources à l’adresse suivante http ://www.01mapserver.com/applis/download/serveur_carto_v1.zip grâce à l’utilitaire wget

wget http :// www .01 m a p s e r v e r . com / appl is / d o w n l o a d / s e r v e u r _ c a r t o _ v 1 . zip On décompresse ce fichier zippé en faisant

unzip s e r v e u r _ c a r t o _ v 1 . zip

A.2 Geos

GEOS est un paquetage qui permet d’ajouter des fonctionnalités spatiales supplémentaires ou relationnelles ou topologiques à PostGIS telles que Within(), Intersects(). Le site de référence est http ://geos.refractions.net.

Pour installer Geos, faisons

(16)

cd / mnt / src /

tar xvjf geos - 2 . 2 . 2 . tar . bz2

cd geos -2.2 .2 && ./ c o n f i g u r e && make && make i n s t a l l On s’assure que Geos est installé en faisant par exemple

geos - con fig -- v e r s i o n qui devrait nous renvoyer 2.2.2

A.3 Proj

Proj est la librairie qui référence l’ensemble des divers systèmes de projection géographique comme le Lambert II Etendu. Cette librairie offre aussi des fonctionnalités de reprojection entre divers systèmes de projection à PostGIS telle que la fonctionnalité transform(). Il est par exemple possible de passer d’un système de projection comme le Lambert II Etendu au Lambert III Carto.

Le site de ce projet est http ://www.remotesensing.org/proj/

Pour installer Proj, faisons cd / mnt / src

tar xvzf proj - 4 . 4 . 9 . tar . gz

cd proj -4.4 .9 && ./ c o n f i g u r e && make && make i n s t a l l

Les librairies concernant GEOS (libgeos, libgeos.so.2,libproj.so....) sont installées dans le répertoire /usr/local/lib. Il faut inclure ce chemin dans le fichier /etc/ld.so.conf en fin de fichier en faisant

echo / usr / local / lib >> / etc / ld . so . conf l d c o n f i g

A.4 PostgreSQL

PostgreSQL est le système de gestion de bases de données relationnelles (SGDBR) open source le plus évolué actuellement.

Bien que MySQL est le plus populaire, PostgreSQL a toujours su devancé cette dernière en bien des points. A titre d’exemple, PostgreSQL a toujours veillé a respecté les diverses révisions des normes SQL actuelles (plus de 50 % pour les révisions actuelles de 2003). Il offre aussi de nombreux avantages aussi bien au niveau des spécificités des transactions que son extensibilité avec divers langages de programmation comme Php, perl, tcl,c/c++.... Le site de référence est http ://www.postgresql.org. Le site francophone est http ://www.postgresqlfr.org

On s’assure dans un premier temps qu’aucune RPM nécessitant PostgreSQL est installé. Pour s’en rassurer on désintalle tout ce qui fait référence à PostgreSQL

rpm -e p o s t g r e s q l

rpm -e -- node ps p o s t g r e s q l

Pour installer PostgreSQL, il est nécessaire de faire les commandes suivantes cd / mnt / src

tar xvjf postgresql - 8 . 1 . 4 . tar . bz2

cd postgresql -8. 1.4 && ./ c o n f i g u r e -- enable - nls && make && make i n s t a l l

Au niveau des options d’installation, nous avons opté pour l’option --enable-nls de manière à avoir l’aide des utilitaires de cette distribution en français.

(17)

A.5 PostGIS

PostGIS est une extension pour PostgreSQL. PostGIS, en tant que extension, fournit de nouvelles fonctionnalités à PostgreSQL.

Il s’agira de fonctionnalités d’ordre spatiales (topologie spatiale, opérateurs spatiaux et relationnelles). Cet ajout confère a Post- greSQL le statut de bases de données spatiales. Le site du projet est http ://postgis.refractions.net

Pour installer PostGIS, il est nécessaire de renseigner le répertoire bin de PostgreSQL/usr/local/pgsql/bintemporairement dans le PATH de la machine et de rendre les libraires accessibles - elles sont localisées dans le répertoire/usr/local/pgsql/lib de PostgreSQL

expo rt PATH =/ usr / local / pgsql / bin : $PATH echo / usr / local / pgsql / lib >> / etc / ld . so . conf l d c o n f i g

Il ne reste plus qu’à installer PostGIS cd / mnt / src

tar xvzf postgis - 1 . 1 . 2 . tar . gz

cd postgis -1. 1.2 && ./ c o n f i g u r e && make && make i n s t a l l

A.6 PostgreSQL : Création du super-utilisateur postgres et initilisation du groupe de bases de données par défaut

Pour installer PostgreSQL, il est nécessaire de créer un super-utilisateur nommé postgres ayant comme mot de passe 01map (par exemple). Cette utilisateur n’est qu’un simple utilisateur au sens UNIX du terme sur la machine - il n’a donc pas les mêmes droits que root. Le répertoire qui accueillera notre groupement de bases de données par défaut sera /mnt/pgdata dont postgres sera le propriétaire. Le groupement de bases de données par défaut sera encodé en LATIN9. Sur la machine en local, les connexions au serveur de PostgreSQL ne nécessiteront aucun mot de passe.

Tout ce qui est attendu ci-dessus est obtenu en faisant

u s e r a d d -p 01 map p o s t g r e s ; mkdir / mnt / pgd ata /; chown -R p o s t g r e s : p o s t g r e s / mnt / pgd ata ; su ←- p o s t g r e s -c " exp ort PATH =/ usr / local / pgsql / bin : $PATH ; expo rt PGD ATA =/ mnt / pgd ata ; init db -E ←- LAT IN9 -A trust ; mkdir $ P G D A T A / pg_ log "

A.7 PDFLIB

PDFLIB est une librairie qui propose notamment une API pour divers langages de programmation (java,c++,php...) pour pouvoir générer à la volée des documents au format pdf. Nous proposerons son API au langage PHP. Le site du projet est http ://www.pdflib.com Pour installer PDFLIB, nous ferons

cd / mnt / src

tar xvzf PDFlib - Lite -5. 0.4 p1 - Unix - src . tar . gz

cd PDFlib - Lite -5. 0.4 p1 - Unix - src && ./ c o n f i g u r e && make && make i n s t a l l l d c o n f i g

A.8 LibJpeg,LibPng, FreeType2 et GD

Libjpeg et libpng sont des paquetages qui contiennent respectivement des bibliothèques graphiques pour jpeg et png. Ces der- nières servent notamment pour la manipulation de fichier au format respectifs .jpeg ou .png. On les utilise notamment avec

(18)

divers langages de programmation. Ce sera ici le cas avec PHP. Libjpeg et Libpng sont nécessaires pour la compilation/instal- lation de GD. Ils permettront ainsi à ce dernier de manipuler des fichiers dans les formats attendus. Libjpeg est disponible ici http ://www.ijg.org/files/jpegsrc.v6b.tar.gz. Libpng est disponible ici http ://sourceforge.net/projects/libpng/

Freetype2 est utilsé dans le support des fontes comme par exemple pour le rendu de texte affiché sur une image (exemple : rendu de texte anti-crénelé sur une image). Par l’intermédiaire de GD, FreeType fournit à MapServer le support pour le TrueType. Un des sites possibles pour ce projet est http ://www.freetype.org

GD est une librairie pour la création dynamique d’image dans divers formats connus. Nous l’utiliserons ici avec PHP. Map- Server nécessite que GD soit installé pour pouvoir générer des images au format GIF, PNG et JPEG. Le site du projet est http ://www.boutell.com/gd/

Toutes ces paquetages sont nécessaires pour que MapServer puisse générer des images dans divers formats au niveau de la carte.

Pour installer toutes ces paquetages et sources , nous ferons cd / mnt / src

rpm - Uivh libjpeg - devel -6 b - 3 6 . 2 . 1 . i386 . rpm rpm - Uivh libpng -1.2.8 -1. fc2 . i386 . rpm rpm - Uivh libpng - devel -1.2.8 -2. i386 . rpm rpm -e -- node ps gd

rpm -e -- node ps gd - devel rpm -e -- node ps gd - progs rpm -e -- node ps f r e e t y p e

rpm - Uivh freetype2 -2. 1.7 -5 3.6. i586 . rpm rpm - Uivh freetype2 - devel -2.1 .7 -53 .6. i586 . rpm l d c o n f i g

tar xvzf gd - 2 . 0 . 3 3 . tar . gz cd gd - 2 . 0 . 3 3

./ c o n f i g u r e && make && make i n s t a l l l d c o n f i g

A.9 Php

Php est un langage de script couramment utilisé pour le déploiment d’application Web. Le site de référence est http ://www.php.net.

Pour installer Php, il faut faire cd / mnt / src

tar xvjf php - 5 . 0 . 5 . tar . bz2 cd php -5. 0.5

#

# On d é s i n t a l l e toute v e r s i o n de PHP ou d é p e n d a n c e pour toute v e r s i o n < 5.0.5

#

rpm -e -- node ps php

#

# C o p i o n s not res php . ini dans le r é p e r t o i r e cgi - bin d ’ Apa che

#

cp ../ php . ini / var / www / cgi - bin /

#

# Cop ier les f i c h i e r s de PDFL IB dans les s o u r c e s de PHP

#

cp -r / mnt / src / PDFlib - Lite -5.0 .4 p1 - Unix - src / bind / pdfl ib / php / ext / pdf / ext /

cp / mnt / src / php - 5 . 0 . 5 / ext / pdf / M a k e f i l e . php -404. in / mnt / src / php - 5 . 0 . 5 / ext / pdf / M a k e f i l e . in

#

# ./ c o n f i g u r e

#

./ c o n f i g u r e -- enable - f a s t c g i -- with - config - file =/ var / www / cgi - bin / php . ini -- with - gd =/ usr / ←- local -- with - png - dir =/ usr -- with - ttf -- with - freetype - dir =/ usr -- with - zlib -- with - pgsql ←- -- with - regex = sys tem -- enable - dbase -- enable - dbx -- with - jpeg - dir =/ usr -- enable - v e r s i o n i n g

#

# On c o m p i l e une p r e m i è r e fois sans PDF LIB

(19)

# make

#

# PHP doit c o m p r e n d r e m a i n t e n a n t qu ’ il doit p r e n d r e en com pte PDF LIB

#

./ b u i l d c o n f -- force

./ c o n f i g u r e -- enable - f a s t c g i -- with - config - file =/ var / www / cgi - bin / php . ini -- with - gd =/ usr / ←- local -- with - pdf lib -- with - png - dir =/ usr -- with - ttf -- with - freetype - dir =/ usr -- with - zlib ←- -- with - pgsql -- with - regex = syst em -- enable - dbase -- enable - dbx -- with - jpeg - dir =/ usr -- ←- enable - v e r s i o n i n g

#

# On c o m p i l e une d e u x i è m e fois avec PDF LIB

# make

make i n s t a l l l d c o n f i g

#

# Cré ons le r é p e r t o i r e des e x t e n s i o n s de PHP . Celui - ci a c c u e i l l e r a plus tard

# p h p _ m a p s c r i p t . so de M a p S e r v e r

# On copie aussi php dans le r é p e r t o i r e cgi - bin d ’ Apac he

#

mkdir -p $ ( php - con fig -- extension - dir ) cp $ ( which php ) / var / www / cgi - bin /

A.10 Gdal

Gdal est un paquetage pour la gestion de divers format SIG connus (raster et vecteur). Il propose par exemple des utilitaires de conversion entre divers formats connus. MapServer utilise Gdal pour pouvoir notamment communiquer avec divers formats SIG aussi bien raster que vecteur. On le trouve à http ://www.gdal.org/

Pour installer Gdal, nous ferons cd / mnt / src

tar xvzf gdal - 1 . 3 . 1 . tar . gz cd gdal -1.3 .1

./ c o n f i g u r e && make && make i n s t a l l l d c o n f i g

A.11 MapServer

MapServer est un environnement de développement Open Source permettant de construire des applications internet à référence spatiale. Il est au coeur de toute application cartographique open source. Pour de plus amples détails, merci de consulter l’url http ://mapserver.gis.umn.edu/

Pour installer MapServer, nous ferons cd / mnt / src

tar xvzf mapserver - 4 . 8 . 3 . tar . gz cd mapserver -4. 8.3

./ c o n f i g u r e -- with - p o s t g i s -- with - proj -- with - geos -- with - gd =/ usr / local -- with - png -- with - ←- m a p s c r i p t -- with - w m s c l i e n t -- with - wfs -- with - w f s c l i e n t -- with - php =/ mnt / src / php -5.0 .5 -- ←- enable - f a s t c g i -- with - gdal -- with - ogr && make

cp m a p s c r i p t / php3 / p h p _ m a p s c r i p t . so $ ( php - conf ig -- extension - dir ) /

(20)

A.12 Installation de l’application cartographique de démonstration

Pour installer cette application de démonstration, il est impératif d’effectuer quelques opérations concernant notamment les serveurs Apapche et PostgreSQL

A.12.1 Pour Apache

Nous nous assurons d’abord qu’Apache ne tourne pas sur la machine / etc / init . d / httpd stat us

qui doit nous renvoyer httpd est arr êté

Si ce n’est pas le cas, on arrête temporairement le serveur en faisant / etc / init . d / httpd stop

On supprime le fichier général de configuration d’Apache et on met le nôtre rm -f / etc / httpd / conf / httpd . conf

cp / mnt / src / httpd . conf / etc / httpd / conf /

Pour finir, faison en sorte qu’Apache puisse être démarré en service à chaque redémarrage éventuel de la machine echo / etc / init . d / httpd start >> / etc / rc . local

A.12.2 Pour PostgreSQL

Copions les divers fichiers concernant respectivement la configuration (postgresql.conf) ainsi que le service de PostgreSQL (postgresql) comme il se doit dans les emplacements prévus à cette effet

rm -f / mnt / pgd ata / p o s t g r e s q l . conf

cp / mnt / src / p o s t g r e s q l . conf / mnt / pgda ta / cp / mnt / src / p o s t g r e s q l / etc / init . d /

Faison aussi en sorte que si nous devons plus tard nous reconnecter dans un terminal que les utilitaires de PostgreSQL localisés dans/usr/local/pgsql/binsoient accessibles. Il faut pour celà mettre à jour en une seule fois la variable d’environnement PATH de la machine. ll faut aussi que la varibalePGDATA(= /mnt/pgdata) soit aussi accessible. Pour ce faire, il nous suffir de saisir

echo exp ort PATH =\"\ $ { PATH }:/ usr / local / pgsql / bin \" >> / etc / bash rc echo exp ort PGD ATA =\"/ mnt / pgda ta \" >> / etc / bash rc

Comme pour le service d’Apache, il faut aussi que le service de PostgreSQL puisse démarrer à chaque redémarrage de la machine echo / etc / init . d / p o s t g r e s q l start >> / etc / rc . local

Nous noterons quand même les remarques suivantes

(21)

NOTE

Pour savoir si le serveur est actif, il suffit de saisir dans un terminal

su p o s t g r e s -c " pg_c tl stat us "

ou bien

/ etc / init . d / p o s t g r e s q l stat us

A chaque démarrage de la machine, vous trouverez les fichiers de log de PostgreSQL dans le répertoire /mnt/pgdata/pg_log qui sont nommés sous la forme postgresql-2006-06-24_160238.log par exemple. Ce dernier précise par exemple que le serveur a démarré le 24 Juin 2006 à 1602. Toute message de nature notification ou d’erreur est stockée dans le tout dernier fichier de log du serveur PostgreSQL

A.12.3 Installer l’application de démonstration

Pour installer notre application, nous commencerons par créer le répertoire-racine de notre application mkdir -p / var / www / s e r v e u r _ c a r t o _ d h t m l

On se rend ensuite dans le répertoire /mnt/src et on décompresses le fichier d’application serveur_carto_dhtml.zip dans le réper- toire racine /var/www/serveur_carto_dhtml

cd / mnt / src

unzip s e r v e u r _ c a r t o _ d h t m l . zip -d / var / www / s e r v e u r _ c a r t o _ d h t m l / On accorde les droits attendus sur le répertoire racine

chmod 777 -R / var / www / s e r v e u r _ c a r t o _ d h t m l /

Comme notre application fonctionne par session avec PHP, il faut créer le répertoire/var/www/tmp qui stockera les sessions effectuées et lui accorder les droits en lecture, écriture pour tous

mkdir -p / var / www / tmp chmod 777 / var / www / tmp

Les images générées par MapServer - cartes, échelle, icônes pour la légende (...) - sont stockées dans le répertoire /var/www/- temp_mapserver auquel nous octroyons aussi les droits attendus

mkdir -p / var / www / t e m p _ m a p s e r v e r chmod 777 / var / www / t e m p _ m a p s e r v e r

Il nous faut maintenant créer la base de données sous PostgreSQL appelée ddass26 pour la démonstration / etc / init . d / p o s t g r e s q l stop

/ etc / init . d / p o s t g r e s q l start cd / mnt / src /

chmod 777 d d a s s 2 6 *. sql

su p o s t g r e s -c " expo rt PATH =/ usr / local / pgsql / bin : $PATH ; c r e a t e d b d d a s s 2 6 ; c r e a t e l a n g p l p g s q l ←- d d a s s 2 6 ; psql -d d d a s s 2 6 -f / usr / local / pgsql / share / c o n t r i b / l w p o s t g i s . sql ; psql -d d d a s s 2 6 ←- -f / usr / local / pgsql / share / c o n t r i b / s p a t i a l _ r e f _ s y s . sql ; psql -d d d a s s 2 6 -f / mnt / src / ←- d d a s s 2 6 *. sql ; c r e a t e u s e r -s 01 map "

Démarrons le serveur Apache si celà n’a pas encore été fait / etc / init . d / httpd start

Créeons aussi le fichier /var/www/serveur_carto_dhtml/applis/ddass26/phpinfo.php

echo " <? p h p i n f o () ;? >" >> / var / www / s e r v e u r _ c a r t o _ d h t m l / app lis / d d a s s 2 6 / p h p i n f o . php

(22)

Depuis un navigateur Web comme FireFox ou Internet Explorer, rendons-nous à l’URL suivant http ://nom_de_la_machine/phpinfo.php où nom_de_la_machine est le nom_de_la_machine est le nom que vous avez saisi lors de l’installation de la Red Hat.

Vous devriez obtenir les deux copies d’écran suivantes

FIG. A.1 – Première copie d’écran pour PHPINFO Et la suivante

(23)

FIG. A.2 – Seconde copie d’écran pour PHPINFO : les extensions de MapServer(MapScript), PDFLIB (pdf) et PostgreSQL (pgsql) ont bien été prises en compte lors de la compilation de PHP

(24)

Annexe B

Fichiers de configuration

Sont fournis ici à titre d’information le script général utilisé pour l’automatisation de l’installation ainsi que les divers fichiers de configurations respectif d’Apache et de PostgreSQL

B.1 Script d’installation général

Le script est le suivant

#!/ bin / sh

#

# Ce scr ipt per met d ’ i n s t a l l e r les div ers outi ls n é c e s s a i r e s pour un s e r v e u r c a r t o g r a p h i q u e

# sur une m a c h i n e 32 bits Red hat Linux E n t e r p r i s e V4

#

# Aut eur : TEC HER Jean David (01 MAP )

# C o n t a c t : P o r t a b l e 06 85 37 36 75 / Fixe 04 99 77 16 87

#

# R e m a r q u e : A b r é v i a t i o n s u t i l i s é e s ici

# = = = = = = = =

# CMMI : ./ c o n f i g u r e [ OPI ONS ] && make && make i n s t a l l

# CO : faire s e u l e m e n t un "./ c o n f i g u r e [ OPIO NS ] " avant de c o n t i n u e r

# MO : faire s e u l e m e n t un " make " avant de c o n t i n u e r

# MIO : faire s e u l e m e n t un " make i n s t a l l " avant de c o n t i n u e r

#

r e p e r t o i r e ="/ mnt / src /"

if [ ! -d " $ r e p e r t o i r e " ]; then mkdir -p " $ r e p e r t o i r e "

fi

cp $PWD /* $ r e p e r t o i r e cd $ r e p e r t o i r e

#

# Geos == > CMMI

#

tar xvjf geos - 2 . 2 . 2 . tar . bz2

cd geos -2.2 .2 && ./ c o n f i g u r e && make && make i n s t a l l

#

# Proj == > CMMI

# cd ..

tar xvzf proj - 4 . 4 . 9 . tar . gz

cd proj -4.4 .9 && ./ c o n f i g u r e && make && make i n s t a l l cd ..

#

# Ren dre a c c e s s i b l e s les l i b r a i r i e s de Geos et de Proj

(25)

# qui sont dans / usr / local / lib

#

echo / usr / local / lib >> / etc / ld . so . conf l d c o n f i g

#

# P o s t g r e S Q L == > CMMI

#

rpm -e p o s t g r e s q l

rpm -e -- node ps p o s t g r e s q l

tar xvjf postgresql - 8 . 1 . 4 . tar . bz2

cd postgresql -8. 1.4 && ./ c o n f i g u r e -- enable - nls && make && make i n s t a l l cd ..

#

# Ren dre les l i b r a i r e s de P o s t g r e S Q L ainsi que ses b i n a i r e s a c c e s s i b l e s

#

echo / usr / local / pgsql / lib >> / etc / ld . so . conf expo rt PATH =/ usr / local / pgsql / bin : $PATH l d c o n f i g

#

# P o s t G I S

#

tar xvzf postgis - 1 . 1 . 2 . tar . gz

cd postgis -1. 1.2 && ./ c o n f i g u r e && make && make i n s t a l l cd ..

#

# P o s t g r e S Q L :

# = = = = = = = = = =

# - C r é a t i o n du super - a d m i n i s t r a t e u r p o s t g r e s avec comme mot de passe ( Linux ) 01 map

# - C r é a t i o n du r é p e r t o i r e / mnt / pgda ta

# - r é a l i s e r le p r e m i e r c l u s t e r par déf aut (/ mnt / pgda ta ) avec ini tdb

#

u s e r d e l -r p o s t g r e s ; rm - rf / mnt / pgda ta /; u s e r a d d -p 01 map p o s t g r e s ; mkdir / mnt / pgd ata /; chown ←- -R p o s t g r e s : p o s t g r e s / mnt / pgda ta ; su p o s t g r e s -c " expo rt PATH =/ usr / local / pgsql / bin : ←-

$PATH ; exp ort PGD ATA =/ mnt / pgda ta ; ini tdb -E LATI N9 -A trust ; mkdir $ P G D A T A / pg_ log "

#

# PDF Lib == > CMMI

#

cd $ r e p e r t o i r e

tar xvzf PDFlib - Lite -5. 0.4 p1 - Unix - src . tar . gz

cd PDFlib - Lite -5. 0.4 p1 - Unix - src && ./ c o n f i g u r e && make && make i n s t a l l l d c o n f i g

cd ..

#

# I n s t a l l a t i o n des d i v e r e s RPM n é c e s s a i r e s pour GD

#

rpm - Uivh libjpeg - devel -6 b - 3 6 . 2 . 1 . i386 . rpm rpm - Uivh libpng -1.2.8 -1. fc2 . i386 . rpm rpm - Uivh libpng - devel -1.2.8 -2. i386 . rpm rpm -e -- node ps gd

rpm -e -- node ps gd - devel rpm -e -- node ps gd - progs

# rpm -e -- nod eps gd

# rpm - Uivh gd -2.0.15 -1. i386 . rpm

# rpm - Uivh gd - devel -2.0.15 -1. i386 . rpm

# rpm - Uivh gd - progs -2.0.15 -1. i386 . rpm rpm -e -- node ps f r e e t y p e

rpm - Uivh freetype2 -2. 1.7 -5 3.6. i586 . rpm rpm - Uivh freetype2 - devel -2.1 .7 -53 .6. i586 . rpm l d c o n f i g

#

# GD == > CMMI

#

(26)

tar xvzf gd - 2 . 0 . 3 3 . tar . gz cd gd - 2 . 0 . 3 3

./ c o n f i g u r e && make && make i n s t a l l l d c o n f i g

cd ..

sleep 5

#

# PHP == > CMMI

#

tar xvjf php - 5 . 0 . 5 . tar . bz2 cd php -5. 0.5

rpm -e -- node ps php

cp ../ php . ini / var / www / cgi - bin /

cp -r / mnt / src / PDFlib - Lite -5.0 .4 p1 - Unix - src / bind / pdfl ib / php / ext / pdf / ext /

cp / mnt / src / php - 5 . 0 . 5 / ext / pdf / M a k e f i l e . php -404. in / mnt / src / php - 5 . 0 . 5 / ext / pdf / M a k e f i l e . in

# rm -f ./ c o n f i g u r e

# rm -f c o n f i g u r e

./ c o n f i g u r e -- enable - f a s t c g i -- with - config - file =/ var / www / cgi - bin / php . ini -- with - gd =/ usr / ←- local -- with - png - dir =/ usr -- with - ttf -- with - freetype - dir =/ usr -- with - zlib -- with - pgsql ←- -- with - regex = sys tem -- enable - dbase -- enable - dbx -- with - jpeg - dir =/ usr -- enable - v e r s i o n i n g make

# rm -f ./ c o n f i g u r e ./ b u i l d c o n f -- force

./ c o n f i g u r e -- enable - f a s t c g i -- with - config - file =/ var / www / cgi - bin / php . ini -- with - gd =/ usr / ←- local -- with - pdf lib -- with - png - dir =/ usr -- with - ttf -- with - freetype - dir =/ usr -- with - zlib ←- -- with - pgsql -- with - regex = syst em -- enable - dbase -- enable - dbx -- with - jpeg - dir =/ usr -- ←- enable - v e r s i o n i n g

make

make i n s t a l l l d c o n f i g

mkdir -p $ ( php - con fig -- extension - dir ) cp $ ( which php ) / var / www / cgi - bin /

# echo S c r i p t A l i a s / cgi - bin / / var / www / cgi - bin / >> / etc / httpd / conf / httpd . conf expo rt PATH =/ usr / local / pgsql / bin /: $PATH

cd ..

tar xvzf gdal - 1 . 3 . 1 . tar . gz cd gdal -1.3 .1

./ c o n f i g u r e && make && make i n s t a l l l d c o n f i g

cd ..

tar xvzf mapserver - 4 . 8 . 3 . tar . gz cd mapserver -4. 8.3

./ c o n f i g u r e -- with - p o s t g i s -- with - proj -- with - geos -- with - gd =/ usr / local -- with - png -- with - ←- m a p s c r i p t -- with - w m s c l i e n t -- with - wfs -- with - w f s c l i e n t -- with - php =/ mnt / src / php -5.0 .5 -- ←- enable - f a s t c g i -- with - gdal -- with - ogr && make

cp m a p s c r i p t / php3 / p h p _ m a p s c r i p t . so $ ( php - conf ig -- extension - dir ) /

#

# Mise en place pour l ’ appli carto de la d d a s s 2 6

# cd ..

#

# Faire en sorte que le r é p e r t o i r e de P o s t g r e S Q L ainsi que la

# v a r i a b l e PGD ATA soie nt a c c e s s i b l e s à tous

#

echo exp ort PATH =\"\ $ { PATH }:/ usr / local / pgsql / bin \" >> / etc / bash rc echo exp ort PGD ATA =\"/ mnt / pgda ta \" >> / etc / bash rc

#

# On p r é c o n f i g u r e Apac he comme il se doit pour nos appl is carto

#

# echo A d d T y p e a p p l i c a t i o n /x - httpd - php . php >> / etc / httpd / conf / httpd . conf

# echo Acti on a p p l i c a t i o n /x - httpd - php / cgi - bin / php >> / etc / httpd / conf / httpd . conf

# perl -i . bak - pe ’s / I n c l u d e conf . d \/\*. conf /\# I n c l u d e conf . d \/\*. conf /g ’ / etc / httpd / conf / ←-

(27)

httpd . conf

# perl -i . bak - pe ’s / D o c u m e n t R o o t \"\/ var \/ www \/ html \"/ D o c u m e n t R o o t \"\/ var \/ www \"/ g ’ / etc / ←- httpd / conf / httpd . conf

# perl -i . bak - pe ’s / D i r e c t o r y \"\/ var \/ www \/ html \"/ D i r e c t o r y \"\/ var \/ www \"/ g ’ / etc / httpd / ←- conf / httpd . conf

# echo Alias / app lis / \"/ var / www / s e r v e u r _ c a r t o _ d h t m l / app lis /\" >> / etc / httpd / conf / httpd . ←- conf

# echo Alias / sc / \"/ var / www / s e r v e u r _ c a r t o _ d h t m l / i n t e r f a c e /\" >> / etc / httpd / conf / httpd . conf

#

# On crée les div ers r é p e r t o i r e s a t t e n d u s pour l ’ a p p l i c a t i o n

# et on en p r o f i t e r a aussi pour d é c o m p r e s s e r notre belle appli ; -)

#

mkdir -p / var / www / s e r v e u r _ c a r t o _ d h t m l

unzip s e r v e u r _ c a r t o _ d h t m l . zip -d / var / www / s e r v e u r _ c a r t o _ d h t m l / chmod 777 -R / var / www / s e r v e u r _ c a r t o _ d h t m l

echo " <? p h p i n f o () ;? >" >> / var / www / s e r v e u r _ c a r t o _ d h t m l / app lis / d d a s s 2 6 / p h p i n f o . php mkdir -p / var / www / tmp

chmod 777 / var / www / tmp

mkdir -p / var / www / t e m p _ m a p s e r v e r chmod 777 / var / www / t e m p _ m a p s e r v e r cp p o s t g r e s q l . conf / mnt / pgda ta / cd / mnt / src

#

# On c o n f i g u r e P o s t g r e S Q L en c o p i a n t nos p r o p r e s f i c h i e r s de c o n f i g u r a t i o n

# c . a . d le f i c h i e r de c o n f i g u r a t i o n ainsi que celui qui gère le s e r v i c e

#

cd / mnt / src /

cp p o s t g r e s q l / etc / init . d / cp p o s t g r e s q l . conf / mnt / pgda ta /

#

# On fait de même pour Apa che c . a . d f i c h i e r de c o n f i g u r a t i o n ( httpd . conf )

# R e m a r q u e : Ici le f i c h i e r de c o n f i g u r a t i o n est déjà o p é r a t i o n n e l pour

# notre appli

#

cd / mnt / src

rm -f / etc / httpd / conf / httpd . conf cp httpd . conf / etc / httpd / conf /

#

# Pour rend re l ’ a p p l i c a t i o n carto o p é r a t i o n n e l l e , il ne reste plus qu ’ à c h a r g e r le f i c h i e r

# SQL qui c o n t i e n t la

#

expo rt PATH =/ usr / local / pgsql / bin : $PATH / etc / init . d / httpd r e s t a r t

/ etc / init . d / p o s t g r e s q l start sleep 7

cd / mnt / src /

chmod 777 d d a s s 2 6 *. sql

su p o s t g r e s -c " expo rt PATH =/ usr / local / pgsql / bin : $PATH ; c r e a t e d b d d a s s 2 6 ; c r e a t e l a n g p l p g s q l ←- d d a s s 2 6 ; psql -d d d a s s 2 6 -f / usr / local / pgsql / share / c o n t r i b / l w p o s t g i s . sql ; psql -d d d a s s 2 6 ←- -f / usr / local / pgsql / share / c o n t r i b / s p a t i a l _ r e f _ s y s . sql ; psql -d d d a s s 2 6 -f / mnt / src / ←- d d a s s 2 6 *. sql ; c r e a t e u s e r -s 01 map "

#

# On fait en sorte que les s e r v i c e s c o n c e r n a n t Apa che et P o s t g r e S Q L

# soi ent a c c e s s i b l e s au d é m a r r a g e == > ils p u i s s e n t d é m a r r e r sans aucun p r o b l è m e

#

echo / etc / init . d / p o s t g r e s q l start >> / etc / rc . local echo / etc / init . d / httpd start >> / etc / rc . local

#

# On p r é c i s e que l ’ i n s t a l l a t i o n est t e r m i n é e

#

clear ; echo -e "\ n \ n \ t % % % % % % % % % % % % % % % % % % % % % % % % % % \ n \ t % I N S T A L L A T I O N T E R M I N E E %\ n \ t ←-

% % % % % % % % % % % % % % % % % % % % % % % % % % \ n \ n "

(28)

B.2 Apache

Le fichier de configuration/etc/httpd/conf/httpd.confutilisé est le suivant

#

# Based upon the NCSA ser ver c o n f i g u r a t i o n files o r i g i n a l l y by Rob McCo ol .

#

# This is the main Apa che serv er c o n f i g u r a t i o n file . It c o n t a i n s the

# c o n f i g u r a t i o n d i r e c t i v e s that give the serv er its i n s t r u c t i o n s .

# See < URL : http :// httpd . apac he . org / docs -2.0/ > for d e t a i l e d i n f o r m a t i o n about

# the d i r e c t i v e s .

#

# Do NOT simp ly read the i n s t r u c t i o n s in here w i t h o u t u n d e r s t a n d i n g

# what they do . They ’ re here only as hints or r e m i n d e r s . If you are uns ure

# c o n s u l t the onl ine docs . You have been warn ed .

#

# The c o n f i g u r a t i o n d i r e c t i v e s are g r o u p e d into three basic s e c t i o n s :

# 1. D i r e c t i v e s that c o n t r o l the o p e r a t i o n of the Apac he serv er p r o c e s s as a

# whole ( the ’ glob al environment ’) .

# 2. D i r e c t i v e s that def ine the p a r a m e t e r s of the ’ main ’ or ’ default ’ server ,

# which r e s p o n d s to r e q u e s t s that aren ’ t h a n d l e d by a v i r t u a l host .

# These d i r e c t i v e s also p r o v i d e d e f a u l t val ues for the s e t t i n g s

# of all v i r t u a l hosts .

# 3. S e t t i n g s for v i r t u a l hosts , which allow Web r e q u e s t s to be sent to

# d i f f e r e n t IP a d d r e s s e s or h o s t n a m e s and have them h a n d l e d by the

# same Apa che serv er p r o c e s s .

#

# C o n f i g u r a t i o n and l o g f i l e names : If the f i l e n a m e s you s p e c i f y for many

# of the server ’ s c o n t r o l files begin with "/" ( or " drive :/" for Win32 ) , the

# ser ver will use that e x p l i c i t path . If the f i l e n a m e s do * not * begin

# with "/" , the value of S e r v e r R o o t is p r e p e n d e d -- so " logs / foo . log "

# with S e r v e r R o o t set to "/ etc / httpd " will be i n t e r p r e t e d by the

# ser ver as "/ etc / httpd / logs / foo . log ".

#

### S e c t i o n 1: Glo bal E n v i r o n m e n t

#

# The d i r e c t i v e s in this s e c t i o n affe ct the o v e r a l l o p e r a t i o n of Apache ,

# such as the num ber of c o n c u r r e n t r e q u e s t s it can hand le or where it

# can find its c o n f i g u r a t i o n files .

#

#

# Don ’ t give away too much i n f o r m a t i o n about all the s u b c o m p o n e n t s

# we are r u n n i n g . C o m m e n t out this line if you don ’ t mind remo te sites

# f i n d i n g out what major o p t i o n a l m o d u l e s you are r u n n i n g S e r v e r T o k e n s OS

#

# S e r v e r R o o t : The top of the d i r e c t o r y tree under which the server ’ s

# c o n f i g u r a t i o n , error , and log files are kept .

#

# NOTE ! If you inte nd to place this on an NFS ( or o t h e r w i s e n e t w o r k )

# m o u n t e d f i l e s y s t e m then plea se read the L o c k F i l e d o c u m e n t a t i o n

# ( a v a i l a b l e at < URL : http :// httpd . apac he . org / docs -2.0/ mod / m p m _ c o m m o n . html # lockfile >) ;

# you will save y o u r s e l f a lot of t r o u b l e .

#

# Do NOT add a slash at the end of the d i r e c t o r y path .

(29)

#

S e r v e r R o o t "/ etc / httpd "

#

# P i d F i l e : The file in which the serv er sho uld rec ord its p r o c e s s

# i d e n t i f i c a t i o n numb er when it star ts .

#

P i d F i l e run / httpd . pid

#

# T i m e o u t : The num ber of s e c o n d s befo re r e c e i v e s and sends time out .

#

T i m e o u t 120

#

# K e e p A l i v e : W h e t h e r or not to allow p e r s i s t e n t c o n n e c t i o n s ( more than

# one r e q u e s t per c o n n e c t i o n ) . Set to " Off " to d e a c t i v a t e .

#

K e e p A l i v e Off

#

# M a x K e e p A l i v e R e q u e s t s : The m a x i m u m num ber of r e q u e s t s to allow

# dur ing a p e r s i s t e n t c o n n e c t i o n . Set to 0 to allow an u n l i m i t e d amo unt .

# We r e c o m m e n d you leave this num ber high , for m a x i m u m p e r f o r m a n c e .

#

M a x K e e p A l i v e R e q u e s t s 100

#

# K e e p A l i v e T i m e o u t : Num ber of s e c o n d s to wait for the next r e q u e s t from the

# same clie nt on the same c o n n e c t i o n .

#

K e e p A l i v e T i m e o u t 15

##

## Server - Pool Size R e g u l a t i o n ( MPM s p e c i f i c )

##

# p r e f o r k MPM

# S t a r t S e r v e r s : numb er of serv er p r o c e s s e s to start

# M i n S p a r e S e r v e r s : m i n i m u m num ber of ser ver p r o c e s s e s which are kept spare

# M a x S p a r e S e r v e r s : m a x i m u m numb er of ser ver p r o c e s s e s which are kept spare

# S e r v e r L i m i t : m a x i m u m value for M a x C l i e n t s for the l i f e t i m e of the serv er

# M a x C l i e n t s : m a x i m u m num ber of serv er p r o c e s s e s a l l o w e d to start

# M a x R e q u e s t s P e r C h i l d : m a x i m u m num ber of r e q u e s t s a ser ver p r o c e s s serv es

< I f M o d u l e p r e f o r k .c >

S t a r t S e r v e r s 8 M i n S p a r e S e r v e r s 5 M a x S p a r e S e r v e r s 20 S e r v e r L i m i t 256 M a x C l i e n t s 256 M a x R e q u e s t s P e r C h i l d 4000

</ IfModule >

# wor ker MPM

# S t a r t S e r v e r s : i n i t i a l numb er of serv er p r o c e s s e s to start

# M a x C l i e n t s : m a x i m u m num ber of s i m u l t a n e o u s cli ent c o n n e c t i o n s

# M i n S p a r e T h r e a d s : m i n i m u m num ber of wor ker t h r e a d s which are kept spare

# M a x S p a r e T h r e a d s : m a x i m u m numb er of wor ker t h r e a d s which are kept spare

# T h r e a d s P e r C h i l d : c o n s t a n t num ber of wor ker t h r e a d s in each serv er p r o c e s s

# M a x R e q u e s t s P e r C h i l d : m a x i m u m num ber of r e q u e s t s a serv er p r o c e s s serv es

< I f M o d u l e work er .c >

S t a r t S e r v e r s 2

(30)

M a x C l i e n t s 150 M i n S p a r e T h r e a d s 25 M a x S p a r e T h r e a d s 75 T h r e a d s P e r C h i l d 25 M a x R e q u e s t s P e r C h i l d 0

</ IfModule >

#

# Lis ten : All ows you to bind Apa che to s p e c i f i c IP a d d r e s s e s and / or

# ports , in a d d i t i o n to the d e f a u l t . See also the < VirtualHost >

# d i r e c t i v e .

#

# Cha nge this to List en on s p e c i f i c IP a d d r e s s e s as shown below to

# p r e v e n t Apa che from g l o m m i n g onto all bound IP a d d r e s s e s ( 0 . 0 . 0 . 0 )

#

# List en 1 2 . 3 4 . 5 6 . 7 8 : 8 0 List en 80

#

# D y n a m i c Sha red Obje ct ( DSO ) S u p p o r t

#

# To be able to use the f u n c t i o n a l i t y of a modu le which was built as a DSO you

# have to place c o r r e s p o n d i n g ‘ LoadModule ’ lines at this l o c a t i o n so the

# d i r e c t i v e s c o n t a i n e d in it are a c t u a l l y a v a i l a b l e _ b e f o r e _ they are used .

# S t a t i c a l l y c o m p i l e d m o d u l e s ( those lis ted by ‘ httpd -l ’) do not need

# to be load ed here .

#

# E x a m p l e :

# L o a d M o d u l e f o o _ m o d u l e m o d u l e s / m o d _ f o o . so

#

L o a d M o d u l e a c c e s s _ m o d u l e m o d u l e s / m o d _ a c c e s s . so L o a d M o d u l e a u t h _ m o d u l e m o d u l e s / m o d _ a u t h . so

L o a d M o d u l e a u t h _ a n o n _ m o d u l e m o d u l e s / m o d _ a u t h _ a n o n . so L o a d M o d u l e a u t h _ d b m _ m o d u l e m o d u l e s / m o d _ a u t h _ d b m . so L o a d M o d u l e a u t h _ d i g e s t _ m o d u l e m o d u l e s / m o d _ a u t h _ d i g e s t . so L o a d M o d u l e l d a p _ m o d u l e m o d u l e s / m o d _ l d a p . so

L o a d M o d u l e a u t h _ l d a p _ m o d u l e m o d u l e s / m o d _ a u t h _ l d a p . so L o a d M o d u l e i n c l u d e _ m o d u l e m o d u l e s / m o d _ i n c l u d e . so L o a d M o d u l e l o g _ c o n f i g _ m o d u l e m o d u l e s / m o d _ l o g _ c o n f i g . so L o a d M o d u l e e n v _ m o d u l e m o d u l e s / m o d _ e n v . so

L o a d M o d u l e m i m e _ m a g i c _ m o d u l e m o d u l e s / m o d _ m i m e _ m a g i c . so L o a d M o d u l e c e r n _ m e t a _ m o d u l e m o d u l e s / m o d _ c e r n _ m e t a . so L o a d M o d u l e e x p i r e s _ m o d u l e m o d u l e s / m o d _ e x p i r e s . so L o a d M o d u l e d e f l a t e _ m o d u l e m o d u l e s / m o d _ d e f l a t e . so L o a d M o d u l e h e a d e r s _ m o d u l e m o d u l e s / m o d _ h e a d e r s . so L o a d M o d u l e u s e r t r a c k _ m o d u l e m o d u l e s / m o d _ u s e r t r a c k . so L o a d M o d u l e s e t e n v i f _ m o d u l e m o d u l e s / m o d _ s e t e n v i f . so L o a d M o d u l e m i m e _ m o d u l e m o d u l e s / m o d _ m i m e . so

L o a d M o d u l e d a v _ m o d u l e m o d u l e s / m o d _ d a v . so L o a d M o d u l e s t a t u s _ m o d u l e m o d u l e s / m o d _ s t a t u s . so L o a d M o d u l e a u t o i n d e x _ m o d u l e m o d u l e s / m o d _ a u t o i n d e x . so L o a d M o d u l e a s i s _ m o d u l e m o d u l e s / m o d _ a s i s . so

L o a d M o d u l e i n f o _ m o d u l e m o d u l e s / m o d _ i n f o . so L o a d M o d u l e d a v _ f s _ m o d u l e m o d u l e s / m o d _ d a v _ f s . so

L o a d M o d u l e v h o s t _ a l i a s _ m o d u l e m o d u l e s / m o d _ v h o s t _ a l i a s . so L o a d M o d u l e n e g o t i a t i o n _ m o d u l e m o d u l e s / m o d _ n e g o t i a t i o n . so L o a d M o d u l e d i r _ m o d u l e m o d u l e s / m o d _ d i r . so

L o a d M o d u l e i m a p _ m o d u l e m o d u l e s / m o d _ i m a p . so L o a d M o d u l e a c t i o n s _ m o d u l e m o d u l e s / m o d _ a c t i o n s . so L o a d M o d u l e s p e l i n g _ m o d u l e m o d u l e s / m o d _ s p e l i n g . so L o a d M o d u l e u s e r d i r _ m o d u l e m o d u l e s / m o d _ u s e r d i r . so L o a d M o d u l e a l i a s _ m o d u l e m o d u l e s / m o d _ a l i a s . so

(31)

L o a d M o d u l e r e w r i t e _ m o d u l e m o d u l e s / m o d _ r e w r i t e . so L o a d M o d u l e p r o x y _ m o d u l e m o d u l e s / m o d _ p r o x y . so

L o a d M o d u l e p r o x y _ f t p _ m o d u l e m o d u l e s / m o d _ p r o x y _ f t p . so L o a d M o d u l e p r o x y _ h t t p _ m o d u l e m o d u l e s / m o d _ p r o x y _ h t t p . so L o a d M o d u l e p r o x y _ c o n n e c t _ m o d u l e m o d u l e s / m o d _ p r o x y _ c o n n e c t . so L o a d M o d u l e c a c h e _ m o d u l e m o d u l e s / m o d _ c a c h e . so

L o a d M o d u l e s u e x e c _ m o d u l e m o d u l e s / m o d _ s u e x e c . so

L o a d M o d u l e d i s k _ c a c h e _ m o d u l e m o d u l e s / m o d _ d i s k _ c a c h e . so L o a d M o d u l e f i l e _ c a c h e _ m o d u l e m o d u l e s / m o d _ f i l e _ c a c h e . so L o a d M o d u l e m e m _ c a c h e _ m o d u l e m o d u l e s / m o d _ m e m _ c a c h e . so L o a d M o d u l e c g i _ m o d u l e m o d u l e s / m o d _ c g i . so

#

# Load conf ig files from the con fig d i r e c t o r y "/ etc / httpd / conf . d ".

#

# I n c l u d e conf . d /*. conf

#

# E x t e n d e d S t a t u s c o n t r o l s w h e t h e r Apac he will g e n e r a t e " full " sta tus

# i n f o r m a t i o n ( E x t e n d e d S t a t u s On ) or just basic i n f o r m a t i o n ( E x t e n d e d S t a t u s

# Off ) when the " server - stat us " h a n d l e r is call ed . The d e f a u l t is Off .

#

# E x t e n d e d S t a t u s On

### S e c t i o n 2: ’ Main ’ ser ver c o n f i g u r a t i o n

#

# The d i r e c t i v e s in this s e c t i o n set up the val ues used by the ’ main ’

# server , which r e s p o n d s to any r e q u e s t s that aren ’ t h a n d l e d by a

# < VirtualHost > d e f i n i t i o n . These val ues also p r o v i d e d e f a u l t s for

# any < VirtualHost > c o n t a i n e r s you may def ine later in the file .

#

# All of these d i r e c t i v e s may app ear ins ide < VirtualHost > containers ,

# in which case these d e f a u l t s e t t i n g s will be o v e r r i d d e n for the

# v i r t u a l host being d e f i n e d .

#

#

# If you wish httpd to run as a d i f f e r e n t user or group , you must run

# httpd as root i n i t i a l l y and it will swi tch .

#

# User / Group : The name ( or # num ber ) of the user / group to run httpd as .

# . On SCO ( ODT 3) use " User nou ser " and " Group n o g r o u p ".

# . On HPUX you may not be able to use sha red mem ory as nobody , and the

# s u g g e s t e d w o r k a r o u n d is to crea te a user www and use that user .

# NOTE that some k e r n e l s refu se to set gid ( Group ) or sem ctl ( I P C _ S E T )

# when the value of ( u n s i g n e d ) Group is above 600 00;

# don ’ t use Group # -1 on these s y s t e m s !

#

User apa che Group apa che

#

# S e r v e r A d m i n : Your address , where p r o b l e m s with the ser ver shou ld be

# e - mai led . This a d d r e s s a p p e a r s on some server - g e n e r a t e d pages , such

# as error d o c u m e n t s . e . g . admin@your - dom ain . com

#

S e r v e r A d m i n r o o t @ l o c a l h o s t

#

# S e r v e r N a m e gives the name and port that the ser ver uses to i d e n t i f y its elf .

# This can often be d e t e r m i n e d a u t o m a t i c a l l y , but we r e c o m m e n d you s p e c i f y

# it e x p l i c i t l y to p r e v e n t p r o b l e m s dur ing s t a r t u p .

(32)

#

# If this is not set to valid DNS name for your host , server - g e n e r a t e d

# r e d i r e c t i o n s will not work . See also the U s e C a n o n i c a l N a m e d i r e c t i v e .

#

# If your host doesn ’ t have a r e g i s t e r e d DNS name , enter its IP a d d r e s s here .

# You will have to acc ess it by its a d d r e s s anyway , and this will make

# r e d i r e c t i o n s work in a s e n s i b l e way .

#

# S e r v e r N a m e new . host . name :80

#

# U s e C a n o n i c a l N a m e : D e t e r m i n e s how Apa che c o n s t r u c t s self - r e f e r e n c i n g

# URLs and the S E R V E R _ N A M E and S E R V E R _ P O R T v a r i a b l e s .

# When set " Off " , Apac he will use the H o s t n a m e and Port s u p p l i e d

# by the clie nt . When set " On " , Apac he will use the value of the

# S e r v e r N a m e d i r e c t i v e .

#

U s e C a n o n i c a l N a m e Off

#

# D o c u m e n t R o o t : The d i r e c t o r y out of which you will serve your

# d o c u m e n t s . By default , all r e q u e s t s are taken from this directory , but

# s y m b o l i c links and a l i a s e s may be used to point to other l o c a t i o n s .

#

D o c u m e n t R o o t "/ var / www / s e r v e u r _ c a r t o _ d h t m l / appl is / d d a s s 2 6 "

#

# Each d i r e c t o r y to which Apac he has acc ess can be c o n f i g u r e d with r e s p e c t

# to which s e r v i c e s and f e a t u r e s are a l l o w e d and / or d i s a b l e d in that

# d i r e c t o r y ( and its s u b d i r e c t o r i e s ) .

#

# First , we c o n f i g u r e the " d e f a u l t " to be a very r e s t r i c t i v e set of

# f e a t u r e s .

#

< D i r e c t o r y / >

O p t i o n s F o l l o w S y m L i n k s A l l o w O v e r r i d e None

</ Directory >

#

# Note that from this point f o r w a r d you must s p e c i f i c a l l y allow

# p a r t i c u l a r f e a t u r e s to be e n a b l e d - so if something ’ s not w o r k i n g as

# you might expect , make sure that you have s p e c i f i c a l l y e n a b l e d it

# below .

#

#

# This shou ld be c h a n g e d to w h a t e v e r you set D o c u m e n t R o o t to .

#

< D i r e c t o r y "/ var / www / s e r v e u r _ c a r t o _ d h t m l / appl is / d d a s s 2 6 " >

#

# P o s s i b l e val ues for the O p t i o n s d i r e c t i v e are " None " , " All " ,

# or any c o m b i n a t i o n of :

# I n d e x e s I n c l u d e s F o l l o w S y m L i n k s S y m L i n k s i f O w n e r M a t c h E x e c C G I M u l t i V i e w s

#

# Note that " M u l t i V i e w s " must be named * e x p l i c i t l y * -- - " O p t i o n s All "

# doesn ’ t give it to you .

#

# The O p t i o n s d i r e c t i v e is both c o m p l i c a t e d and i m p o r t a n t . Ple ase see

# http :// httpd . apa che . org / docs -2.0/ mod / core . html # o p t i o n s

# for more i n f o r m a t i o n .

(33)

#

O p t i o n s I n d e x e s F o l l o w S y m L i n k s

#

# A l l o w O v e r r i d e c o n t r o l s what d i r e c t i v e s may be pla ced in . h t a c c e s s files .

# It can be " All " , " None " , or any c o m b i n a t i o n of the k e y w o r d s :

# O p t i o n s F i l e I n f o A u t h C o n f i g Limit

#

A l l o w O v e r r i d e None

#

# C o n t r o l s who can get stuff from this ser ver .

#

Order allow , deny Allow from all

</ Directory >

#

# U s e r D i r : The name of the d i r e c t o r y that is a p p e n d e d onto a user ’ s home

# d i r e c t o r y if a ~ user r e q u e s t is r e c e i v e d .

#

# The path to the end user a c c o u n t ’ public_html ’ d i r e c t o r y must be

# a c c e s s i b l e to the w e b s e r v e r use rid . This u s u a l l y means that ~ use rid

# must have p e r m i s s i o n s of 711 , ~ user id / p u b l i c _ h t m l must have p e r m i s s i o n s

# of 755 , and d o c u m e n t s c o n t a i n e d t h e r e i n must be world - r e a d a b l e .

# Otherwise , the clie nt will only r e c e i v e a "403 F o r b i d d e n " m e s s a g e .

#

# See also : http :// httpd . apac he . org / docs / misc / FAQ . html # f o r b i d d e n

#

< I f M o d u l e m o d _ u s e r d i r .c >

#

# U s e r D i r is d i s a b l e d by d e f a u l t since it can c o n f i r m the p r e s e n c e

# of a u s e r n a m e on the sys tem ( d e p e n d i n g on home d i r e c t o r y

# p e r m i s s i o n s ) .

#

U s e r D i r d i s a b l e

#

# To enab le r e q u e s t s to /~ user / to serve the user ’ s p u b l i c _ h t m l

# directory , remo ve the " U s e r D i r d i s a b l e " line above , and u n c o m m e n t

# the f o l l o w i n g line i n s t e a d :

#

# U s e r D i r p u b l i c _ h t m l

</ IfModule >

#

# C o n t r o l acc ess to U s e r D i r d i r e c t o r i e s . The f o l l o w i n g is an e x a m p l e

# for a site where these d i r e c t o r i e s are r e s t r i c t e d to read - only .

#

# < D i r e c t o r y / home /*/ public_html >

# A l l o w O v e r r i d e F i l e I n f o A u t h C o n f i g Limit

# O p t i o n s M u l t i V i e w s I n d e x e s S y m L i n k s I f O w n e r M a t c h I n c l u d e s N o E x e c

# < Limit GET POST OPTIONS >

# Order allow , deny

# Allow from all

# </ Limit >

# < L i m i t E x c e p t GET POST OPTIONS >

# Order deny , allow

# Deny from all

# </ LimitExcept >

(34)

# </ Directory >

#

# D i r e c t o r y I n d e x : sets the file that Apa che will serve if a d i r e c t o r y

# is r e q u e s t e d .

#

# The index . html . var file ( a type - map ) is used to d e l i v e r content -

# n e g o t i a t e d d o c u m e n t s . The M u l t i V i e w s Opt ion can be used for the

# same purpose , but it is much slo wer .

#

D i r e c t o r y I n d e x index . html index . html . var index . php

#

# A c c e s s F i l e N a m e : The name of the file to look for in each d i r e c t o r y

# for a d d i t i o n a l c o n f i g u r a t i o n d i r e c t i v e s . See also the A l l o w O v e r r i d e

# d i r e c t i v e .

#

A c c e s s F i l e N a m e . h t a c c e s s

#

# The f o l l o w i n g lines p r e v e n t . h t a c c e s s and . h t p a s s w d files from being

# vie wed by Web c l i e n t s .

#

< Files ~ "^\. ht " >

Order allow , deny Deny from all

</ Files >

#

# T y p e s C o n f i g d e s c r i b e s where the mime . types file ( or e q u i v a l e n t ) is

# to be found .

#

T y p e s C o n f i g / etc / mime . types

#

# D e f a u l t T y p e is the d e f a u l t MIME type the serv er will use for a d o c u m e n t

# if it cann ot o t h e r w i s e d e t e r m i n e one , such as from f i l e n a m e e x t e n s i o n s .

# If your ser ver c o n t a i n s most ly text or HTML documents , " text / plain " is

# a good value . If most of your c o n t e n t is binary , such as a p p l i c a t i o n s

# or images , you may want to use " a p p l i c a t i o n / octet - str eam " i n s t e a d to

# keep b r o w s e r s from try ing to d i s p l a y bin ary files as tho ugh they are

# text .

#

D e f a u l t T y p e text / plain

#

# The m o d _ m i m e _ m a g i c mod ule all ows the ser ver to use v a r i o u s hints from the

# c o n t e n t s of the file its elf to d e t e r m i n e its type . The M I M E M a g i c F i l e

# d i r e c t i v e tells the mod ule where the hint d e f i n i t i o n s are l o c a t e d .

#

< I f M o d u l e m o d _ m i m e _ m a g i c .c >

# M I M E M a g i c F i l e / usr / share / magic . mime M I M E M a g i c F i l e conf / magic

</ IfModule >

#

# H o s t n a m e L o o k u p s : Log the names of c l i e n t s or just their IP a d d r e s s e s

# e . g . , www . apa che . org ( on ) or 2 0 4 . 6 2 . 1 2 9 . 1 3 2 ( off ) .

# The d e f a u l t is off b e c a u s e it ’ d be o v e r a l l bet ter for the net if peop le

# had to k n o w i n g l y turn this f e a t u r e on , since e n a b l i n g it means that

# each clie nt r e q u e s t will res ult in AT LEAST one look up r e q u e s t to the

# n a m e s e r v e r .

(35)

#

H o s t n a m e L o o k u p s Off

#

# E n a b l e M M A P : C o n t r o l w h e t h e r memory - m a p p i n g is used to d e l i v e r

# files ( a s s u m i n g that the u n d e r l y i n g OS s u p p o r t s it ) .

# The d e f a u l t is on ; turn this off if you serve from NFS - m o u n t e d

# f i l e s y s t e m s . On some systems , t u r n i n g it off ( r e g a r d l e s s of

# f i l e s y s t e m ) can i m p r o v e p e r f o r m a n c e ; for details , ple ase see

# http :// httpd . apa che . org / docs -2.0/ mod / core . html # e n a b l e m m a p

#

# E n a b l e M M A P off

#

# E n a b l e S e n d f i l e : C o n t r o l w h e t h e r the s e n d f i l e ker nel s u p p o r t is

# used to d e l i v e r files ( a s s u m i n g that the OS s u p p o r t s it ) .

# The d e f a u l t is on ; turn this off if you serve from NFS - m o u n t e d

# f i l e s y s t e m s . Plea se see

# http :// httpd . apa che . org / docs -2.0/ mod / core . html # e n a b l e s e n d f i l e

#

# E n a b l e S e n d f i l e off

#

# E r r o r L o g : The l o c a t i o n of the error log file .

# If you do not s p e c i f y an E r r o r L o g d i r e c t i v e wit hin a < VirtualHost >

# container , error m e s s a g e s r e l a t i n g to that v i r t u a l host will be

# log ged here . If you * do * def ine an error l o g f i l e for a < VirtualHost >

# container , that host ’ s erro rs will be logg ed there and not here .

#

E r r o r L o g logs / e r r o r _ l o g

#

# L o g L e v e l : C o n t r o l the numb er of m e s s a g e s logg ed to the e r r o r _ l o g .

# P o s s i b l e val ues i n c l u d e : debug , info , notice , warn , error , crit ,

# alert , emerg .

#

L o g L e v e l warn

#

# The f o l l o w i n g d i r e c t i v e s def ine some for mat n i c k n a m e s for use with

# a C u s t o m L o g d i r e c t i v e ( see below ) .

#

L o g F o r m a t "% h % l % u % t \"% r \" % > s % b \"%{ R e f e r e r } i \" \"%{ User - Agent } i \"" c o m b i n e d L o g F o r m a t "% h % l % u % t \"% r \" % > s % b " com mon

L o g F o r m a t "%{ R e f e r e r } i -> % U " r e f e r e r L o g F o r m a t "%{ User - agent } i " agent

#

# The l o c a t i o n and for mat of the acce ss l o g f i l e ( Comm on L o g f i l e For mat ) .

# If you do not defi ne any acc ess l o g f i l e s with in a < VirtualHost >

# container , they will be logg ed here . Con trariw ise , if you * do *

# def ine per - < VirtualHost > acc ess logfiles , t r a n s a c t i o n s will be

# log ged t h e r e i n and * not * in this file .

#

# C u s t o m L o g logs / a c c e s s _ l o g com mon

#

# If you would like to have agent and r e f e r e r logfiles , u n c o m m e n t the

# f o l l o w i n g d i r e c t i v e s .

#

# C u s t o m L o g logs / r e f e r e r _ l o g r e f e r e r

# C u s t o m L o g logs / a g e n t _ l o g agent

(36)

#

# For a sing le l o g f i l e with access , agent , and r e f e r e r i n f o r m a t i o n

# ( C o m b i n e d L o g f i l e For mat ) , use the f o l l o w i n g d i r e c t i v e :

#

C u s t o m L o g logs / a c c e s s _ l o g c o m b i n e d

#

# O p t i o n a l l y add a line c o n t a i n i n g the ser ver v e r s i o n and v i r t u a l host

# name to server - g e n e r a t e d pages ( i n t e r n a l error documents , FTP d i r e c t o r y

# listings , m o d _ s t a t u s and m o d _ i n f o out put etc . , but not CGI g e n e r a t e d

# d o c u m e n t s or cus tom error d o c u m e n t s ) .

# Set to " EMail " to also i n c l u d e a mail to : link to the S e r v e r A d m i n .

# Set to one of : On | Off | EMail

#

S e r v e r S i g n a t u r e On

#

# A l i a s e s : Add here as many a l i a s e s as you need ( with no limit ) . The for mat is

# Alias f a k e n a m e r e a l n a m e

#

# Note that if you i n c l u d e a t r a i l i n g / on f a k e n a m e then the ser ver will

# r e q u i r e it to be p r e s e n t in the URL . So "/ icons " isn ’ t a l i a s e d in this

# example , only "/ icons /". If the f a k e n a m e is slash - terminated , then the

# r e a l n a m e must also be slash terminated , and if the f a k e n a m e omits the

# t r a i l i n g slash , the r e a l n a m e must also omit it .

#

# We i n c l u d e the / icons / alias for F a n c y I n d e x e d d i r e c t o r y l i s t i n g s . If you

# do not use F a n c y I n d e x i n g , you may c o m m e n t this out .

#

Alias / icons / "/ var / www / icons /"

< D i r e c t o r y "/ var / www / icons " >

O p t i o n s I n d e x e s M u l t i V i e w s A l l o w O v e r r i d e None

Order allow , deny Allow from all

</ Directory >

#

# Web DAV modu le c o n f i g u r a t i o n s e c t i o n .

#

< I f M o d u l e m o d _ d a v _ f s .c >

# L o c a t i o n of the Web DAV lock d a t a b a s e . D A V L o c k D B / var / lib / dav / loc kdb

</ IfModule >

#

# S c r i p t A l i a s : This c o n t r o l s which d i r e c t o r i e s c o n t a i n ser ver s c r i p t s .

# S c r i p t A l i a s e s are e s s e n t i a l l y the same as Aliases , exc ept that

# d o c u m e n t s in the r e a l n a m e d i r e c t o r y are t r e a t e d as a p p l i c a t i o n s and

# run by the ser ver when r e q u e s t e d rath er than as d o c u m e n t s sent to the cli ent .

# The same rules about t r a i l i n g "/" apply to S c r i p t A l i a s d i r e c t i v e s as to

# Alias .

#

S c r i p t A l i a s / cgi - bin / "/ var / www / cgi - bin /"

#

# "/ var / www / cgi - bin " sho uld be c h a n g e d to w h a t e v e r your S c r i p t A l i a s e d

# CGI d i r e c t o r y exists , if you have that c o n f i g u r e d .

#

< D i r e c t o r y "/ var / www / cgi - bin " >

(37)

A l l o w O v e r r i d e None O p t i o n s None Order allow , deny Allow from all

</ Directory >

#

# R e d i r e c t all ows you to tell c l i e n t s about d o c u m e n t s which used to exist in

# your server ’ s namespace , but do not a n y m o r e . This all ows you to tell the

# c l i e n t s where to look for the r e l o c a t e d d o c u m e n t .

# E x a m p l e :

# R e d i r e c t p e r m a n e n t / foo http :// www . e x a m p l e . com / bar

#

# D i r e c t i v e s c o n t r o l l i n g the d i s p l a y of server - g e n e r a t e d d i r e c t o r y l i s t i n g s .

#

#

# I n d e x O p t i o n s : C o n t r o l s the a p p e a r a n c e of server - g e n e r a t e d d i r e c t o r y

# l i s t i n g s .

#

I n d e x O p t i o n s F a n c y I n d e x i n g V e r s i o n S o r t N a m e W i d t h =*

#

# A d d I c o n * d i r e c t i v e s tell the ser ver which icon to show for d i f f e r e n t

# files or f i l e n a m e e x t e n s i o n s . These are only d i s p l a y e d for

# F a n c y I n d e x e d d i r e c t o r i e s .

#

A d d I c o n B y E n c o d i n g ( CMP ,/ icons / c o m p r e s s e d . gif ) x - c o m p r e s s x - gzip A d d I c o n B y T y p e ( TXT ,/ icons / text . gif ) text /*

A d d I c o n B y T y p e ( IMG ,/ icons / imag e2 . gif ) image /*

A d d I c o n B y T y p e ( SND ,/ icons / soun d2 . gif ) audio /*

A d d I c o n B y T y p e ( VID ,/ icons / movie . gif ) video /*

A d d I c o n / icons / bin ary . gif . bin . exe A d d I c o n / icons / bin hex . gif . hqx A d d I c o n / icons / tar . gif . tar

A d d I c o n / icons / wor ld2 . gif . wrl . wrl . gz . vrml . vrm . iv A d d I c o n / icons / c o m p r e s s e d . gif . Z . z . tgz . gz . zip A d d I c o n / icons / a . gif . ps . ai . eps

A d d I c o n / icons / lay out . gif . html . shtml . htm . pdf A d d I c o n / icons / text . gif . txt

A d d I c o n / icons / c . gif . c A d d I c o n / icons / p . gif . pl . py A d d I c o n / icons / f . gif . for A d d I c o n / icons / dvi . gif . dvi A d d I c o n / icons / u u e n c o d e d . gif . uu

A d d I c o n / icons / scr ipt . gif . conf . sh . shar . csh . ksh . tcl A d d I c o n / icons / tex . gif . tex

A d d I c o n / icons / bomb . gif core A d d I c o n / icons / back . gif ..

A d d I c o n / icons / hand . right . gif REA DME A d d I c o n / icons / fol der . gif ^^ D I R E C T O R Y ^^

A d d I c o n / icons / blank . gif ^^ B L A N K I C O N ^^

#

# D e f a u l t I c o n is which icon to show for files which do not have an icon

# e x p l i c i t l y set .

#

D e f a u l t I c o n / icons / u n k n o w n . gif

Références

Documents relatifs

Dans de telles conditions, il se peut que l’utilisation d’un autre système de production en tant que rechange fonctionne mais le succès de cette approche dépend d’une part de

To start the Services Configuration Tool from the desktop, go to the Main Menu Button (on the Panel) =&gt; System Settings =&gt; Server Settings =&gt; Services or type the

This manual explains how to boot the Red Hat Enterprise Linux 7 installation program (Anaconda) and how to install Red Hat Enterprise Linux 7 on AMD64 and Intel 64 systems, 64-bit

[r]

The study focuses on phonological, orthographical, lexical, syntactical, semantic, pragmatic and tex- tual aspects and reveals the overwhelming influence of French, English and

[r]

[r]

La situation dépend de la réponse à la question: &#34;Quand une grandeur est multipliée ou divisée par 2, 3 ou 4, l’autre grandeur l’est-elle aussi?&#34;.. • Si la réponse