» PHP 4.3.2
Rédigé par :
Guillaume
Le : 11/06/2003 à 08:22
Hits : 8131
Apres Apache, MySQL, passons à l'installation de PHP4.3.2 (la dernière version stable à ce jour). Il faudra bien sur recompiler apache afin de lui faire accepter le PHP. Cette installation à été faite sous Linux Slackware 8.1.
Télécharger les sources sur le site officiel, vous pouver en profiter aussi pour télécharger le manuel, il vous sera très utile!
Site officiel :
http://www.php.net
Copier la source php-4.3.2.tar.gz dans le répertoire /usr/src et placer vous dans celui-ci.
cd /usr/src
tar -vzxf php-4.3.2.tar.gz
cd php-4.3.2
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.27 --enable-track-vars
make
make install
Maintenant il faut faire un bref retour vers apache pour lui activer le module PHP.
cd ../apache_1.3.27
./configure --prefix=/usr/local/apache --enable-module=info --activate-module=src/modules/php4/libphp4.a
make
make install
cd ../php-4.3.2
cp php.ini-dist /usr/local/lib/php.ini
Voilà, Php est installé et Apache reconfiguré. Vous pouvez maintenant (selon votre choix), choisir de laisser les register_globals sur Off, ou bien de les mettres sur On, la première solution étant la meilleure pour plus de sécurité.
+--------------------------------------------------------------------+
| License:
| This software is subject to the PHP License, available in this
| distribution in the file LICENSE. By continuing this installation
| process, you are bound by the terms of this license agreement.
| If you do not agree with the terms of this license, you must abort
| the installation process at this point.
+--------------------------------------------------------------------+
| *** NOTE ***
| The default for register_globals is now OFF!
|
| If your application relies on register_globals being ON, you
| should explicitly set it to on in your php.ini file.
| Note that you are strongly encouraged to read
| http://www.php.net/manual/en/security.registerglobals.php
| about the implications of having register_globals set to on, and
| avoid using it if possible.
+--------------------------------------------------------------------+
Thank you for using PHP.
» Commentaires
Pas de commentaires.
Vous devez être connecté en tant que Membre pour pouvoir poster un commentaire, Inscrivez vous ici !