LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing php gentoo (https://www.linuxquestions.org/questions/linux-software-2/installing-php-gentoo-280701/)

jrtayloriv 01-21-2005 10:09 PM

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

dalek 01-22-2005 01:15 AM

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. :scratch:

Later

:D :D :D :D

jrtayloriv 01-22-2005 05:58 AM

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

jrtayloriv 01-22-2005 06:16 AM

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


All times are GMT -5. The time now is 01:26 AM.