View previous topic :: View next topic |
Author |
Message |
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Tue Mar 25, 2003 10:38 pm Post subject: PHP et apache |
|
|
Ca fonctionne pas !!! La je suis à boute. J'ai beau lire les forums ya rien qui marche !!
Mon serveur apache fonctionne très bien mais lorsque je lis des fichier php et bien je vois toute le code safficher. J'aurais besoin de voir de facon précise les étapes d'installation pour que mon serveur apache puisse lire les fichier php.
Venez pas me dire qu'il y a deja des Post dans le forum qui parle de ca car je le sais !!! Si je vous le demande c'est parce que ca fait un méchant boute que je cherche le moyen de faire marcher ste marde là et la je suis vraiment écoeurer. Le plaisir que j'ai a utiliser Gentoo commence a diminuer surtout quand il y a des distro comme redhat où le serveur apache avec php fonctionne lors de la premiere installation.
Aidez-moi SVP ! Je veux pas retourner avec Redhat _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Tucs n00b
Joined: 24 Sep 2002 Posts: 45
|
Posted: Wed Mar 26, 2003 2:02 am Post subject: |
|
|
Tout d'abord, il faut emerge le mod_php et apache2.
Si mod_php ne compile pas, il faut modifier les flags :
Code: |
USE="apache2" emerge mod_php
|
Si ça ne compile toujours pas, il faut installer le sun-jdk, puis il faut utiliser la vms de sun avec l'outil java-config.
Code: |
java-config --set-system-vm=sun-jdk-1.4.1.02
env-update
source /etc/profile
USE="apache2" emerge mod_php
|
Ensuite dans /etc/apache2/conf/apache2.conf, il faut rajouter :
Code: |
<IfDefine PHP4>
LoadModule php4_module extramodules/libphp4.so
</IfDefine>
|
Ensuite dans /etc/conf.d/apache2, il faut rajouter ou décommenter :
Code: |
APACHE2_OPTS="-D SSL -D PHP4"
|
|
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:45 am Post subject: |
|
|
J'ai oublier de mentionner que j'utilise apache1 _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
broly Guru
Joined: 21 Feb 2003 Posts: 345 Location: cachan 94
|
Posted: Wed Mar 26, 2003 7:16 am Post subject: |
|
|
poste ton fichier de conf apache ainsi que celui de php ci ta fait un include !
Qu'est ce que te dis apache dans ses logs ?? |
|
Back to top |
|
|
arlequin l33t
Joined: 16 Nov 2002 Posts: 707 Location: grep $USER /etc/passwd | cut -d':' -f6
|
Posted: Wed Mar 26, 2003 11:54 am Post subject: |
|
|
Bon, ce genre de pbm je connais... enfin, pour les avoir rencontrés.
Lors de ma dernière install, j'ai simplement fait un 'emerge mod_php' (après une install fraîche, donc sans apache), et tout marche nickel.
Ceci dit, dans le fichier de config d'apache, j'i mit des # devant les '<IfDefine>':
Code: | #<IfDefine PHP4>
LoadModule php4_module extramodules/libphp4.so
#</IfDefine> |
Voilà. J'ai pas les paramètres de la variable USE sous la mains, désolé. _________________ J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais. |
|
Back to top |
|
|
px Guru
Joined: 26 Sep 2002 Posts: 497 Location: Metz, France
|
Posted: Wed Mar 26, 2003 1:05 pm Post subject: |
|
|
faut peut-etre mettre la ligne add application type httpd/php .php .php3 .php4 ou un truc du meme ordre _________________ Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry] |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:09 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:09 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:09 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:09 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:09 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:09 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:09 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:10 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:10 pm Post subject: |
|
|
Merci px ! Il fallait que j'ajoute le code suivant dans le fichier commonapache.conf
Code: |
AddType application/x-httpd .php .php3 .php4
|
Merci à vous tous aussi ! _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Walmarde Tux's lil' helper
Joined: 17 Mar 2003 Posts: 91 Location: Granby (Quebec)
|
Posted: Wed Mar 26, 2003 3:10 pm Post subject: |
|
|
Hey comment je fais pour effacer mes posts en passant ??? _________________ Naturally, the common people don't want war, it is always a simple matter to drag people. All you have to do is to tell them they are being attacked and denounce the pacifist for lack of patriotism and exposing the country to danger. -Hermann Goering- |
|
Back to top |
|
|
Koon Retired Dev
Joined: 10 Dec 2002 Posts: 518
|
Posted: Wed Mar 26, 2003 5:10 pm Post subject: |
|
|
Clique sur Edit puis Delete Post... ou bien sur la ptite croix à droite.
Sinon ptet qu'un gentil mod le fera pour toi
-K |
|
Back to top |
|
|
px Guru
Joined: 26 Sep 2002 Posts: 497 Location: Metz, France
|
Posted: Wed Mar 26, 2003 5:41 pm Post subject: |
|
|
c pas grave _________________ Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry] |
|
Back to top |
|
|
arlequin l33t
Joined: 16 Nov 2002 Posts: 707 Location: grep $USER /etc/passwd | cut -d':' -f6
|
Posted: Wed Mar 26, 2003 11:03 pm Post subject: |
|
|
Je crois que là, il t'est éternellement reconnaissant...
C'est le second effet Gentoo _________________ J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais. |
|
Back to top |
|
|
px Guru
Joined: 26 Sep 2002 Posts: 497 Location: Metz, France
|
Posted: Thu Mar 27, 2003 3:27 pm Post subject: |
|
|
ouep ou sinon c'est qu'il a mal configuré son XF86Config : )
Je me demande s'il n'y a pas de systeme de modification automatique du apache.conf avec un ebuild /var/db/pkg/dev-machin/mod_php.ebuild config ? _________________ Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry] |
|
Back to top |
|
|
vibidoo Guru
Joined: 27 Nov 2002 Posts: 409
|
Posted: Thu Mar 27, 2003 5:12 pm Post subject: |
|
|
oui dans la dernière version d'install de apache + mysql + php il faut juste faire
Code: |
emerge apache mod_php mysql
/usr/bin/mysql_install_db
ebuild /var/db/pkg/dev-php/mod_php-4.3.1/mod_php-4.3.1.ebuild config
nano /etc/conf.d/apache (uncomment the line with "PHP4")
APACHE_OPTS=’’ -PHP4’’
au lieux de
#APACHE_OPTS=
/etc/init.d/mysql start
/etc/init.d/apache start
rc-update add apache default
rc-update add mysql default
|
Et surtout il faut mettre
USE="–java –qt"
car sinon on a une erreur lors de la compilation de php-4.3.1 |
|
Back to top |
|
|
vibidoo Guru
Joined: 27 Nov 2002 Posts: 409
|
Posted: Thu Mar 27, 2003 5:28 pm Post subject: |
|
|
au fait
comment on fait pour faire que mysql arrête de mettre tout les query dans /var/log/mysql/mysql.log ?
le simple fait de consulter une page relier à une base mysql ,rempli le mysql.log de query |
|
Back to top |
|
|
px Guru
Joined: 26 Sep 2002 Posts: 497 Location: Metz, France
|
Posted: Thu Mar 27, 2003 6:24 pm Post subject: |
|
|
je pense que c'est ca que tu cherches:
http://www.mysql.com/doc/en/Log_Files.html _________________ Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry] |
|
Back to top |
|
|
vibidoo Guru
Joined: 27 Nov 2002 Posts: 409
|
Posted: Thu Mar 27, 2003 6:31 pm Post subject: |
|
|
j'avais déjà lu ce passage
et ce que je comprends pas c'est que pour démarrer mysql
c'est juste /etc/init.d/mysql start
et quand on regarde dans /etc/init.d/mysql et les fichier associé il n'y a pas de passage de --with-log=..
est que ça se passe lors de la compilation de mysql ? |
|
Back to top |
|
|
px Guru
Joined: 26 Sep 2002 Posts: 497 Location: Metz, France
|
Posted: Thu Mar 27, 2003 7:23 pm Post subject: |
|
|
a mon avis ca doit etre dans un des fichiers du /etc/mysql ou sinon c dans la config du syslog... Aucune idée en fait _________________ Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry] |
|
Back to top |
|
|
|