Gentoo Forums
Gentoo Forums
Quick Search: in
teeny tiny howto manually install php5
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
beandog
Developer
Developer


Joined: 04 May 2003
Posts: 1608
Location: /usa/utah

PostPosted: Wed Jun 29, 2005 10:39 pm    Post subject: teeny tiny howto manually install php5 Reply with quote

If someone wants me to go into more detail, lemme know. :)

If youre like me and you want php5 installed NOW, and don't feel like waiting for it to be un-hard-masked from the portage tree, here's a really simple way to do it.

But first, a disclaimer: Thanks to all the Gentoo devs who work hard on the php packages. I need to use php5 at work for certain functionality, and thats why I install it, not cuz I think theyre lazy bums or anything like that. Keep up the good work.

anyway, here's a quick how to do:

download php5 from php.net, unpack it
get your *current* configuration directives from each php package installed.

for dev-php/php:
Code:
php -i | grep configure


for dev-php/mod_php, run this on a webpage:
Code:
<?phpinfo();?>


Unmerge php and mod_php.

Run those same configuration options in the directory you unpacked the php tarball. Then run make, make install. Repeat for the other configuration options from the other php package.

Inject php and mod_php into your portage tree (package.provided doesn't work for me, but emerge --inject still does even though its deprecated):

Code:
emerge -i dev-php/php-4.3.11
emerge -i dev-php/mod_php-4.3.11


and you're done! shiny, happy, sparkly new php5 is installed, with the exact same configuration you had before. Just restart apache and away it will go. And your new install will even use your old php.ini and pear config files too. rock. :)
_________________
If it ain't broke, tweak it. planet | packages | blog
Back to top
View user's profile Send private message
Vitaliy
Guru
Guru


Joined: 05 Apr 2004
Posts: 446
Location: Brooklyn, NY

PostPosted: Thu Jun 30, 2005 12:08 am    Post subject: Reply with quote

http://gentoo-wiki.com/HOWTO_Apache2_with_PHP_MySQL

:D
Back to top
View user's profile Send private message
beandog
Developer
Developer


Joined: 04 May 2003
Posts: 1608
Location: /usa/utah

PostPosted: Thu Jun 30, 2005 1:26 am    Post subject: Reply with quote

Well, yes, I already know there's other guides out there, but the problem I ran into is that a hard-masked apache is also a requirement of the latest php5 ebuilds. Which wouldnt be a problem, unless you are also running other stuff that depends on apache (like subversion), and you just don't want to risk unmasking three packages instead of just one.
_________________
If it ain't broke, tweak it. planet | packages | blog
Back to top
View user's profile Send private message
Earthwings
Administrator
Administrator


Joined: 14 Apr 2003
Posts: 7336
Location: Karlsruhe, Germany

PostPosted: Thu Nov 02, 2006 3:08 pm    Post subject: Reply with quote

Split of warez
_________________
KDE 4.0 - Get It While It's Hot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
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