View previous topic :: View next topic |
Author |
Message |
SHY Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Oct 2005 Posts: 75 Location: Kosice, Slovakia
|
Posted: Sat Nov 19, 2005 1:58 pm Post subject: eselect doesnt work with php5 [solved] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
llongi Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/184080807144bbbda6eff29.gif)
Joined: 15 Apr 2004 Posts: 459 Location: Switzerland
|
Posted: Sat Nov 19, 2005 3:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SHY Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Oct 2005 Posts: 75 Location: Kosice, Slovakia
|
Posted: Sun Nov 20, 2005 2:24 pm Post subject: |
|
|
amazing, works great thanks a lot. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pjp Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1154772887439692d88303b.jpg)
Joined: 16 Apr 2002 Posts: 20589
|
Posted: Sun Nov 20, 2005 7:33 pm Post subject: |
|
|
Moved from Other Things Gentoo _________________ Quis separabit? Quo animo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|