Index du forum »»  Le coin des codeurs »» Comment faire executer du php3 par apache?

Comment faire executer du php3 par apache?#7325

2Contributeur(s)
[-Jarod-]Tribal-Dolphin
3 Modérateur(s)
developpeurjpbJireck
[-Jarod-] [-Jarod-]icon_post
En local, sous linux redhat, mon apache execute sans problème tous les fichiers avec l'extension PHP, mais dès que je tente un fichier avec l'extension php3, il m'affiche le contenu du fichier comme un bete fichier texte sans l'executer !

Quelqu'un sait il quelle est la manip a effectuer pour pallier a ce problème? merci !
Tribal-Dolphin Tribal-Dolphinicon_post
Dans ton httpd.conf, trouve la ligne :
AddType application/x-httpd-php .phtml .pwml .php .php2 .inc

Modifie en rajoutant : .php3 .php4

Relaod Apache et C parti !!

Tu peut aussi mettre à jour la ligne DirectoryIndex comme ceci :
DirectoryIndex index.html index.shtml index.wml index.pwml index.php index.php3 index.php4
[-Jarod-] [-Jarod-]icon_post
Oki merci beaucoup Tribal !!!!!!!!! ça marche perfect, c top ! :=!