Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    2

    Default Index.php not recognized as index file in addon domains

    Index.html is recognized fine, but index.php is not - I get a forbidden access 500 server error.
    Last edited by hubrik; 08-11-2007 at 03:39 PM. Reason: grammar

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Forbidden error is mainly due to ownership/permission problem. Check if they are correct for index.php file.

    Also place the below line in .htaccess file for the addon domain:

    DirectoryIndex index.php index.html

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    2

    Default Thanks

    Thanks Shekar,

    Permissions were fine, so I'll update the .htaccess file for now.

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    93

    Default

    I have same problem, but with any php page into an addon domain... any idea why can this be happening?
    Thanks for ur information.

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Rename your htaccess for a moment and try the page. If it works then, you've got an idea whats breaking things to work with.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  6. #6
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    Make sure you are using all lowercase in your filenames.

    Index.php is not the same as index.php

Similar Threads & Tags
Similar threads

  1. Addon domains not going to index.htm or .html
    By tangozero in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-17-2011, 09:18 AM
  2. want to switch hom page from index.html to index.php
    By websoftbiz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-12-2008, 07:14 PM
  3. Addon domains not reading index.htm or .html or any index files
    By Chew in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-17-2008, 09:32 AM
  4. Add index.php or index.htm in new domain
    By hostyasui in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-12-2007, 06:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube