Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eselect doesnt work with php5 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SHY
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2005
Posts: 75
Location: Kosice, Slovakia

PostPosted: Sat Nov 19, 2005 1:58 pm    Post subject: eselect doesnt work with php5 [solved] Reply with quote

ive installed things in this way:

1. unmasked everything necessary to successfully install dev-lang/php4*
2. installed dev-lang/php4* (including eselect)
3. installed additional packages such as DBG or sqlite

everything worked as expected (im running my localhost development hideout on apache2) but then i realized that having php5 as well could bring in some more testing possibilities for my application, so i googled out some info about installing php5 and php4 on the same machine and swithing between each other using eselect and i found this link:

http://www-users.rwth-aachen.de/andreas.korthaus/gentoo/php-upgrading.html

so after reading it out, ive emerged dev-lang/php and php5 was installed without any problems. the thing is that after i "eselect php set php5", everytime i call for example phpinfo(), it shows im using php4 even tho the "eselect php show" displays php5 as the chosen version and "stat /usr/bin/php" links to the proper php5 executable.. do i have to reemerge something to make it work as expected or have i just missed some essential setting ? id appreciate any kind of help.

thanks in advance.

SHY


Last edited by SHY on Sun Nov 20, 2005 2:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Sat Nov 19, 2005 3:39 pm    Post subject: Reply with quote

phpinfo() in your Apache has nothing to do with /usr/bin/php. Apache uses mod_php normally, thus the Apache2 SAPI, /usr/bin/php is the commandline executable and uses the CLI SAPI, so if one is PHP5, the 2nd doesn't necessarily need to be. To also have PHP5 in your Apache, edit /etc/conf.d/apache2 and change -D PHP4 to -D PHP5 (you can't have both!) and restart your Apache, phpinfo() should now report PHP5.
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
SHY
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2005
Posts: 75
Location: Kosice, Slovakia

PostPosted: Sun Nov 20, 2005 2:24 pm    Post subject: Reply with quote

amazing, works great 8) thanks a lot.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Sun Nov 20, 2005 7:33 pm    Post subject: Reply with quote

Moved from Other Things Gentoo
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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