Cannot change ownership of 'public_html'

JCalicod

Registered
Aug 28, 2020
1
0
1
France
cPanel Access Level
Website Owner
Hello,

In order to fix a 500 error on my website, I tried to change the owner of all folders and files in public_html.
I followed what the user asend said here : 500 Internal Server Error with PHP file and so I did this command :

Code:
chown -R my_user:my_user public_html
After doing this, I had to do the following command :

Code:
chown my_user:nobody public_html
But I had the following error :

Code:
chown: changing ownership of 'public_html': Operation not permitted
I do not understand because the previous chown command worked.

And now I have a 403 error instead of a 500 error..

Can someone help me please?

I'm french, sorry for my mistakes.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,262
313
Houston
Hello,


I'd assume this is because you've done this as your cPanel user and changing the permissions of the usergroup for the public_html folder is not something your user has the privileges to do. You'd need to contact your hosting provider to resolve this for you.