R
R
Roman2015-04-24 20:15:59
Apache HTTP Server
Roman, 2015-04-24 20:15:59

How to manually remove addon domain on CentOS?

Hi all. We've got some confusion. In the C panel, I want to delete a subdomain. It gives me this:
b21a3d057e6c4a568af5f8ae63703947.png
Well, then I go to additional domains, but I can’t delete the etozherebenok.ru domain.
8815520968a84396a490de0cacccfc44.png
httpd.conf does not contain the etozherebenok.ru domain either.
What is very strange is that the etozherebenok.ru domain does not exist in WHM either. And there is no way to remove it.
Advise how you can manually clear both the subdomain and the etozherebenok.ru domain on the CentOs server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
ShamblerR, 2015-05-14
@ShamblerR

for a valid deletion you will need.
1. delete the corresponding dns entry, and specifically the A entry of this subdomain, if it is not deleted from you either, then you should find it in /etc/named on the panel, look at the configs where it is.
2. you need to delete the entry in apache or rather httpd and look for it in the /etc/httpd folder, you can recursively in mc for simplicity or

find /etc/httpd -type f  | grep -l "ваш домен" {} \;

something like this.
3. After that, you need to go to the database of the panel itself and delete this entry already in sql, otherwise it can be re-generated.

A
Alexey, 2015-04-25
@gentee

Look in the /etc/httpd/conf.d/ directory. There, in the form of a separate file, the subdomain settings can be stored or in one of the existing ones. I store all domains and subdomains on CentOS 7 there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question