<?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>Aaron Toponce &#187; Apache</title>
	<atom:link href="http://pthree.org/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Sun, 05 Feb 2012 14:33:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha</generator>
		<item>
		<title>Linux Is Fun and Stuff, but&#8230;</title>
		<link>http://pthree.org/2006/02/14/linux-is-fun-and-stuff-but/</link>
		<comments>http://pthree.org/2006/02/14/linux-is-fun-and-stuff-but/#comments</comments>
		<pubDate>Tue, 14 Feb 2006 15:17:58 +0000</pubDate>
		<dc:creator>Aaron Toponce</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.pthree.org/2006/02/14/linux-is-fun-and-stuff-but/</guid>
		<description><![CDATA[&#8230;setting up a Linux server, and evern worse, being the system administrator is a pain in the butt!!!111!!!11!one Okay, here&#8217;s the thing.  I am now hosting the OALUG site on my Ubuntu web server.  No big deal.  I am hosting 3 other sites as well.  Being a web admin is not that bad.  Lately, however, [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;setting up a Linux server, and evern worse, being the system administrator is a pain in the butt!!!111!!!11!one</p>
<p>Okay, here&#8217;s the thing.  I am now hosting the OALUG site on my Ubuntu web server.  No big deal.  I am hosting 3 other sites as well.  Being a web admin is not that bad.  Lately, however, I need to set up a mail and DNS server for the OALUG group.  I&#8217;ll get to that in another post as to why.</p>
<p>First, I asked a friend what packages I needed and what needed to be done, as he has done it before.  He gave me the link to an excellent howto, and for the most part, everything went smoothly, until I began installing packages I already had installed, like MySQL.  Don&#8217;t ask.</p>
<p>Everything started breaking.  First it was MySQL, then PHP, then Apache2.  Then, after updating the repositories in my source.lst file, 280 packages broke, including the Linux kernel, the Ubuntu desktop, and a top more.</p>
<p>As you can see, MySQL, PHP and Apache2 are working just fine now, I hope (I&#8217;ll really find out if this post doesn&#8217;t submit).  All the packages that I broke, I have fixed.  But I was up until 2:30 in the freaking morning fixing them.  And that was before I even had the chance to get my web server as it was before all this mess.</p>
<p>Now, before all you Microsoft advocates come out of the woodwork saying, &#8220;We told you so Aaron.  Windows is easier and less cryptic to use than Linux&#8221;, I have to say that I have learned <em>a ton</em>.  And, despite the lack of sleep, the 300 new gray hairs, and ulcers that I developed, it was actullay, in an odd sort of way, fun.  I got to see deep inside the server.  I edited config files, changed all sorts of permissions, added, removed and readded packages, and really got to know a lot better how my Linux server works.  I wouldn&#8217;t trade that for an easy GUI that handles everything for me.</p>
<p>Am I finished?  No, I still have a little more to go.  And I will probably break more packages on the way, but, I will learn more than if I purchased a program to do to the job for me.  And I will be more qualified as a Linux/UNIX system admin.  I would never apply for such a job.  The stress would kill me, but my qualifications have just jumped through the roof.</p>
]]></content:encoded>
			<wfw:commentRss>http://pthree.org/2006/02/14/linux-is-fun-and-stuff-but/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Server Market Share</title>
		<link>http://pthree.org/2005/11/20/web-server-market-share/</link>
		<comments>http://pthree.org/2005/11/20/web-server-market-share/#comments</comments>
		<pubDate>Mon, 21 Nov 2005 03:04:18 +0000</pubDate>
		<dc:creator>Aaron Toponce</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.pthree.org:8080/?p=24</guid>
		<description><![CDATA[Way to go Apache! Apache leads the web servers with the largest market share by far, with almost 70% of servers using Apache. Microsofts IIS takes second place with a measly 20%, which is interesting, seeing as though most people running XP have their web server IIS turned on by default. So that percentage is [...]]]></description>
			<content:encoded><![CDATA[<p>Way to go Apache!  Apache leads the web servers with the largest market share by far, with almost 70% of servers using Apache.  Microsofts IIS takes second place with a measly 20%, which is interesting, seeing as though most people running XP have their web server IIS turned on by default.  So that percentage is very generous.  The other web servers such as NCSA and Sun make up the ramaing 10%, according to <a href="http://news.netcraft.com/archives/web_server_survey.html">Netcraft</a>.</p>
<p>Check out the image below:</p>
<div style="text-align:center;color:blue;">
Market Share for Top Servers Across All Domains August 1995 &#8211; November 2005<br />
<img src="http://www.pthree.org:8080/wp-content/overallc.gif" alt="Web Server Market Share" />
</div>
]]></content:encoded>
			<wfw:commentRss>http://pthree.org/2005/11/20/web-server-market-share/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress, URL Rewrite and Apache2</title>
		<link>http://pthree.org/2005/10/06/wordpress-url-rewrite-and-apache2/</link>
		<comments>http://pthree.org/2005/10/06/wordpress-url-rewrite-and-apache2/#comments</comments>
		<pubDate>Fri, 07 Oct 2005 05:13:04 +0000</pubDate>
		<dc:creator>Aaron Toponce</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.pthree.org:8080/?p=10</guid>
		<description><![CDATA[Okay, this is something that I have been spending the last 3 hours doing. Needless to say, I was getting quite frustrated. However, I have figured it out, and I share my experience here. WordPress has the ability to take full advantage of Apache&#8217;s mod_rewrite module. Using your .htaccess file crammed to the brim with [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, this is something that I have been spending the last 3 hours doing.  Needless to say, I was getting quite frustrated.  However, I have figured it out, and I share my experience here.</p>
<p>WordPress has the ability to take full advantage of Apache&#8217;s mod_rewrite module.  Using your .htaccess file crammed to the brim with regular expressions, you can modify the URL in your address bar dynamically.  A URL in your address that looks like:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">http://www.pthree.org:8080/?p=6</div></td></tr></tbody></table></div>
<p>can be rewritten to look something like:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">http://www.pthree.org:8080/2005/05/19/How_PHP_Works</div></td></tr></tbody></table></div>
<p>However, WordPress lacks fundamental detailed documentation concerning the mod_rewrite matter, and Googling around for hours just took me in circles.  The only thing that came to mind was common sense.  In other words, I was making much more difficult than it had to be.</p>
<p>Here&#8217;s how to properly configure the mod_rewrite module with WordPress 1.5 using Apache2:</p>
<p>First, make sure that the root of your blogs directory has writeable access.  If the root directory of your blog is /home/user/public_html, make sure that public_html is writeable by everyone (chmod 777).  Don&#8217;t worry, you can change it back to something more secure when we finish.  Once your directory is writeable by everyone, open your blogs admin page, navigate to permalinks under URLs, and configure the look of your new dynamic URL in the text box, then save your settings.  After saving your settings, if you are told you now need to edit your .htaccess file, then you didn&#8217;t make the root directory writeable.  Try again.  For convience, I have included the contents of what your .htaccess file should look like:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># BEGIN WordPress<br />
&amp;lt;IfModule mod_rewrite.c&amp;gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} -f [OR]<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteRule ^.*$ - [S=50]<br />
RewriteRule ^(welcome)/trackback/?$ /index.php?pagename=$1&amp;amp;amp;tb=1 [QSA,L]<br />
RewriteRule ^(welcome)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&amp;amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^(welcome)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&amp;amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^(welcome)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&amp;amp;paged=$2 [QSA,L]<br />
RewriteRule ^(welcome)(/[0-9]+)?/?$ /index.php?pagename=$1&amp;amp;page=$2 [QSA,L]<br />
RewriteRule ^(author-colophon)/trackback/?$ /index.php?pagename=$1&amp;amp;tb=1 [QSA,L]<br />
RewriteRule ^(author-colophon)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^(author-colophon)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^(author-colophon)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&amp;amp;paged=$2 [QSA,L]<br />
RewriteRule ^(author-colophon)(/[0-9]+)?/?$ /index.php?pagename=$1&amp;amp;page=$2 [QSA,L]<br />
RewriteRule ^(blogroll)/trackback/?$ /index.php?pagename=$1&amp;amp;tb=1 [QSA,L]<br />
RewriteRule ^(blogroll)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^(blogroll)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^(blogroll)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&amp;amp;paged=$2 [QSA,L]<br />
RewriteRule ^(blogroll)(/[0-9]+)?/?$ /index.php?pagename=$1&amp;amp;page=$2 [QSA,L]<br />
RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&amp;amp;feed=$1 [QSA,L]<br />
RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /index.php?&amp;amp;feed=$1 [QSA,L]<br />
RewriteRule ^page/?([0-9]{1,})/?$ /index.php?&amp;amp;paged=$1 [QSA,L]<br />
RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&amp;amp;feed=$1&amp;amp;withcomments=1 [QSA,L]<br />
RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /index.php?&amp;amp;feed=$1&amp;amp;withcomments=1 [QSA,L]<br />
RewriteRule ^comments/page/?([0-9]{1,})/?$ /index.php?&amp;amp;paged=$1 [QSA,L]<br />
RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /index.php?s=$1&amp;amp;paged=$2 [QSA,L]<br />
RewriteRule ^search/(.+)/?$ /index.php?s=$1 [QSA,L]<br />
RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&amp;amp;paged=$2 [QSA,L]<br />
RewriteRule ^category/(.+)/?$ /index.php?category_name=$1 [QSA,L]<br />
RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&amp;amp;paged=$2 [QSA,L]<br />
RewriteRule ^author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;feed=$4 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;feed=$4 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;paged=$4 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;feed=$3 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;feed=$3 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;paged=$3 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /index.php?year=$1&amp;amp;monthnum=$2 [QSA,L]<br />
RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;feed=$2 [QSA,L]<br />
RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /index.php?year=$1&amp;amp;paged=$2 [QSA,L]<br />
RewriteRule ^([0-9]{4})/?$ /index.php?year=$1 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;name=$4&amp;amp;tb=1 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;name=$4&amp;amp;feed=$5 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;name=$4&amp;amp;feed=$5 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;name=$4&amp;amp;paged=$5 [QSA,L]<br />
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$ /index.php?year=$1&amp;amp;monthnum=$2&amp;amp;day=$3&amp;amp;name=$4&amp;amp;page=$5 [QSA,L]<br />
&amp;lt;/IfModule&amp;gt;<br />
# END WordPress</div></td></tr></tbody></table></div>
<p><em><u>Realize, this &#8220;How&#8217;To&#8221; is only for Apache2.</u>  For Apache 1.3 or earlier, there is loads and loads of documentation on the web.  Google around for it.</em></p>
<p>Now that your .htaccess file is created and edited, you need to edit your default file found in /etc/apache2/.  You should be familiar with this file, as you needed to edit it to set up your website on a Linux server.  Under the proper virtual host, add:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AccessFileName .htaccess</div></td></tr></tbody></table></div>
<p>Then, you will need to allow access to files in the document&#8217;s root directory.  This is done by:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AllowOverride All</div></td></tr></tbody></table></div>
<p>That&#8217;s it!  Believe it or not, it is fairly striaght forward, and quite easy.  Again, I was making it way too difficult trying to edit my apache2.conf, httpd.conf, php.ini and a number of other files to get it working, not even thinking about my default virtual directory file.</p>
<p>A list of permalinks for you WordPress blog can be found at <a href="http://codex.wordpress.org/Using_Permalinks">http://codex.wordpress.org/Using_Permalinks</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pthree.org/2005/10/06/wordpress-url-rewrite-and-apache2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

