| View previous topic :: View next topic |
| Author |
Message |
beandog Developer


Joined: 04 May 2003 Posts: 1608 Location: /usa/utah
|
Posted: Wed Jun 29, 2005 10:39 pm Post subject: teeny tiny howto manually install php5 |
|
|
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:
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 |
|
 |
Vitaliy Guru


Joined: 05 Apr 2004 Posts: 446 Location: Brooklyn, NY
|
|
| Back to top |
|
 |
beandog Developer


Joined: 04 May 2003 Posts: 1608 Location: /usa/utah
|
Posted: Thu Jun 30, 2005 1:26 am Post subject: |
|
|
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 |
|
 |
Earthwings Administrator


Joined: 14 Apr 2003 Posts: 7336 Location: Karlsruhe, Germany
|
Posted: Thu Nov 02, 2006 3:08 pm Post subject: |
|
|
Split of warez _________________ KDE 4.0 - Get It While It's Hot! |
|
| Back to top |
|
 |
|
|
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
|
|