Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-25-2004, 07:12 PM   #1
Registered: Jul 2004
Location: Canada
Distribution: suse 9.1/knoppix/slackware
Posts: 60

Rep: Reputation: 15
Question changeing default document from index.html in apache

Does anyone know how to change the default document from index.html to index.php?

i did use to know but its been forever since i set up apache, thanks for your help
Old 08-25-2004, 07:27 PM   #2
Registered: Jul 2004
Location: Canada
Distribution: suse 9.1/knoppix/slackware
Posts: 60

Original Poster
Rep: Reputation: 15
if i had only looked closer.

Old 08-25-2004, 08:16 PM   #3
Senior Member
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
IIRC its in the httpd.conf that alows you to set what can and can not be the homepage. you can IIRC also set multiple extentions as the home/starting point for your web page.
Old 03-30-2005, 09:26 PM   #4
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
the setting is found /etc/httpd.conf
or /etc/apache/httpd.conf

anyhow you can grep for it
grep -n "index.html" /path/to/your/httpd.conf
and it will tell you exactly where the entry is

sorry I don't have anymore details, I'm in transistion to my new system and do not have an example
httpd.conf on hand

when you do find it to change it (It will be pretty obvious)
the first entry get's highest priority

index.php index.phtml index.html

the server will look first for index.php then index.phtml, and so on.


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
[apache 2.0] can't get index.html to load fraggie Linux - Software 5 04-09-2005 05:55 AM
How to change the default index.html in Apache bngrhl Linux - Newbie 2 06-08-2004 01:47 PM
Apache won't default to index.html TexasDex Linux - Software 5 04-05-2004 08:33 AM
index.html renaming in Apache SSBN Linux - Networking 2 05-09-2003 07:57 PM
In apache, i want to set my default page to be index.html, or something thep Linux - Newbie 3 04-17-2001 02:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 PM.

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