The proplem is consistent with .php files, no matter where they are. I have a /learning/php/php1.php file, and an /index.php - both exhibit the same behavior.
When mod_php and Apache2 got compiled, it would have been with the default options specified in the ebuild script. I didn't have to change any of the options. If it helps, I can post the various config files tonight. Thanks for all the responses. -----Original Message----- From: Trevor Lauder [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:54 PM To: [EMAIL PROTECTED] Subject: Re: (clug-talk) Apache 2 and PHP Is this just a problem with index.php/index.php3/index.php4 files or all files? Can you try to load a <something>.php file (Not index.php) and see what it does? Also, are these files in the DirectoryRoot or are they in a subdirectory under it? Cheers, -- Trevor Lauder Web: http://www.thelauders.net E-Mail: [EMAIL PROTECTED] Resume: http://www.thelauders.net/resume/ Gentoo Linux Powered "Any intelligent fool can make things bigger and more complex... It takes a touch of genius -- and a lot of courage to move in the opposite direction." -- Albert Einstein Shawn Grover said: > 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 > >
