Page 1 sur 1
pages avec un underscore ne s'executent pas
Posté : 04 avr. 2006, 09:38
par dtom
bonjour,
je vien d'installer un serveur FC4 avec php5 et j'ai un pb avec certaines pages en *.php3
Ce sont celles qui contiennent un underscore "_" dans leur nom de fichier, au lieu d'executer le script, le serveur renvoie le code php.
Si quelqu'un sait d'où vient ce problème, ce serait sympa de m'aider

Posté : 04 avr. 2006, 09:43
par mario
ouvre le fichier de configuration apache (

/etc/local/apache2/conf/httpd.conf

)
jète un oeil sur le paragraphe
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
sur la ligne DirectoryIndex, vérifie que index.php3 y est

Posté : 04 avr. 2006, 09:49
par dtom
je vois pas le rapport
mon pb c'est pas sur les index, mais sur les fichiers comportant un underscore dans leur nom.
Posté : 04 avr. 2006, 09:56
par mario
sorry, je ne suis pas réveillé,
c'est cette partie
#AddType application/x-tar .tgz
#
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
est ce que tu as compilé apache avec le Module Rewrite ?
Posté : 04 avr. 2006, 10:08
par dtom
merci pour ta réponse,
non je n'ai pas compilé apache, j'ai tout par défaut
Posté : 04 avr. 2006, 10:12
par mario
en testant l'extension .php, as tu le même probleme ?
Posté : 04 avr. 2006, 10:17
par dtom
en remplaçant l'extension par *.php cela fonctionne correctement, mais n'y a t'il pas une méthode qui m'éviterais de renommer tous les fichiers?
Posté : 04 avr. 2006, 10:30
par dtom
c'est bon, j'ai du ajouter ca
AddType application/x-httpd-php .php3
mais dans php.conf
