View previous topic :: View next topic |
Author |
Message |
C4N4rD n00b
Joined: 13 Dec 2006 Posts: 35 Location: Bientôt dans la Jungle Parisienne
|
Posted: Mon Jun 18, 2007 3:17 pm Post subject: [apache]Page PHP non interprétées(résolu) |
|
|
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 _________________ *C4N4rD*
Last edited by C4N4rD on Thu Jun 21, 2007 6:28 am; edited 1 time in total |
|
Back to top |
|
|
Desintegr l33t
Joined: 25 Mar 2004 Posts: 863 Location: France - Orléans
|
Posted: Mon Jun 18, 2007 3:48 pm Post subject: |
|
|
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 |
|
|
C4N4rD n00b
Joined: 13 Dec 2006 Posts: 35 Location: Bientôt dans la Jungle Parisienne
|
Posted: Wed Jun 20, 2007 11:44 pm Post subject: |
|
|
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 |
|
|
|