terminated cpanel still working and using another site files and database

Operating System & Version
centos 7

ksvrach

Member
Dec 22, 2021
9
1
3
Canada
cPanel Access Level
Root Administrator
Hi,
I deleted/terminated a cpanel account for example test.com

now if i go to test.com it shows the exact website as another site example.com on the server and also uses the other sites database after getting deleted

why is this happening?

is this a secutity issue?
 
  • Like
Reactions: ejsolutions

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,158
2,407
363
cPanel Access Level
Root Administrator
That's exactly how the internet works. What you'll want to do to workaround that is to setup a default vhost that gets displayed when there is an unroutable request. We have two articles that will help you do that work:

 
  • Like
Reactions: ejsolutions

ejsolutions

Well-Known Member
Jan 6, 2013
86
36
68
cPanel Access Level
Root Administrator
This is interesting. Would it not make sense to tie the default vhost to the hostname, by default, thus preventing this from happening in the first place?