Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-04-2006, 01:39 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
index.php no being displayed


For some reason whenever I upload an 'index.php' in my htdocs folder for my homepage. This does not display as the default homepage instead I just see my index file directory.

There are no other files in the htdocs folder at this point.

However when i Delete or change the extention on the file




index.htm or .html this then displays the page as default homepage as it should.

Any Ideas whats up

Thanks in advance
Old 01-04-2006, 01:47 AM   #2
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
The problem is with your "DirectoryIndex" setting in your apache config file (httpd.conf).

Change from:
DirectoryIndex index.html
DirectoryIndex index.php index.html
For more details on this, look at:
Old 01-04-2006, 01:50 AM   #3
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Your webserver needs to be configured for support for PhP.
I know for certain that's true with Apache (there is a PhP module that needs to be included
and I know you can specify "index.php" as default page).
Look for instance to httpd.conf, .htaccess and alike.


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.php lord-fu Linux - Newbie 2 10-17-2005 01:52 PM
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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration