[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache/php...feeling like an idiot



Quoting Matthew Daubenspeck <matt@oddprocess.org>:

> On Sun, Apr 07, 2002 at 10:36:06PM -0400, Jeff Maxson wrote:
> > 
> > so, in attempts to learn some things, I want to get the seemingly
> standard
> > apache/php/mysql trio on my box all playing nicely.  I now have mysql
> on
> > pretty peachy, and apache seems to spew out the html documents I want.
>  I
> > have apt-got php4 and php4-mysql and a couple other things as well.
> > However, if I try to get my apache server to serve up a php file, all
> the
> > browsers I've tried pop-up a "file save as" screen wanting me to
> download
> > this file.  I believe there is something goofy in my
> > /etc/apache/httpd.conf file in that I am not loading some modules
> the
> > right way.
> > 
> > To get this working,
> > 1) which modules need to be loaded for apache to work like it should
> with
> > php?
> > 2) once the proper changes are made to the httpd.conf file, how do I
> > "activate" my changes?
> 
> apachectl restart
> 
> > 3) is the problem not in the httpd.conf file?
> > 4) is there something I need to apt-get that would have configured
> this
> > correctly "out-of-the-box" (during the apt-getting installation?)
> 
> Shouldn't. Both the potato and woody versions I have used worked
> directly out of the box after I restarted apache.
> 
> 

I have had this after a manual edit on my httpd.conf file.  Make sure that the 
DirectoryIndex line includes index.php3 and index.php entries.

example:

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm manual.html index.shtml index.cgi 
index.php3 index.php
</IfModule>


--
Bill
C.R.E.A.M.  Dark Angel


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: