<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eITWebguru &#187; Connection to the database server</title>
	<atom:link href="http://eitwebguru.com/tag/connection-to-the-database-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://eitwebguru.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 05:48:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>HowTo: Remove domain Manually from Plesk</title>
		<link>http://eitwebguru.com/howto-remove-domain-manually-from-plesk/</link>
		<comments>http://eitwebguru.com/howto-remove-domain-manually-from-plesk/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 21:58:06 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk For Linux]]></category>
		<category><![CDATA[Plesk For Windows]]></category>
		<category><![CDATA[/tmp/.s.PGSQL.5432]]></category>
		<category><![CDATA[Connection to the database server]]></category>
		<category><![CDATA[delete domain manually]]></category>
		<category><![CDATA[Plesk domain removal]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=568</guid>
		<description><![CDATA[While deleting one domain from Plesk it was throwing following error Error: Connection to the database server has failed because of network problems: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket &#8220;/tmp/.s.PGSQL.5432&#8243;? When we checked the domain on server (from shell) [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><span style="font-family: Verdana; font-size: small;">While deleting one domain from Plesk it was throwing following error</span></p>
<p><span id="more-568"></span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 130px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;"><strong><span style="color: #ff0000;">Error: Connection to the database server has failed because of network problems:</span></strong>
<p><strong><span style="color: #ff0000;">could not connect to server: No such file or directory<br /> Is the server running locally and accepting<br /> connections on Unix domain socket &#8220;/tmp/.s.PGSQL.5432&#8243;?</span></strong></p>
</div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">When we checked the domain on server (from shell) we have found that all physical Address (<strong>/var/www/vhost/domain.com</strong>) of the domain has been deleted but still Plesk shows the domain.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Following are the steps to remove the domain from Plesk manually.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Connect the server using SSH</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2) </strong>Login into MySQL Prompt as Plesk admin</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server ~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa</div>
<p><span style="font-family: Verdana; font-size: small;"><br /><strong>3)</strong> Delete the DNS Zone of the domain</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 106px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; delete from dns_zone where name=&#8217;domain.com&#8217;;<br /> Query OK, 1 row affected (0.09 sec)<br /> 
<p>mysql&gt; delete from dns_recs where host=&#8217;domain.com.&#8217;;<br /> Query OK, 8 rows affected (0.03 sec)</p>
</div>
<p><span style="font-family: Verdana; font-size: small;"><br />You can verify if any records still persists using following commands</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 106px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; select * from dns_zone where name=&#8217;domain.com&#8217;;<br /> Empty set (0.00 sec)
<p>mysql&gt; select * from dns_recs where host=&#8217;domain.com.&#8217;;<br /> Empty set (0.00 sec)</p>
</div>
<p><span style="font-family: Verdana; font-size: small;"><strong><br />4)</strong> Now delete the Domain from Domains table which will remove it from Plesk Domains List</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; delete from domains where name=&#8217;domain.com&#8217;;<br /> Query OK, 1 row affected (0.06 sec)</div>
<p><span style="font-family: Verdana; font-size: small;"><br />Verify it using select Command.</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; select * from domains where name=&#8217;domain.com&#8217;;<br /> Empty set (0.00 sec)</div>
<p> </p>
<p style="text-align: justify;"><span style="color: #800000;"><strong><span style="font-family: Verdana; font-size: small;"><span style="text-decoration: underline;">NOTE:</span> <em>PLEASE Make Sure To Verify The DOMAIN NAME before you make any changes as it might delete some other domain. Also the changes made are irreversible.</em></span></strong></span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/howto-remove-domain-manually-from-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

