Community

Closed I got 1 error like this. can't access website + delete files : permission error

jo
josephgodwinke #2

Happy New Year @chupy1991

Try the following in ssh terminal

$ ls -l /home/mycoolwebsite/public_html

Post screenshot here

ch
chupy1991 #3

this is what i see

jo
josephgodwinke #4

Run

$ chmod -R 777 /home/mycoolwebsite/public_html
ch
chupy1991 #5

it runs a series like this
Website still can’t access

jo
josephgodwinke #6

Run

## change the user ownership of all files within the WWW folder
$ chown -R aloba1691:aloba1691 /home/mycoolwebsite/public_html
$ chmod -R 777 /home/mycoolwebsite/public_html

assumption is you are a sudo user or root

jo
josephgodwinke #8

Let’s clear/unset immutability attribute

# a flag lists all contents, i flag for files which cannot be modified (immutable)
$ chattr -R -ia /home/mycoolwebsite/public_html
ch
chupy1991 #9

I was able to delete the files using the above command
But I don’t understand why my website is still not accessible

jo
josephgodwinke #11

Can you click Fix Permissions and see if it works.

Which version of cyberpanel are you using ?

jo
josephgodwinke #13

Check if immutable directory

$ lsattr /home/mycoolwebsite/public_html

immutable files will look like this

----i--------e-- /home/mycoolwebsite/public_html/wp-config.php
ch
chupy1991 #14

And this is the result

ch
chupy1991 #15

help help :smiling_face_with_tear:

jo
josephgodwinke #16

Seems no files are immutable but just to be sure

To remove the immutable flag, we can only use chattr with the - operator:

sudo chattr -R -i  /home/mycoolwebsite/public_html
jo
josephgodwinke #20

Deactivate your CDN, or use VPN instead

This topic is closed to new replies.