{"id":1974,"date":"2021-09-17T07:34:32","date_gmt":"2021-09-17T07:34:32","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1974"},"modified":"2021-09-17T07:34:32","modified_gmt":"2021-09-17T07:34:32","slug":"how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/","title":{"rendered":"How to Fix cPanel Error: Sorry, that domain is already setup (remove it from httpd.conf?)"},"content":{"rendered":"<p>It might be possible that you simply may come upon with a difficulty of adding a domain via WHM create account function and get the error as follow:<\/p>\n<p><span style=\"color: #ff0000;\"><em>Sorry, that domain is already setup (remove it from httpd.conf)<\/em><\/span><\/p>\n<p>Getting the error as shown above can simply means that the domain still exists within the virtual host in apache configuration file called httpd.conf . There are 2 main reasons why it&#8217;s shown you this error.<\/p>\n<p><strong>Reason One:<\/strong><\/p>\n<p>It might be possible that the domain you&#8217;re trying to create is being used as a primary domain for one amongst the accounts or could also be it&#8217;s been used as an addon domain or parked for other domains and accounts.<\/p>\n<p><strong>Reason Two:<\/strong><\/p>\n<p>Or it should be possible that you simply face some technical problems like the addon, parked or the primary domain isn&#8217;t removed fully from the system after using the removing function.<\/p>\n<p>If the error is due to the first reason, you&#8217;ll be able to simply remove the domain name from the cPanel account and although it&#8217;s not removed and come up with the error as follow:<\/p>\n<p><span style=\"color: #ff0000;\"><em>Error from park wrapper: Sorry, you do not control the domain<\/em><\/span><\/p>\n<p><strong>Follow the steps given below:<\/strong><\/p>\n<p>First you have to verify who owns the domain, then enter the command as given below:<\/p>\n<blockquote><p>\/scripts\/whoowns example.com<\/p><\/blockquote>\n<p>Though if it didn\u2019t show any results, enter the command string as follow:<\/p>\n<blockquote><p><em>grep example.com \/var\/cpanel\/users\/*<\/em><\/p><\/blockquote>\n<p>You will get the result some what as shown below:<\/p>\n<blockquote><p><em>root@server\u00a0[~]# grep example.com \/var\/cpanel\/users\/*<br \/>\n\/var\/cpanel\/users\/exam:XDNS1=example.com<\/em><\/p><\/blockquote>\n<p>As you&#8217;ll be able to see, we could simply notice the owner of the domain (example.com), the next step is to edit the files with the corresponding user and remove the lines related to the domain (example.com) you have problem with.<\/p>\n<blockquote><p><em>\/var\/named\/example.com.db<\/em><br \/>\nRemove the\u00a0<em>virtualhost<\/em>\u00a0for example.com from\u00a0<em>\/etc\/httpd\/conf\/httpd.conf<\/em><br \/>\n<em>\/var\/cpanel\/users\/username<\/em>\u00a0[remove entries related to domain]<br \/>\n<em>\/etc\/userdomains<\/em><br \/>\n<em>\/etc\/localdomains<\/em><br \/>\n<em>vim \/etc\/named.conf\u00a0<\/em>[remove entries related to domain]<br \/>\nRemove\u00a0<em>DNS entry in WHM<\/em><br \/>\nRun\u00a0<em>\/scripts\/updateuserdomains<\/em>\u00a0as root on the server<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>It might be possible that you simply may come upon with a difficulty of adding a domain via WHM create account function and get the error as follow: Sorry, that domain is already setup (remove it from httpd.conf) Getting the error as shown above can simply means that the domain still exists within the virtual [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1974","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Fix cPanel Error: Sorry, that domain is already setup (remove it from httpd.conf?) - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix cPanel Error: Sorry, that domain is already setup (remove it from httpd.conf?) - OWS KB\" \/>\n<meta property=\"og:description\" content=\"It might be possible that you simply may come upon with a difficulty of adding a domain via WHM create account function and get the error as follow: Sorry, that domain is already setup (remove it from httpd.conf) Getting the error as shown above can simply means that the domain still exists within the virtual [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-17T07:34:32+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/\",\"name\":\"How to Fix cPanel Error: Sorry, that domain is already setup (remove it from httpd.conf?) - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-09-17T07:34:32+00:00\",\"dateModified\":\"2021-09-17T07:34:32+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-fix-cpanel-error-sorry-that-domain-is-already-setup-remove-it-from-httpd-conf\/\",\"name\":\"How to Fix cPanel Error: Sorry, that domain is already setup (remove it from httpd.conf?)\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1974"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1974\/revisions"}],"predecessor-version":[{"id":1975,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1974\/revisions\/1975"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}