<?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>Netphase &#187; linux</title>
	<atom:link href="http://blog.netphase.com/category/blog/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netphase.com</link>
	<description>for a connected world</description>
	<lastBuildDate>Mon, 14 Dec 2009 21:40:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Uninstall Apache</title>
		<link>http://blog.netphase.com/2008/01/30/uninstall-apache/</link>
		<comments>http://blog.netphase.com/2008/01/30/uninstall-apache/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 18:21:35 +0000</pubDate>
		<dc:creator>scottned</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.netphase.com/2008/01/30/uninstall-apache/</guid>
		<description><![CDATA[So, I&#8217;m sure many others have made the same mistake.  You downloaded the latest Apache, did the 3 step: 

configure &#8211;prefix=/usr/local &#8211;enable-mods-shared=all &#8211;enable-ssl &#8211;enable-proxy
make
sudo make install

Doh! That&#8217;s probably not what you wanted.  Now you have stuff like

/usr/local/build
/usr/local/icons

You&#8217;d have been better off going with Apache 2&#8217;s default prefix which is /usr/local/apache2.  The problem [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m sure many others have made the same mistake.  You downloaded the latest Apache, did the 3 step: </p>
<ol>
<li>configure &#8211;prefix=/usr/local &#8211;enable-mods-shared=all &#8211;enable-ssl &#8211;enable-proxy</li>
<li>make</li>
<li>sudo make install</li>
</ol>
<p>Doh! That&#8217;s probably not what you wanted.  Now you have stuff like</p>
<ul>
<li>/usr/local/build</li>
<li>/usr/local/icons</li>
</ul>
<p>You&#8217;d have been better off going with Apache 2&#8217;s default prefix which is /usr/local/apache2.  The problem is there&#8217;s no uninstall!  If that&#8217;s happened to you and you just made the mistake a short time ago, try this:</p>
<ol>
<li>Make sure you have enough free space for a backup of /usr/local
<p>$ sudo du -sh /usr/local<br />
2.2G    /usr/local</p>
<p>$ df -h
</li>
<li>Back it up
<p>$ tar cvf /tmp/usr_local.tar /usr/local
</li>
<li>Find out which files you just installed
<p>$ sudo find . -type f -newerct &#8216;60 minutes ago&#8217; > /tmp/uninstall_files.txt</p>
<p>$ sudo find . -type d -newerct &#8216;60 minutes ago&#8217; > /tmp/uninstall_dirs.txt
</li>
<li>Inspect the file you just created and remove things that don&#8217;t belong (e.g. mysql)</li>
<li>Remove the files (don&#8217;t get creative and add -r to rm &#8212; <b>you did backup, right?</b>)
<p>$ cat uninstall_files.txt | sudo xargs rm</p>
<p>$ cat uninstall_dirs.txt | sudo xargs rmdir
</li>
</ol>
<p>Now, take off that prefix and try the 3-step again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netphase.com/2008/01/30/uninstall-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
