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.

File manager permission denied

Discussion in 'General Discussion' started by edenent, Sep 26, 2016.

Tags:
  1. edenent

    edenent Member

    Joined:
    Jul 2, 2009
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Moving off vps with cpanel to a larger better solution for better use with our sites.

    Used the built in transfer tool to transfer our old sites off to new server.

    The new machine having an issues with being able to modify/create/delete anything .php related.

    Can modify/create/delete .html files fine which is odd.

    Using suphp, cause of phpselector. Old vps was using suphp also.

    /usr/local/cpanel/logs/error_log of when it happens.

    Code:
    [2016-09-26 03:14:27 -0400] warn [Fileman::savefile] Encountered error in Fileman::savefile: Could not write “/home/myuser/public_html/mydomain/sites/default/settings.php”: Permission denied
    
    [2016-09-26 03:16:58 -0400] warn [Fileman::mkfile] Encountered error in Fileman::mkfile: Could not create file "test.php" in /home/myuser/public_html/mydomain/sites/default: Permission denied
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Have you checked your folder/file permission with ownership ? if you are using suphp on your server then folder should be 755 and files permission will be 644 with the user:user ownership for all files and folder which are present under the public_html directory of our cPanel user.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    File Manager doesn't rely on the PHP handler, so it's likely unrelated to that. Instead, it's likely the permission or ownership values on the directories are invalid. Could you let us know the values configured for the "/home/myuser/public_html/mydomain/sites/default" directory and each parent directory? Here's a command you can use for one directory:

    Code:
    stat /home/myuser/public_html/mydomain/sites/default
    Thank you.
     
Loading...

Share This Page