Sunday 11 December 2016

The domain already exists in the apache config file

Unable to add addon domain in cPanel getting the error as “The domain already exists in the apache config file”

Solution: Please remove the domain entries from below files manually from server.

/scripts/killdns domain.com

grep domain.com /etc/localdomains

grep domain.com /etc/userdomains

grep domain.com /etc/trueuserdomains

vi /var/cpanel/userdata/cpanelusername/main

grep domain.com /var/cpanel/userdata/cpanelusername/main.cache

grep domain.com /var/cpanel/users/cpanelusername

vi /var/cpanel/userdata/cPanelusername/main.cache

grep domain.com /etc/named.conf

vi /etc/localdomains //remove the domain entry

vi /etc/userdomains

grep domain.com /etc/trueuserowners

grep domain.com /var/cpanel/userdata/cPanelusername/main


No comments:

Post a Comment

ERR_CONTENT_DECODING_FAILED

If you are getting the error as ERR_CONTENT_DECODING_FAILED while accessing the domain then add the below extension in php.ini  ++++++++...