Précédent Suivant

INSTALLATION

Installation d’Apache
Vous devez l’installer dans C:/Program files/Apache group
Configuration d’Apache

Le fichier "httpd.conf" permet de configurer Apache.

Vous pouvez par exemple ajouter votre adresse IP à la ligne Server Name ;

Vous pouvez également modifier la racine Web de vos documents, à l'aide de la directive

DocumentRoot. Par défaut il s'agit du répertoire "htdocs", dans le répertoire d'installation d'Apache. Il convient de le changer, pour "c:\web" par exemple.

ServerName 127.0.0.1

DocumentRoot "c:/web"

 

Et un peu plus bas ...

<Directory "c:/web">

 Options All

 AllowOverride All

 Order allow,deny

 Allow from all

</Directory>

 

Copiez les lignes de configuration suivantes, puis collez-les dans le fichier httpd.conf.

Php4

# for the apache module

LoadModule php4_module c:/php/sapi/php4apache.dll

#Ajouter a la suite de la ligne ci-dessous les extensions que vous

#voulez voir reconnaître par php, précédée d’un point

AddType application/x-httpd-php .phtml .pwml .php3 .php4 .php .php2 .inc

 

#for the cgi binary (you can use that one compiled with force cgi redirect too)

ScriptAlias /php4/ "C:/php/"

Action application/x-httpd-php4 "/php4/php.exe"

 

Php5

# for the apache module

LoadModule php5_module c:/php/sapi/php5apache.dll

#Ajouter a la suite de la ligne ci-dessous les extensions que vous

#voulez voir reconnaître par php, précédée d’un point

AddType application/x-httpd-php .phtml .pwml .php3 .php4 .php .php2 .inc .php5

 

#for the cgi binary (you can use that one compiled with force cgi redirect too)

ScriptAlias /php5/ "C:/php/"

Action application/x-httpd-php5 "/php5/php.exe"

 

Pour plus d’informations sur Apache, il y a le site web d’Apache Software Foundation à l’adresse : http://www.apache.org/. Il en existe aussi un précis et concis sur Apache chez O’Reilly.

 

 

Précédent

 

Suivant