It sounds like Apache doesn't know how to handle PHP files -- as in hand them off to mod_php.
For Apache 1.3, make sure there are the AddType lines for php: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps in your httpd.conf file. If you do a search for those lines you may see them commented out in the <IfModule mod_mime.c> section. I'm not sure if these will work with Apache2 or not, but it should be something similar. Jamie -----Original Message----- From: Shawn Grover [mailto:[EMAIL PROTECTED] Sent: June 19, 2003 11:48 AM To: CLUG (E-mail) Subject: (clug-talk) Apache 2 and PHP 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
