Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Apache/PHP].php proposés en telechargement (auto-résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
l.slysz
Apprentice
Apprentice


Joined: 03 Jun 2005
Posts: 256

PostPosted: Sat Oct 22, 2005 12:52 pm    Post subject: [Apache/PHP].php proposés en telechargement (auto-résolu) Reply with quote

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 :roll:

voila, toute idée est la bienvenue :wink:


Last edited by l.slysz on Sat Oct 22, 2005 2:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
l.slysz
Apprentice
Apprentice


Joined: 03 Jun 2005
Posts: 256

PostPosted: Sat Oct 22, 2005 2:33 pm    Post subject: Re: [Apache/PHP] fichiers .php proposés en telechargement Reply with quote

Apres une bonne galere, j'ai enfin trouvé l'erreur :twisted:

Code:
APACHE2_OPTS="-DDEFAULT_VHOST -DPHP4 -DUSERDIR"


et non

Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4 -D USERDIR"
Back to top
View user's profile Send private message
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Sat Oct 22, 2005 3:20 pm    Post subject: Reply with quote

Ah bon ?! Chez moi -D PHP5 ou -D USERDIR marche très bien (avec l'espace). Vraiment bizarre 8O
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm
Back to top
View user's profile Send private message
l.slysz
Apprentice
Apprentice


Joined: 03 Jun 2005
Posts: 256

PostPosted: Sat Oct 22, 2005 3:30 pm    Post subject: Reply with quote

affirmatif :twisted:

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 8O

donc j'ai regardé sur cette ligne et maintenant ça marche (tm)

:lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum