Cant Add add-on domain 'Domain already exists in Apache Configuration'
Moderator: Staff
Cant Add add-on domain 'Domain already exists in Apache Configuration'
I am getting the error 'Domain already exists in Apache Configuration' while trying to add the domain in cPanel.
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: Cant Add add-on domain 'Domain already exists in Apache Configuration'
1. Log into you server via SSH as root
2. Take a backup of the apache configuration file and remove the virtualhost entry of that domain (if it exists)
3. Remove the DNS zone file of the domain from /var/named/ directory or run the command /scripts/killdns domain.com to delete the DNS entry of the domain.
4. Remove the domain entry from /etc/userdomains
5. Remove all domain entries from /var/cpanel/users directory and from /var/cpanel/userdata
6. Rebuild the apache configuration file after doing the above steps. Command : /scripts/rebuildhttpdconf
7. Update userdomains using cPanel script /scripts/userdomains
8. Restart apache and named service
service httpd restart
service named restart
Martin
Support Staff
Nixtree Solutions
Managed Backups || Server Management
https://www.nixtree.com
2. Take a backup of the apache configuration file and remove the virtualhost entry of that domain (if it exists)
3. Remove the DNS zone file of the domain from /var/named/ directory or run the command /scripts/killdns domain.com to delete the DNS entry of the domain.
4. Remove the domain entry from /etc/userdomains
5. Remove all domain entries from /var/cpanel/users directory and from /var/cpanel/userdata
6. Rebuild the apache configuration file after doing the above steps. Command : /scripts/rebuildhttpdconf
7. Update userdomains using cPanel script /scripts/userdomains
8. Restart apache and named service
service httpd restart
service named restart
Martin
Support Staff
Nixtree Solutions
Managed Backups || Server Management
https://www.nixtree.com