I've spent the past couple of nights trying to get mod_php running with
Apache 2 with no luck.  I'm using Apache 2.0.46 and mod_php 4.3.2r2 and it's
on a Gentoo system (though I'm not sure if that matters in this case).  When
I try to open a php file in a browser I get prompted to save it to disk.

I have found a number of references to this problem, and have tried out the
various fixes they suggest.  Specifically, I've added "-D PHP" to
/etc/conf.d/apache2 and added the LoadModule and AddType lines in the Apache
config files.  From what I've seen that should be enough.

For the Gentoo specific stuff, I have "apache2" in my USE variable, and
arch="~x86".  I have cleaned out the installation of Apache2 and mod_php
(and apache from an earlier attempt), removed the config files (after
backing them up), and reinstalled mod_php (which has Apache as a dependancy,
so Apache 2 was installed as well).  I left the config files in their
default state, except for adding the "-D PHP" bit again. Apache is working
(serving pages), but still prompting to save the php file.  

Any tips?  Thanks.


Shawn

Reply via email to