-   Linux - General (
-   -   Apache Not Loading Modules (

Hit3k 04-16-2006 09:04 PM

Apache Not Loading Modules
Sorry I dont know if this is the right area to do this.
I have emerged PHP and mod_php for apache but when I got to a php file it displays the source of the file any ideas?

Harry Seldon 04-17-2006 03:50 PM

Do you have a php config file under /etc/apache2/conf.d?

# ls
. .. apache2-manual.conf mod_perl.conf php4.conf susehelp.conf you_server.conf

apache won't include any modules if it doesn't have the config file to pull from.

bulliver 04-17-2006 04:06 PM

Gentoo uses /etc/apache2/httpd.conf now, but you don't need to edit it to get php to work.

What you need to do is edit /etc/conf.d/apache2 and add "-D PHPN" where 'N' is either 4 or 5 depending on your php version like so:

Now restart apache.

All times are GMT -5. The time now is 09:46 AM.