Mais quand je lance apache mes apli .php ne sont plus affichée du tt..LoadModule php5 /usr/lib/libphp5.so
et :
Addtype application/x-httpd-php5 .php5
si tu as deux load_module(un pour php4 et un autre pour php5) dans le conf d'apache ça ne peut pas marcher.une idée ?
Code : Tout sélectionner
<IfDefine HAVE_PHP4>
<IfModule !mod_php4.c>
LoadModule php4_module extramodules/mod_php4.so
</IfModule>
</IfDefine>
<IfModule mod_php4.c>
PHPINIDir /etc
</IfModule>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
</IfModule>Code : Tout sélectionner
LoadModule php5_module /usr/lib/apache2/libphp5.so
DirectoryIndex index.html index.htm index.shtml index.php index.php index.php5Code : Tout sélectionner
#LoadModule php5_module /usr/lib/apache2/libphp5.soCode : Tout sélectionner
[number@numberfixelin bin]$ ./php -f /var/www/html/number/www/test.php5Code : Tout sélectionner
phpinfo()
PHP Version => 5.0.4
System => Linux numberfixelin 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686
Car je voudrais pouvoir tester mes script sous Php4 et Php5 ..Et pourquoi ne pas mettre seulement PHP5 configuré pour traiter aussi bien le PHP5 que le PHP4 ? À moins que tu ne sois en train de configurer un serveur de production... mais j'ai un doute.
pour installer php en cgi n'utilise pas --with-aspx dans le configure.je viens de le retrouver malheureusement il est prevu pr Xp ....
Donc je galere pr installer Php5 en cgi et pour que Apache l'utilise pour les .php5
là je ne comprend plus, tu l'as installé oui ou non?Donc il faut que je sache cmt installer Php5 ..
bon une dernière tentative après je crois que j'arrête.Je reformule ma question :
Comment installer Php5 En cgi et dire a apache qu'il l'utilise pr les .php5 ?? (sous mandrake 10.1 avec apache 2.0.59 et php4 en Module)
comme tu parle d'une page l'expliquant sous xp j'imagine qu'ils parlent du conf d'apache.pour installer php en cgi n'utilise pas --with-aspx dans le configure.
testé par acquis de conscience.pour parser tes fichier:
AddType application/x-httpd-php .php
ou
AddType application/x-httpd-php .php5
mais pas les deux en même temps.
DirectoryIndex index.html index.htm index.shtml index.php index.php index.php5
AddHandler application/x-httpd-php5 .php5
Action application/x-httpd-php5 /bin
ScriptAlias /bin/ /home/number/Programmes/Serveur/Web/Php5/bin