Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP et apache
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
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Tue Mar 25, 2003 10:38 pm    Post subject: PHP et apache Reply with quote

Ca fonctionne pas !!! :x La je suis à boute. J'ai beau lire les forums ya rien qui marche !! :x :x
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 :wink:
_________________
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
View user's profile Send private message
Tucs
n00b
n00b


Joined: 24 Sep 2002
Posts: 45

PostPosted: Wed Mar 26, 2003 2:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
broly
Guru
Guru


Joined: 21 Feb 2003
Posts: 345
Location: cachan 94

PostPosted: Wed Mar 26, 2003 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message
arlequin
l33t
l33t


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

PostPosted: Wed Mar 26, 2003 11:54 am    Post subject: Reply with quote

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
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Wed Mar 26, 2003 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Walmarde
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2003
Posts: 91
Location: Granby (Quebec)

PostPosted: Wed Mar 26, 2003 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Koon
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 518

PostPosted: Wed Mar 26, 2003 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Wed Mar 26, 2003 5:41 pm    Post subject: Reply with quote

;) 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
View user's profile Send private message
arlequin
l33t
l33t


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

PostPosted: Wed Mar 26, 2003 11:03 pm    Post subject: Reply with quote

Je crois que là, il t'est éternellement reconnaissant...
C'est le second effet Gentoo :wink:
_________________
J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais.
Back to top
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Thu Mar 27, 2003 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Thu Mar 27, 2003 5:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Thu Mar 27, 2003 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Thu Mar 27, 2003 6:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Thu Mar 27, 2003 6:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Thu Mar 27, 2003 7:23 pm    Post subject: Reply with quote

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 :D
_________________
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
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