<?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>The Tech Tutorial &#187; Main</title>
	<atom:link href="http://www.the-tech-tutorial.com/?feed=rss2&#038;cat=1" rel="self" type="application/rss+xml" />
	<link>http://www.the-tech-tutorial.com</link>
	<description>Just a blog of free technology tutorials</description>
	<lastBuildDate>Tue, 04 Dec 2012 15:43:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to safely kill rails WEBrick server running in daemon mode</title>
		<link>http://www.the-tech-tutorial.com/?p=1964</link>
		<comments>http://www.the-tech-tutorial.com/?p=1964#comments</comments>
		<pubDate>Tue, 04 Dec 2012 15:43:13 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[dont shutdown]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[no shutdown]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[Simple]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[Stop WEBrick]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WEBrick]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1964</guid>
		<description><![CDATA[Ruby on rails and the WEBrick Daemon are great for testing however there are times when you start a WEBrick server in daemon mode and later find you need to stop this without restarting the box. This can sometimes be troublesome, especially if you accidently kill a live server. In this tutorial I’ll go through [...]]]></description>
				<content:encoded><![CDATA[<p><span><span><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png"><img class="alignleft size-full wp-image-1851" title="rails" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png" alt="" width="87" height="111" /></a>Ruby</span> on <span>rails</span></span> and the <span><span>WEBrick</span> <span>Daemon</span><span> are great for testing however there are times when you start a <span><span>WEBrick</span> <span>server</span></span> in <span><span>daemon</span> mode</span> and later find you need to <span>stop</span> this <span>without <span>restarting</span></span> the box. This can sometimes be troublesome, especially if you accidently kill a live server. In this tutorial I’ll go through ensuring you <span>kill</span> the correct process.<span id="more-1964"></span></span></span><br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><br />
First we need to find the <a href="http://en.wikipedia.org/wiki/Process_identifier"><span>PID</span></a> of the <span><span>WEBrick</span> <span>Daemon</span></span> in order to <span>stop</span> it, to do this we&#8217;ll <span><span>find the PID</span> that has port <span>3000</span></span> bound to it:</p>
<pre>sudo netstat -lp | grep 3000</pre>
<p>This should give an output like this: <em>Note: if you started your <span><span>WEBrick</span> server</span> under a different port just change the <span>3000</span> in this command to the <span>port</span> you used.</em></p>
<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2012/12/tech1.jpg"><img class="aligncenter size-full wp-image-1965" title="tech1" src="http://www.the-tech-tutorial.com/wp-content/uploads/2012/12/tech1.jpg" alt="" width="644" height="31" /></a></p>
<p>This output tell you that <span>PID</span> (in my instance) that&#8217;s running the <span>WEBrick</span> server is 22673, this will be different for you server so please note down the PID <em>(its the number before /ruby)</em>. Now we just need to kill this process to do this we use the following command <em>(substitute [PID] for the PID you noted in the previous step)</em>:<br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<pre>sudo kill -9 [PID]</pre>
<p>Now the <span><span><span>WEBrick</span> <span>server</span><span> will <span>stop</span></span> and you didn’t have to <span>restart</span> the machine.</span></span></p>
<p>&nbsp;</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1964"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1964</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adprep &amp; Adprep32 Download</title>
		<link>http://www.the-tech-tutorial.com/?p=1922</link>
		<comments>http://www.the-tech-tutorial.com/?p=1922#comments</comments>
		<pubDate>Mon, 03 Sep 2012 08:54:58 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1922</guid>
		<description><![CDATA[Adprep.exe and Adprep32.exe is a tool found on the Windows Server 2008 installation disc, it is a tool that performs operations that must be completed in an existing Active Directory environment before you can add a new domain controller. You must run this tool if you are: Adding a new domain controller that runs a version [...]]]></description>
				<content:encoded><![CDATA[<p><span><span>Adprep</span>.exe</span> and <span><span>Adprep32</span>.exe</span> is a tool found on the <span><span>Windows</span> <span>Server</span></span> <span>2008</span> installation disc, it is a tool that performs operations that must be completed in an existing Active Directory environment before you can add a new domain controller. You must run this tool if you are:<span id="more-1922"></span></p>
<ul>
<li>Adding a new domain controller that runs a version of Windows Server that is later then the current domain controller</li>
<li>Before you upgrade your existing domain controller to a later version of Windows Server</li>
</ul>
<p>What does <span>adprep</span> do:</p>
<ul>
<li>Updates the Active Directory schema</li>
<li>Updates security descriptors</li>
<li>Modifies the  access control lists (ACLs) on Active Directory objects and on files in the SYSVOL shared folder</li>
<li>Creates new objects, as needed</li>
<li>Creates new containers, as needed</li>
</ul>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>You can find Adprep on your <span>Windows Server</span> 2008 <span>CD</span> in the \support\adprep\ or \sources\adprep, however if your like and you ordered you server with <span>no CD</span>&#8216;s or if you have <span>lost</span> your <span>CD</span>&#8216;s you made find it hard to get this tool, as far as I can tell there are no direct <span>download</span> links for the files (other then this page) and the alternative is to <span>download</span> the trail <span>CD</span>&#8216;s and copy the file from there. This is exactly what I had to do however I would of much preferred to simply <span>download</span> the files so I&#8217;m adding a link to them on this page, both these files were extracted from the trial <span>CD</span> on the 3rd September 2012 so they should be up to date.</p>
<h2><span>Download</span>s:</h2>
<p><a title="https://s3-eu-west-1.amazonaws.com/tyleruk2000-prog/adprep.exe" href="https://s3-eu-west-1.amazonaws.com/tyleruk2000-prog/adprep.exe">adprep.exe</a></p>
<p><a title="https://s3-eu-west-1.amazonaws.com/tyleruk2000-prog/adprep32.exe" href="https://s3-eu-west-1.amazonaws.com/tyleruk2000-prog/adprep32.exe">adprep32.exe</a></p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1922"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Adprep+%26+Adprep32+Download&amp;link=http://www.the-tech-tutorial.com/?p=1922&amp;notes=Adprep.exe%20and%20Adprep32.exe%20is%20a%20tool%20found%20on%20the%20Windows%20Server%C2%A02008%20installation%20disc%2C%20it%20is%20a%20tool%20that%20performs%20operations%20that%20must%20be%20completed%20in%20an%20existing%20Active%20Directory%20environment%20before%20you%20can%20add%20a%20new%20domain%20controller.%20You%20must%20run%20this%20tool%20if%20you%20are%3A%0D%0A%0D%0A%09Adding%20a%20new%20domain%20c&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Adprep+%26+Adprep32+Download&amp;link=http://www.the-tech-tutorial.com/?p=1922&amp;notes=Adprep.exe%20and%20Adprep32.exe%20is%20a%20tool%20found%20on%20the%20Windows%20Server%C2%A02008%20installation%20disc%2C%20it%20is%20a%20tool%20that%20performs%20operations%20that%20must%20be%20completed%20in%20an%20existing%20Active%20Directory%20environment%20before%20you%20can%20add%20a%20new%20domain%20controller.%20You%20must%20run%20this%20tool%20if%20you%20are%3A%0D%0A%0D%0A%09Adding%20a%20new%20domain%20c&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Adprep+%26+Adprep32+Download&amp;link=http://www.the-tech-tutorial.com/?p=1922&amp;notes=Adprep.exe%20and%20Adprep32.exe%20is%20a%20tool%20found%20on%20the%20Windows%20Server%C2%A02008%20installation%20disc%2C%20it%20is%20a%20tool%20that%20performs%20operations%20that%20must%20be%20completed%20in%20an%20existing%20Active%20Directory%20environment%20before%20you%20can%20add%20a%20new%20domain%20controller.%20You%20must%20run%20this%20tool%20if%20you%20are%3A%0D%0A%0D%0A%09Adding%20a%20new%20domain%20c&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Adprep+%26+Adprep32+Download&amp;link=http://www.the-tech-tutorial.com/?p=1922&amp;notes=Adprep.exe%20and%20Adprep32.exe%20is%20a%20tool%20found%20on%20the%20Windows%20Server%C2%A02008%20installation%20disc%2C%20it%20is%20a%20tool%20that%20performs%20operations%20that%20must%20be%20completed%20in%20an%20existing%20Active%20Directory%20environment%20before%20you%20can%20add%20a%20new%20domain%20controller.%20You%20must%20run%20this%20tool%20if%20you%20are%3A%0D%0A%0D%0A%09Adding%20a%20new%20domain%20c&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Adprep+%26+Adprep32+Download&amp;link=http://www.the-tech-tutorial.com/?p=1922&amp;notes=Adprep.exe%20and%20Adprep32.exe%20is%20a%20tool%20found%20on%20the%20Windows%20Server%C2%A02008%20installation%20disc%2C%20it%20is%20a%20tool%20that%20performs%20operations%20that%20must%20be%20completed%20in%20an%20existing%20Active%20Directory%20environment%20before%20you%20can%20add%20a%20new%20domain%20controller.%20You%20must%20run%20this%20tool%20if%20you%20are%3A%0D%0A%0D%0A%09Adding%20a%20new%20domain%20c&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Adprep+%26+Adprep32+Download&amp;link=http://www.the-tech-tutorial.com/?p=1922&amp;notes=Adprep.exe%20and%20Adprep32.exe%20is%20a%20tool%20found%20on%20the%20Windows%20Server%C2%A02008%20installation%20disc%2C%20it%20is%20a%20tool%20that%20performs%20operations%20that%20must%20be%20completed%20in%20an%20existing%20Active%20Directory%20environment%20before%20you%20can%20add%20a%20new%20domain%20controller.%20You%20must%20run%20this%20tool%20if%20you%20are%3A%0D%0A%0D%0A%09Adding%20a%20new%20domain%20c&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Adprep+%26+Adprep32+Download&amp;link=http://www.the-tech-tutorial.com/?p=1922&amp;notes=Adprep.exe%20and%20Adprep32.exe%20is%20a%20tool%20found%20on%20the%20Windows%20Server%C2%A02008%20installation%20disc%2C%20it%20is%20a%20tool%20that%20performs%20operations%20that%20must%20be%20completed%20in%20an%20existing%20Active%20Directory%20environment%20before%20you%20can%20add%20a%20new%20domain%20controller.%20You%20must%20run%20this%20tool%20if%20you%20are%3A%0D%0A%0D%0A%09Adding%20a%20new%20domain%20c&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1922</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mass/bulk delete all unapproved comments from wordpress</title>
		<link>http://www.the-tech-tutorial.com/?p=1761</link>
		<comments>http://www.the-tech-tutorial.com/?p=1761#comments</comments>
		<pubDate>Thu, 03 Nov 2011 11:18:21 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[Short]]></category>
		<category><![CDATA[bulk delete]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[delete all]]></category>
		<category><![CDATA[delete all comments]]></category>
		<category><![CDATA[mass delete]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[unaproved]]></category>
		<category><![CDATA[unaproved comments]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1761</guid>
		<description><![CDATA[Do you have the problem of hundreds of comments building up on your WordPress site, we&#8217;ll the best solution is to check it regularly and delete the unwanted comments, just leaving the appropriate ones. However what happens if you go on holiday for a week and don’t check your blog, or if your forget to [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/slef_destruct.jpg"><img src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/slef_destruct.jpg" alt="" title="slef_destruct" width="186" height="122" class="alignleft size-full wp-image-1791" /></a>Do you have the problem of <span>hundreds</span> of <span>comments building up</span> on your <span><span>WordPress</span> site</span>, we&#8217;ll the best solution is to check it regularly and <span>delete</span> the unwanted comments, just leaving the appropriate ones. However what happens if you go on holiday for a week and don’t check your blog, or if your forget to look at your comments for a few day (i.e. lost weekend down the pub) well you&#8217;ll probably find <span>several <span>hundred <span>comments</span></span></span> have built up in this time. Now you can <span>delete</span> these <span>comments manually</span> but this is time consuming. To make your life easier I’m going to go through some simple ways of <span><span><span>deleting</span> <span>all</span></span> <span>unapproved <span><span>comments</span></span></span></span> while <strong><span>not</strong> using phpMyAdmin</span> (as every other tutorial I’ve seen does use phpMyAdmin).<span id="more-1761"></span></p>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>Just a quick warning before we start this method is pretty brutal, <strong>it is not a spam filter</strong> and these methods will <span><span>delete <strong>all</span></strong> your comments</span> weaver they are spam or not, so I only recommend using it when you have let your comments get out of hand and really don’t have time to go through manually, otherwise you might as well just disable <span>comments</span> in your <span>WordPress</span> settings.</p>
<p>I said at the beginning this tutorial is for those who <span>don’t have phpMyAdmin</span>, well as I’m nice I’ve included a quick video for the phpMyAdmin method at the bottom of the page. However <span>if you don’t have phpMyAdmin</span> installed there are a few other way you can <span><span>delete all</span> your <span>unapproved comments</span></span>. The easiest way is to have shell access to your box, if you don’t know just skip to the next step. All you need to do is access the box and run one <span>MySQL statement</span>, this can be done as follows:</p>
<pre>mysql -u [USERNAME] -p -e "DELETE FROM wordpress.wp_comments WHERE comment_approved=0;" wordpress</pre>
<p>And thats it <span><span>all your unappoved comments</span> will be <span>delted</span></span> saving your many hours of manualy <span>deleting comments</span>.</p>
<p><strong>NEXT STEP</strong>: If you don’t have access to your shell and you <span>don’t have phpMyAdmin</span> installed there is another way to do this, you create a simple PHP page that <span><span>delete</span>s all comments</span> and access it form your <span>web browser</span>. This should only really be used as a last resort as it will create a page <strong>that anyone can access</strong> that once opened will <span>delete all your unread comments</span>. This is fine to-do so long as your delete/restrict the page after you&#8217;ve finished. So let’s get started first open Notepad or some other html editor and create a page with the following code while adding your own username, password, and database name:<br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<pre class="brush:php">&lt;?php

//Warning this page will delete all your WordPress comments once opened and can accessed by anyone so you should delete or restrict once used!

//Please replace the following with your details

$usrName="[REPLACE WITH YOUR USERNAME]";
$usrPass="[REPLACE WITH YOUR PASSWORD]";
$usrDB="[REPLACE WITH YOUR DATABASE NAME]";

$con = mysql_connect("localhost",$usrName,$usrPass);
if (!$con)
{
	die('Could not connect: Please check your usrName &amp; usrPass settings');
}

mysql_select_db($usrDB, $con);

$result = mysql_query("DELETE FROM wp_comments WHERE comment_approved=0;");
if (!$result)
{
	die('Could not delete: Please check your usrDB setting');
}
else
{
	echo 'All unapproved comments now deleted';
}

?&gt;</pre>
<p>Now you&#8217;ll need to save this page to something like wp-coment-remove.php then upload it to your site via your normal file transfer method (either ftp or via a http file uploader) once you have done this all you&#8217;ll need to do is access the page, so for this site I would go to the page http://www.the-tech-tutorial.com/wp-coment-remove.php , just substitute the-tech-tutorial for your sites address. Now that you have run this page, <span>all your unapproved comments will be gone</span>, hooray. Just remember that this page is a security risk because anyone can access it so either restrict is access once you’re done or delete the page.</p>
<p>As I promised here is the YouTube video showing <span>how to</span> do this <span>with phpMyAdmin</span>:<br />
<center><iframe width="420" height="315" src="http://www.youtube.com/embed/QCA4loQi7yM" frameborder="0" allowfullscreen></iframe></center></p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1761"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1761</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
