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.

All subdomains on the server displaying 403

Discussion in 'General Discussion' started by Nishant80, Aug 3, 2012.

  1. Nishant80

    Nishant80 Well-Known Member

    Joined:
    May 7, 2012
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,
    We have been facing this issue since a few hours now. Everything was working fine, all of a sudden a lot of domains and almost every subdomain is displaying 403 forbidden while the clients try to open them. What should I be checking here?
     
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    The first thing would be the error_log for apache. I would

    your apache log and wait for the issue to occur. Or grab on to the file when problems happen.

    Thanks!
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Upon seeing the error, it's probably going to be ownership or permissions. If a bunch of domains are suddenly showing permissions errors either a) the PHP handler was changed to something not compatible with your setup, b) someone changed ownership or file permissions on a slew of directories within /home

    The first is easy to check in WHM > Apache Configuration > PHP and SuExec Configuration area.

    The second would need to be checked in root SSH. Select one specific account to check and check the folders at each level:

    Code:
    ls -ld /home && ls -ld /home/user && ls -ld /home/user/public_html
    Above please replace user with the cPanel username.

    The /home partition should be owned by root:root, while /home/user should be owned by user:user and /home/user/public_html should be owned by user:nobody. The contents of public_html should be owned by user:user.
     
Loading...

Share This Page