Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[php5] les sessions (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
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Wed Mar 09, 2005 3:08 pm    Post subject: [php5] les sessions (résolu) Reply with quote

Bonjour, j'ai installé php5. Ca marche très bien (objets, phpinfo etc...) mais les sessions ne marche pas.

J'ai vu ça :
Code:
ls -l /etc/apache2/conf/php.ini                                   
lrwxrwxrwx  1 root root 29 mar  9 16:06 /etc/apache2/conf/php.ini -> /etc/php/apache2-php4/php.ini

Alors j'ai supprimer le lien et refais un nouveau :
Code:
ls -l /etc/apache2/conf/php.ini                                   
lrwxrwxrwx  1 root root 29 mar  9 16:06 /etc/apache2/conf/php.ini -> /etc/php/apache2-php5/php.ini

Bon bah ça marche toujours pas (après restart du serveur...)
Sur un simple session_start(); il me sors cette erreur : Fatal error: Call to undefined function session_start() in /var/www/localhost/htdocs/index.php on line 3 alors que ça marchait avec php4.

merci de votre aide.
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm


Last edited by bosozoku on Wed Mar 09, 2005 4:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
CisD
n00b
n00b


Joined: 08 Oct 2004
Posts: 14

PostPosted: Wed Mar 09, 2005 3:37 pm    Post subject: Reply with quote

Salut,

Pour les sessions avec PHP5, il faut ajouter la dépendance "session" dans "/etc/portage/package.use" (je ne sais pas si j'utilise le bon vocabulaire), genre :

Code:
dev-php/php session


Si tu ne l'as déjà fait... Sinon, je ne sais pas :)
Back to top
View user's profile Send private message
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Wed Mar 09, 2005 3:46 pm    Post subject: Reply with quote

Nop je ne l'avais pas fait, je te remercie.
Je vais t'aider pour ton vocabulaire, il faut que je recompile php avec le USE flag session ;)
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm
Back to top
View user's profile Send private message
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Wed Mar 09, 2005 4:09 pm    Post subject: Reply with quote

Bon ça marche toujours pas :(
Peut etre qu'il faut que je fasse aussi ça pour mod_php... Je vais essayer.

edit : au fait j'ai recompiler php tout simplement (emerge php) peut être fallait il utiliser emerge --newuse php ?
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm
Back to top
View user's profile Send private message
CisD
n00b
n00b


Joined: 08 Oct 2004
Posts: 14

PostPosted: Wed Mar 09, 2005 4:13 pm    Post subject: Reply with quote

Oui, il faut aussi recompiler "mod_php" avec le USE flag "session" ;)

Quand je me suis fait avoir par le même problème que toi, j'ai simplement recompiler avec "emerge mod_php".

Perso, j'ai ajouter les paramètres suivants dans "package.use" pour PHP5
Code:
dev-php/php dba mysql sqlite session gd tidy inifile
dev-php/mod_php dba mysql sqlite session gd tidy inifile
Back to top
View user's profile Send private message
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Wed Mar 09, 2005 4:22 pm    Post subject: Reply with quote

Ah tu utilises sqlite :)

Bon voila ça marche parfaitement ! Merci beaucoup !
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm
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