LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2005, 01:43 PM   #1
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
index.php


Hello, could someone give me some help on what I need to put in httpd.conf for Apache 1.3 to serve index.php as the default index? Or even a link to documentation would be awesome.
Thanks in advance.
 
Old 10-17-2005, 01:45 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
There should be a DirectoryIndex directive in httpd.conf. You can add as many filenames to that as you want and the first one that it found will be served.
 
Old 10-17-2005, 01:52 PM   #3
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Original Poster
Rep: Reputation: 30
Thanks anyways.....here is the answer.
Within httpd.conf locate the section:

<IfModule mod_dir.c>

<IfModule mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.php3 index.html
</IfModule>
</IfModule>
<IfModule !mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.php index.html
</IfModule>
</IfModule>
</IfModule>
I had to add index.php as options there.

Just wanted to post the answer.
Didn't see the post above mine...thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redirecting to index.php question jacksmash Programming 18 05-23-2005 05:41 PM
index.php help greenmeanie Debian 5 03-09-2005 02:31 AM
PHP Undefined index Error Gerardoj Programming 1 05-30-2004 03:30 AM
rm #index.php# mikeshn Linux - General 3 02-16-2004 12:38 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM


All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration