Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

purduematt

macrumors newbie
Original poster
Jul 17, 2002
29
0
is there a way to get apache to recognize index.php so that it displays index.php instead of displaying a list of files for a given directory?

Thanks,

Matt
 
i entered those commands in when i installed php, and then entered them again just to be sure...still not working though

thanks, matt
 
thanks to everybody for trying to help me get this solved. i think that i am almost there.

I added index.php to the DirectoryIndex line in my httpd.conf file, now it opens index.php, but doesn't go through the php processing engine, it shows all my php code when you go to view source in the browser. any suggestions to fix this?

Thanks again,

matt
 
i did not personally uncomment the lines, but i think that one of the commands i entered when i installed php did this.


interestingly enough, when i type in index.php it shows the page how it should be.

all this has made me realize how much i do now know about this. is there a good book on apache administration that you might suggest.

thanks, matt
 
Rower_cpu:

thanks again for all your help... i went back and edited the httpd.conf again after reading both of the articles, and i finally got it to work. i really do appreciate the help.

i deffinately feel like i have muddled through this one too

Matt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.