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.

Subdomain can't find index.php

Discussion in 'General Discussion' started by capoinfra, Mar 29, 2012.

  1. capoinfra

    capoinfra Well-Known Member

    Joined:
    Oct 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Uruguay
    Hello,

    We created a new subdomain from cpanel subdomain section but does not show the index.php, correctly uploaded.
    The domain is registered with the correct dns
    I looked in the DNS from WHM and the subdomain is added right with and without www
    Subdomain folder is created inside the public_html with 755, correct owner, etc
    in http.conf is the section for the subdomain added correclty
    But when i try subdomain.domain.com...

    Forbidden

    You don't have permission to access / on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    But when i try sudbomain.domain.conf/index.php the index is showed correctly

    The DirectoryIndex is not working properly?

    Any ideas please?

    Anothers subdomain under same domain are working properly.

    Thank you.-
     
  2. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    I Pm'ed you
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please try clearing the browser cache on your machine to ensure you are not viewing an older page. Also, make sure you have no special mod_rewrite rules in the .htaccess files in this directory, or within the public_html directory that could be causing this issue. If you continue to receive this error, check the Apache error log (/usr/local/apache/logs/error_log) for the specific output.

    Thank you.
     
  4. capoinfra

    capoinfra Well-Known Member

    Joined:
    Oct 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Uruguay
    Thanks.

    The problem was caused for the rewrite rules in the .htaccess in the root domain.
     
Loading...

Share This Page