FR | EN
Page générée en 0.165 sec
Imprimer

2. Installation de PHP.

Cette procédure permet à vos scripts PHP d'être exécutés grace à un interpreteur et ce pour toute page possédant une extention .php .php3 (cf. Installation d'apache).

Dézipez le fichier php4.1.2-Win32.zip dans le répertoire C:\serveurweb\php\. Première chose à faire, renommez php.ini-dist en php.ini et déplacez celui-ci dans le répertoire courant de Windows. Ce fichier contient la configuration.

Plusieurs paramètres sont à modifier :

Paths and Directories (ligne 340)

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = .

; The root of the PHP pages, used only if nonempty.
doc_root =

; The directory under which PHP opens the script using /~usernamem used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = C:\seveurweb\php\extensions

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

Pour débloquer certaines fonctionnalités, vous devrez décommenter les lignes des dll dans la section Windows extensions (ligne 414).

Pour vérifier si l'installation a réussit, créez un fichier phpinfo.php dans le répertoire C:\serveurweb\www\ puis ouvrez-le à l'aide d'un éditeur (je vous conseille UltraEdit). Insérez-y :

<?php phpinfo() ?>

Dans votre navigateur, allez ensuite à l'adresse localhost\phpinfo.php, vous devriez voir une page contenant des informations sur la configuration du serveur :

Informations sur PHP
W3C - XHTML 1.0 Powered By Fedora W3C - CSS