Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-01-2007, 03:18 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
How to change the default webpage configuration from index.php to index.htm, etc


I want my web site's default page to be index.htm instead of index.php or index.html which is the default configuration of the linux web server. Can any one suggest some possible solutions.

thanx a lot
Old 02-01-2007, 03:37 AM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I assume you are using Apache?
Old 02-01-2007, 05:02 AM   #3
LQ Newbie
Registered: Dec 2006
Posts: 5

Rep: Reputation: 0

Please Check The DirectoryIndex Directive in apache conf file

# httpd -V i.e /etc/httpd/conf/httpd.conf

Search DirectoryIndex and place Index.html Index.htm before index.php

Refresh Apache after changingthe conf file : killall -HUP httpd

I think it should work if its apache.
Old 02-01-2007, 07:29 AM   #4
LQ Newbie
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
many thanx MS3FGX and menonsudhir for your help
i'll try the steps you suggested
Old 08-22-2008, 09:06 PM   #5
LQ Newbie
Registered: Aug 2008
Posts: 18

Rep: Reputation: 0
Ok, last question :) found the htdocs...

Ok, I managed to now ftp


And just figured I would drag the index file I made overtop of the current one.

However when I try I get the following response.
Unable to transfer
This is most likely due to insufficient permissions. Verify both the destination and permissions, then try again...

I suppose I will need the exact code that would grant permissions. Unless for some reason replacing that file is a big no no.

Thanks Again


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
index.htm on apache redice Linux - Software 2 04-30-2006 03:09 PM
index.htm doesn't open instead it show up merlin740 Member Success Stories 2 10-04-2004 12:08 PM
Apache issue (Won't recognise index.htm) R4z0r Linux - Networking 1 09-21-2003 08:43 AM
Help with Apache & index.htm idev Linux - Networking 3 09-18-2003 09:58 AM
Help with Apache & index.htm joe_dejesus Linux - Networking 9 08-29-2001 01:20 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:02 AM.

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