I deleted a website long ago but a folder keeps being created for it at /home/website.com, no matter how many times I delete it. The only thing that the folder contains is an empty public_html folder.
I have deleted all unused databases from mariadb, and searched the remaining ones for the wesbite name and didn’t find anything. I have deleted any extra system users as well.
Latest version, but it has been happening for months. To clarify, it doesn’t show in Cyberpanel - it only creates the folder that I can see via the ssh cli. E.g cd /home ls. So there’s nothing to delete.
When you delete the website, how long does it take for the folder to re-appear?
Or the folder is recreated as soon as you delete it?
Or is a random time?
Or after a system restart?
Did you have ssl on the website?
Any automatic backup?
Are you running any Docker containers with a bound volume? Could be that the container is recreating the folder, otherwise maybe a forgotten cronjob setting?
Similar for me. Random time. Sometimes maybe minutes sometimes days. I don’t really monitor it.
I’m thinking perhaps it’s an ssl thing now that you mention it - there’s probably a cert still somewhere and it tries to recreate the folder when there’s some cron or other process to check/renew it.
Nice one. I just did that and removed the /home/persistent-domain-name folder again as well - will have to wait to see if it persists!
@usmannasir There’s also many other domains that I deleted a while ago in /etc/letsencrypt/live. Should these not be deleted when you delete a website?
This didn’t work - the phantom website came back today at 00:07. However the folder in /etc/letsencrypt/live did not come back. Running find / -iname domain.com shows that the only folder/file is /home/domain.com
They mostly seem tobe log files. This one seems most suspicious/promising /usr/local/lsws/conf/httpd_config.conf0,v
I see the domain many times there, but not sure what is really happening in it. There’s also plenty of other previously-used domains listed in that file that are not having this problem
About the conf,v file, i noticed i also got old domains but no folder creation at home about them.
I thought it could be something on the cyberpanel scripts, perhaps some paths/crons that changed from an older version that were still running, but that would had to show there.
Perhaps one of those mysql’s has any config that cyberpanel fetches and uses at any cronjob/function?
But on the other hand, if older domains also exist there but don’t create folders then wouldn’t make sense.
Yeah i already deleted it. I just restarted the server and it wasn’t recreated, which is typical. I’ll have to check tomorrow/in the future to see what happens
Wait, i just noticed all of these files by doing find / -iname "*domain.com*" - the wildcards returned more results that weren’t there with just find / -iname domain.com
I see no reason why those should still exist so will delete them and see what happens. Though, that folder contains lots of domains that aren’t currently in use…