View previous topic :: View next topic |
Author |
Message |
l.slysz Apprentice

Joined: 03 Jun 2005 Posts: 256
|
Posted: Sat Oct 22, 2005 12:52 pm Post subject: [Apache/PHP].php proposés en telechargement (auto-résolu) |
|
|
Apres avoir bataillé avec la mises à jour de apache qui changeait tout le fonctionnement des fichiers de conf, j'ai de nouveau apache qui fonctionne ...
mais visiblement php ne veut rien savoir .... au lieu d'etre interpretés, les .php sont proposé en telechargement ....
/etc/apache2/httpd.conf
Code: | Include /etc/apache2/modules.d/*.conf |
/etc/apache2/modules.d/70_mod_php.conf
Code: | <IfDefine PHP4>
# Load the module first
<IfModule !sapi_apache2.c>
LoadModule php4_module modules/libphp4.so
</IfModule>
# Set it to handle the files
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
AddDirectoryIndex index.php index.phtml
</IfDefine>
|
/etc/conf.d/apache2
Code: | APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4 -D USERDIR" |
je ne sais pas si ça peut aider :
Code: |
ls -l /etc/apache2/*
-rw-r--r-- 1 root root 2081 oct 22 12:29 /etc/apache2/apache2-builtin-mods
-rw-r--r-- 1 root root 37594 oct 22 12:40 /etc/apache2/httpd.conf
-rw-r--r-- 1 root root 12958 oct 22 12:29 /etc/apache2/magic
-rw-r--r-- 1 root root 15020 oct 22 12:29 /etc/apache2/mime.types
lrwxrwxrwx 1 root root 29 oct 22 15:07 /etc/apache2/php.ini -> /etc/php/apache2-php4/php.ini
/etc/apache2/modules.d:
total 20
-rw-r--r-- 1 root root 2980 oct 22 12:29 40_mod_ssl.conf
-rw-r--r-- 1 root root 8151 oct 22 12:29 41_mod_ssl.default-vhost.conf
-rw-r--r-- 1 root root 583 oct 22 12:29 45_mod_dav.conf
-rw-r--r-- 1 root root 485 oct 22 14:40 70_mod_php.conf
/etc/apache2/ssl:
total 8
-r-------- 1 root root 794 oct 22 12:29 server.crt
-r-------- 1 root root 887 oct 22 12:29 server.key
/etc/apache2/vhosts.d:
total 4
-rw-r--r-- 1 root root 2927 oct 22 12:38 00_default_vhost.conf
|
etrange ce lien vers php.ini, c'est normal ? ou c'est moi l'ai fait pour me simplifier la vie ?
edit:
bon, je viens de m'apercevoir que les userdir ne fonctionnent plus non plus
voila, toute idée est la bienvenue 
Last edited by l.slysz on Sat Oct 22, 2005 2:34 pm; edited 1 time in total |
|
Back to top |
|
 |
l.slysz Apprentice

Joined: 03 Jun 2005 Posts: 256
|
Posted: Sat Oct 22, 2005 2:33 pm Post subject: Re: [Apache/PHP] fichiers .php proposés en telechargement |
|
|
Apres une bonne galere, j'ai enfin trouvé l'erreur
Code: | APACHE2_OPTS="-DDEFAULT_VHOST -DPHP4 -DUSERDIR" |
et non
Code: | APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4 -D USERDIR" |
|
|
Back to top |
|
 |
bosozoku Advocate


Joined: 11 Jan 2004 Posts: 2431 Location: Roazhon
|
Posted: Sat Oct 22, 2005 3:20 pm Post subject: |
|
|
Ah bon ?! Chez moi -D PHP5 ou -D USERDIR marche très bien (avec l'espace). Vraiment bizarre  _________________ Stationlinux.org - Wiki Fvwm FR - Config Fvwm |
|
Back to top |
|
 |
l.slysz Apprentice

Joined: 03 Jun 2005 Posts: 256
|
Posted: Sat Oct 22, 2005 3:30 pm Post subject: |
|
|
affirmatif
je me suis rendu compte que les define ne fonctionnaient pas en zappant le test de define des userdir qui soudainement s'est mis à fonctionner
donc j'ai regardé sur cette ligne et maintenant ça marche (tm)
 |
|
Back to top |
|
 |
|