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!

Could not create file in cPanel permission denied

Discussion in 'General Discussion' started by chris0147, Jan 25, 2018.

  1. chris0147

    chris0147 Well-Known Member

    Joined:
    Aug 28, 2015
    Messages:
    82
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hello!

    I really need your urgency help. I am in a big trouble, I can't be able to write the files in public_html folder. When I try it, it say: ERROR: Could not create file "test.php" in /home/myusername1/public_html: Permission denied.

    I don't know what is going on, so I have tried this on putty:

    chmod 755 /home/myusername1/public_html


    I still get the same error. I have tried to restart the cpanel but still get nothing. It still wont let me to write the files in public_html folder, but I can still write in /home/myusername1/ folder. I dont know what to do, so can you please help me with how i can enable the permission to allow me to write the files in public_html folder??

    Thanks in advance!
     
    #1 chris0147, Jan 25, 2018
    Last edited: Jan 25, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,443
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You may want to check the ownership values configured for the public_html directory. EX:

    Code:
    stat /home/$username/public_html
    There's a thread here you may find helpful:

    SOLVED - PHP public_html permissons

    Thank you.
     
    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