LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-21-2005, 10:09 PM   #1
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 365
Blog Entries: 1

Rep: Reputation: 44
installing php gentoo


Trying to install PHP w/ Apache 2 for Gentoo. Apache is installed correctly, but when I emerged PHP it did not create libphp4.so which, according to the PHP installation guide, is required for Apache to run PHP scripts. Is there some type of option that I need to pass to portage to get it to create the necessary modules or is there something that I can do to build this module?

Much Thanks,
jrtayloriv
 
Old 01-22-2005, 01:15 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Do you have support for php in your use line in make.conf? Look at /usr/portage/profiles/use.desc and see what applies to you. I did find this little tidbit:

Code:
php - Include support for php
There is a newuse option. You may want to try emerge -p --newuse php after you add that to your USE line in make.conf. I think that works. It should recompile the packages that needs to enable php support. If it looks OK, remove the -p option, pretend ya know.

Never used php but it may help.

Later

 
Old 01-22-2005, 05:58 AM   #3
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 365
Blog Entries: 1

Original Poster
Rep: Reputation: 44
Yes I had php use flag in make.conf already, so that is not the problem. By the way for your reference, the USE flags only remove/add support where it is optional, so in the case of installing PHP, the USE flag would have no effect either way, because PHP will definitely have PHP support built in!

thanks anyway,
jrtayloriv
 
Old 01-22-2005, 06:16 AM   #4
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 365
Blog Entries: 1

Original Poster
Rep: Reputation: 44
fixed

I found the solution to my problem. Emerging PHP only emerges the interpreter itself, to build the Apache modules you have to emerge "mod_php" as well. Be sure to add APACHE2_OPTS="-D PHP4" to your /etc/conf.d/apache2 file as well.

later,
jrtayloriv
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I start installing stage 3 of gentoo from universal gentoo 2005-1? kazuya1977 Linux - General 1 11-11-2005 10:30 AM
installing Gentoo Kyl3 Linux - Distributions 5 02-15-2005 05:57 AM
PHP not producing output - Apache2 on Gentoo cadsterza Linux - Software 2 09-06-2004 06:18 AM
Installing Gentoo 8nasmith Linux - Distributions 4 12-03-2003 09:42 PM
Installing Gentoo marekreid Linux - Newbie 6 11-07-2003 06:05 PM


All times are GMT -5. The time now is 11:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration