Virtual Host Directory already exists. [404]

One of my domain reached its disk quota limit. And the site showing 505 error. I modified the package but it had no result. I tried to delete the website from cyberpanel and deleted the virtual host.

Now the directory of the domain remain in my server and can’t delete the folder, even I can’t change user:group.

I tried so many thing rm -rf and chown and lsof

nothing worked for me. Can anyone help me to sort this out, I want to add that domain again.

rm -rf code when executed what it shown? Any error message?

[root@root public_html]# rm -rf index.php
rm: cannot remove ‘index.php’: Operation not permitted

If possible, PM me temporary login for me to check the same and find the cause of this issue.

Please check your inbox. credentials sent.

Solved.

If you face this issue again,

Login to SSH as root and

Navigate to /home/ folder by

cd /home/

Then, execute this command to remove the domain directory (change example.com to your domain name including the tld)

rm -rf example.com

2 Likes

Thank you so much for your time.

1 Like