Cannot create website. Error message: 0,Virtual Host Directory already exists!

I tried to do the following:

rm -rf /usr/local/lsws/conf/vhosts/domain.com

it worked

rm -rf /home/domain.com

Its showing permission error.

I tried CLI and its didt work:

cyberpanel deleteWebsite --domainName cyberpanel.net

The files and folders are not gone even after doing any of the above commands

@seokochin are you logged in as root?

Try to clean up using command line, you can reffer to docs.. .

I solved the problem with this.

sudo chattr -i -R foldername

Secure File from Removal in Linux and Unix | Unixmen

At some point, you locked the folder from deletion.
It did not unlock automatically and needs to be unlocked manually.

2 Likes