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!

Permissions issue suPHP and SuExec

Discussion in 'General Discussion' started by sahostking, Nov 5, 2014.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    330
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,

    Please inform me if there is anyway to fix this:

    It looks like this initially when an account is created:

    drwxr-x--- 3 skylensc skylensc 4.0K Nov 4 06:03 public_html/

    But when I chmod 755 public_html/ then it looks like this and works:

    drwxr-xr-x 3 skylensc skylensc 4.0K Nov 4 06:03 public_html/

    I'm also under the impression that it should actually be:

    "skylensc nobody" and not as per above when using suPHP and suExec?

    How do I get it that every account or new account be with the correct permissions?

    Seems the same as below:
    http://forums.cpanel.net/f5/when-cpanel-creates-new-site-public_html-has-wrong-permissions-357851.html
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You should not change the permissions of the public_html directory to 0755. It should remain at 0750. Are you sure Mod_Ruid2 was not enabled at some point, and there are no custom applications installed (e.g. Nginx, LiteSpeed)?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    330
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Yes Mod Ruid2 was enabled months ago but for a few hours then taken off. We stuck to suPHP ever since and it hasn't given issues since.

    We installed Litespeed a few days ago hence that may be the cause. But they are pointing us to cPanel stating that if we switch back to apache which we have and still notice the issue then something in cPanel is the issue.
    As per: Permissions issues with new accounts | LiteSpeed Support Forums

    Currently switched back to apache but still having this issue when creating new accounts so very strange.

    I may run Easyapache later this evening and upcp just to be sure this evening.

    Any ideas though?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    What method did you use to uninstall LiteSpeed? It seems like there are probably some custom hooks enabled that are triggered when creating a new account. Let us know if the issue persists after uninstalling LiteSpeed completely and running EasyApache again.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    330
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    I used the WHM plugin. Clicked uninstall.

    Doesn't seem to work. Same problem exists when creating new accounts.


    I even ran /scripts/upcp --force and rebuilt easy apache.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    330
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Going to run easy apache one more time and test if still doesn't work I'll do so. 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