Skip to main content

[SOLVED] Owner/group permission issues in public_html

Comments

10 comments

  • ffeingol
    It's going to be pretty hard to answer you within knowing what scripting language you are using. If it's PHP, we'd need to know what PHP handler you are using.
    0
  • msklut
    It's going to be pretty hard to answer you within knowing what scripting language you are using. If it's PHP, we'd need to know what PHP handler you are using.

    [~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php74 ea-php74 SAPI: dso
    0
  • cPRex Jurassic Moderator
    Using DSO could be the issue - there are some additional details here:
    0
  • msklut
    Using DSO could be the issue - there are some additional details here:
    0
  • cPRex Jurassic Moderator
    I use suPHP on my personal box with WordPress and PHP sites to avoid any permissions issues like this, so that's what I'd recommend.
    0
  • msklut
    I use suPHP on my personal box with WordPress and PHP sites to avoid any permissions issues like this, so that's what I'd recommend.

    Thank you for the suggestion! suPHP seemed to clear up a lot of the permission issues. Still seeing this one... Any ideas what would be causing it? PHP Warning: fwrite(): supplied resource is not a valid stream resource in /home/adminuser/storage/modification/system/library/log.php on line 31 PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /home/adminuser/storage/modification/system/library/log.php on line 31
    File/folder permissions: /storage/ drwxr-xr-x 5 adminuser adminuser 4096 Apr 23 08:15 modification /storage/modification/ drwxr-xr-x 5 adminuser adminuser 4096 Apr 23 08:15 system /storage/modification/system/ drwxr-xr-x 5 adminuser adminuser 4096 Apr 25 10:25 library /storage/modification/system/library -rw-r--r-- 1 adminuser adminuser 995 Apr 23 08:15 log.php
    Line 31 on log.php public function write($message) { fwrite($this->handle, date('Y-m-d G:i:s') . ' - ' . print_r($message, true) . "\n" . 'URL: ' . (isset($_SERVER['REQUEST_URI'>) ? $_SERVER['REQUEST_URI'> : '') . "\n" . ' REFFER: ' . (isset($_SERVER['HTTP_REFERER'>) ? $_SERVER['HTTP_REFERER'> : '') . "\n" . '------------------------------------------------------------------------------------------------' . "\n");
    0
  • cPRex Jurassic Moderator
    That seems more like a PHP error than a permissions error, so I don't have much to provide on my side of things for that.
    0
  • msklut
    That seems more like a PHP error than a permissions error, so I don't have much to provide on my side of things for that.

    OK. I edited the post to include the code from the log.php file in case there's anything relevant...
    0
  • msklut
    After several hours looking into this, the issue was
    0
  • cPRex Jurassic Moderator
    I'm glad our team was able to help with that!
    0

Please sign in to leave a comment.