The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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,052
    Likes Received:
    2
    Trophy Points:
    38
    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
     
  3. hubrik

    hubrik Registered

    Joined:
    Aug 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    0
    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:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    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.
     
  6. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,383
    Likes Received:
    23
    Trophy Points:
    38
    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