Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache et php...
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
arlequin
l33t
l33t


Joined: 16 Nov 2002
Posts: 707
Location: grep $USER /etc/passwd | cut -d':' -f6

PostPosted: Mon Nov 18, 2002 11:46 pm    Post subject: Apache et php... Reply with quote

Question.

Sur une gentoo 1.4, quel est le moyen le plus simple (ou le plus court) pour rajouter le support du php à apache ? qu'est-ce que je dois installer (y a plein de truc php à emerger, mais bon...)

J'ai tenté de compiler php-2.4 et apache 1.3.27 à la mains (c'est honteux sur une gentoo, je sais), mais sans succés : plantage de la compilation d'apache au moment où il attrape le phpmod :(

Donc si qqun a une idée, une astuce, a déjà réussi à le faire...

Merci d'avance !! 8)
_________________
J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais.
Back to top
View user's profile Send private message
Mat_le_ouf
Apprentice
Apprentice


Joined: 13 Sep 2002
Posts: 257
Location: France

PostPosted: Tue Nov 19, 2002 12:11 am    Post subject: Reply with quote

je l'ai fait, il suffit de faire un emerge apache puis un emerge php.
Ensuite pour intégrer le support PHP tu modifie simplement le fichier /etc/conf.d/apache en lui ajoutant cette ligne :
Code:
APACHE_OPTS="-D PHP4"

Puis tu n'as plus qu'à lancer apache avec cette commande :
Code:
runscript /etc/init.d/apache start


Voila, en espérant avoir aidé :)
Back to top
View user's profile Send private message
b_Q
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 163

PostPosted: Tue Nov 19, 2002 2:46 am    Post subject: Reply with quote

Après emerge mod_php
Pas oublier l'étape 1. comme indiqué dans son ebuild
...
pkg_postinst() {
einfo
einfo "To have Apache run php programs, please do the following:"
einfo "1. Execute the command:"
einfo " \"ebuild /var/db/pkg/dev-php/${PF}/${PF}.ebuild config\""
einfo "2. Edit /etc/conf.d/apache and add \"-D PHP4\""
einfo
einfo "Please remeber:"
einfo "This install of PHP has set register_globals = On (lower security)"
einfo "Please read http://www.php.net/release_4_1_2.php"
einfo "(Section: External variables) for further information."
einfo
}
_________________
Preudhomme's Law of Window Cleaning:
It's on the other side.
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