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.

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:
    299
    Likes Received:
    1
    Trophy Points:
    18
    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-cp...public_html-has-wrong-permissions-357851.html
     
  2. 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 :)

    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.
     
  3. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    299
    Likes Received:
    1
    Trophy Points:
    18
    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?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    299
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  7. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    299
    Likes Received:
    1
    Trophy Points:
    18
    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
     
Loading...

Share This Page