CyberPanel Community

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

21 replies
jo
josephgodwinke #2

Happy New Year @chupy1991

Try the following in ssh terminal

$ ls -l /home/mycoolwebsite/public_html

Post screenshot here

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 #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

ch
chupy1991 #21

I checked . And the domain name is Dns to the correct server with my IP

ch
chupy1991 #22

I have successfully fixed it.
Thank you for your support
1 wish you good day

Sign in to reply