Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[apache]Page PHP non interprétées(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
C4N4rD
n00b
n00b


Joined: 13 Dec 2006
Posts: 35
Location: Bientôt dans la Jungle Parisienne

PostPosted: Mon Jun 18, 2007 3:17 pm    Post subject: [apache]Page PHP non interprétées(résolu) Reply with quote

Bonjour, je post car je ne parviens pas à faire interpréter les pages PHP situées dans /var/www/localhost/htdocs/ par apache.

J'ai bien pris le soin de modifier le fichier de conf d'initialisation d'apache

/etc/conf.d/apache2:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D SSL_DEFAULT -D PHP5 -D SSL"
CONFIGFILE=/etc/apache2/httpd.conf



ainsi que le fichier de conf d'apache:
/etc/apache2/http.conf:
Code:
AddType application/x-httpd-php .php



j'ai bien entendus vérifié le status d'apache
Code:
 /etc/init.d/apache2 status
 * Caching service dependencies ...                                 [ ok ]
 * status:  started



Concernant l'emerge j'ai bien updaté:
Code:
emerge --sync
emerge -Dav world


Et là je ne sais plus quoi faire :?
merci :D
_________________
*C4N4rD*


Last edited by C4N4rD on Thu Jun 21, 2007 6:28 am; edited 1 time in total
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Mon Jun 18, 2007 3:48 pm    Post subject: Reply with quote

Tu as bien émergé php avec le USE apache2 ?
Tu as bien un fichier /etc/apache2/modules.d/70_mod_php5.conf ?

Modifier le fichier /etc/apache2/http.conf en rajoutant le AddType, ça ne sert à rien.
Le -D PHP5 dans le fichier /etc/conf.d/apache2 est là pour ça.
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
C4N4rD
n00b
n00b


Joined: 13 Dec 2006
Posts: 35
Location: Bientôt dans la Jungle Parisienne

PostPosted: Wed Jun 20, 2007 11:44 pm    Post subject: Reply with quote

Oui j'ai bien mis apache2 dans les flahs de php:

/etc/portage/package.use
Quote:

dev-lang/php xml cli mysql sockets apache2


et par contre non je n'ai pas le module php(70_mod_php5.conf) dans apache... :?
Je retente un emerge dev-lang/php


UP: en fesant un emerge -av dev-lang/php j'ai pu emerger php en vérifiant qu'il prenait bien le flag "apache2" j'ai maintenent le fichier 70_mod_php5.conf

J'ai ensuite fait un redémarrage de apache
Code:
# /etc/init.d/apache2 restart
 * Caching service dependencies ...                                       [ ok ]
 * Stopping apache2 ...                                                   [ ok ]
 * Starting apache2 ...


Et voila ça fonctionne ;)[/topic]
_________________
*C4N4rD*
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