You need to tell apache that index.php is a page to load as a 'DirectoryIndex'. In your httpd.conf file (mine is in /etc/httpd/conf on RHL 7.1) append index.php to the line that loooks like this: DirectoryIndex index.html index.htm index.shtml {.... maybe more things} so it should now read: DirectoryIndex index.html index.htm index.shtml index.php (BTW, you can define other filenames to be handled in this way.) On Monday, January 28, 2002 5:15 AM, David Lee Ludwig <davidl@WPI.EDU> wrote:
I'm currently trying to set up Apache and PHP4 under Debian woody. So far, I have Apache and php4 up and running (using apt-get retrieved binaries.) I can load php pages w/o problems, provided I specify the file directly. That is, the following URL will work:
http://my.domain/some_dir/index.php
but loading the following:
will result in Mozilla (0.9.5) giving me a download dialog box telling me: "You have chosen to download a file of type: application/x-httpd-php", which is followed by a choice to either pick a helper app or to save to disk.
Any thoughts on how I would go about fixing this?
-- David Ludwig | "The Linux philosophy is laugh in the face of davidl<at>wpi.edu | danger. Oops. Wrong One. 'Do it yourself.' http://www.wpi.edu/~davidl | That's it." - Linus Torvalds
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
-- Peter Gutowski <peter@linuxchamps.com> // tel.: (413) 531-0123 "When in company, put not your hands to any part of the body not usually discovered." --George Washington, _Rules for Civility and Decent Behavior_
participants (1)
-
Peter Gutowski