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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel account user can't write

Discussion in 'EasyApache' started by lcdservices, Feb 17, 2017.

  1. lcdservices

    lcdservices Member

    Joined:
    Aug 7, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I just ran EasyApache to update Apache and PHP on our server. After doing so, cPanel account sites are not able to write to the site folders. For example, if I have a cPanel account with the username "xyz" the website should be able to write to that home directory public_html folder with files chowned to xyz -- but are not able to. If I set a folder to chmod 777, new files written by the site are chowned to nobody:nobody.

    So somehow the EasyApache updates affected account owner defaults. How can I fix this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you know which PHP handler (e.g. suPHP) you were using before, and if it has changed? Are you using EasyApache 3, or EasyApache 4?

    Thank you.
     
  3. lcdservices

    lcdservices Member

    Joined:
    Aug 7, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    EasyApache 3
    suPHP -- didn't change it
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the specific error message you notice in /usr/local/apache/logs/error_log when encountering this issue?

    Thank you.
     
  5. lcdservices

    lcdservices Member

    Joined:
    Aug 7, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    If I try to do something that would write to the site directory (create cache files, upload a file, etc.) from within the site (running WordPress), I get Permission denied messages in the error log.

    Basically the web user (account user name) can't write to the site folder. the web user is now "nobody"
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the exact error message that appears in /usr/local/apache/logs/error_log when this happens?

    Thank you.
     
  7. lcdservices

    lcdservices Member

    Joined:
    Aug 7, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    failed to open stream: Permission denied in... (folder path)
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Feel free to 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.
     
  9. lcdservices

    lcdservices Member

    Joined:
    Aug 7, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    ticket #8243271
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, it looks like suPHP was disabled. Switching back to suPHP corrected the issue.

    Thank you.
     
Loading...

Share This Page