Click to See Complete Forum and Search --> : apache / php / mysql install


fatywombat
05-27-2005, 08:27 PM
Hello i am running gentoo and im looking of of this http://gentoo-wiki.com/HOWTO_Apache2_with_PHP_MySQL#Setting_up_Apache2_with_PHP_and_MySQL for help to instal. Everything was ok exept php woudlnt work so i re installed. Now its messed up big.

Basically Does any1 have an REALLY easy install guide or if anyone is willign to wright one up. Basically i emerge mysql apache php mod_php while adding the -D PHP4 to my config right?

lucasrd
06-15-2005, 11:34 AM
I successfully made it through that wikki for my gentoo box....

after you emerge everything, and add what you want to the default runlevel, you need to edit your httpd.conf file (or whatever it is in apache2)

Add the following lines if they don't exist:



LoadModule php5_module libexec/libphp5.so


AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


AddModule mod_php5.c


That should make PHP work with apache

you can always unmerge the php packages and then emerge them again if you think they're jacked up.