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!

SOLVED Forbidden error for all subdomains after transfer

Discussion in 'General Discussion' started by Skin, Jun 9, 2018.

Tags:
  1. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    158
    Location:
    Italy
    Hello,

    I've just moved some sites from one VPS to another ( WHM transfer tool ), all subdomains are not accessible now, I have an error like this on my browser:

    The subdomains are in these directories:
    /home/USER/subdomains/subdomain1
    /home/USER/subdomains/subdomain2
    ecc

    P.S.

    I`ve just tried to make a new subdomain and I have the same problem , in the error log I can see:
    I looked in /home/xxx/subdomains/ and I can`t see the .htaccess file ( it is not present olso in the old VPS and all subdomains were working)
     
    #1 Skin, Jun 9, 2018
    Last edited: Jun 9, 2018
  2. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    158
    Location:
    Italy
    Ok I probably fuond the solution:
    /home/xxx/subdomains was 750, I changed the permission of this directory to 755 and now everything works, but is it safe?

    On the old VPS the directory have 750 permission end everything was fine.
     
  3. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    125
    Likes Received:
    17
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    If you want to set 750 then ownership of that dir should be user:nobody then it will work for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Jcats and Skin like this.
  4. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    158
    Location:
    Italy
    Done, thanks.
     
  5. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,169
    Likes Received:
    155
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Skin

    Glad to see that @HostingH was able to help you and you were able to get your issue resolved! Please let us know if you have any other issues or concerns!

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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