Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Index.php not recognized as index file in addon domains

Discussion in 'General Discussion' started by hubrik, Aug 11, 2007.

  1. hubrik

    hubrik Registered

    Joined:
    Aug 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Index.html is recognized fine, but index.php is not - I get a forbidden access 500 server error.
     
    #1 hubrik, Aug 11, 2007
    Last edited: Aug 11, 2007
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hubrik

    hubrik Registered

    Joined:
    Aug 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Thanks

    Thanks Shekar,

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

    tangowebs Well-Known Member

    Joined:
    Oct 12, 2004
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    156
    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. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,170
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,659
    Likes Received:
    76
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Make sure you are using all lowercase in your filenames.

    Index.php is not the same as index.php
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice