LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache Not Loading Modules (http://www.linuxquestions.org/questions/linux-general-1/apache-not-loading-modules-435791/)

Hit3k 04-16-2006 08: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 02:50 PM

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

# ls
. .. apache2-manual.conf inst_server.conf.in 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 03: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:
Code:

APACHE2_OPTS="-D PHP4"
Now restart apache.


All times are GMT -5. The time now is 07:22 PM.