LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

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


hi

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
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

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

Rep: Reputation: 0
Hi

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
meema
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
nighttraindb
LQ Newbie
 
Registered: Aug 2008
Posts: 18

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

Ok, I managed to now ftp

srv/httpd/htdocs

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
 
  


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
index.htm on apache redice Linux - Software 2 04-30-2006 03:09 PM
index.htm doesn't open instead it show up merlin740 LinuxQuestions.org 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


All times are GMT -5. The time now is 06:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration