<?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>Learning the Ropes &#187; bash</title>
	<atom:link href="http://davidmiller.serafinistudios.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidmiller.serafinistudios.com</link>
	<description>David&#039;s experiences interning with Serafini Studios</description>
	<lastBuildDate>Sat, 04 Dec 2010 04:17:29 +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>Jump on it.  Apache 2 comes with OSX by &#8230;</title>
		<link>http://davidmiller.serafinistudios.com/2009/06/jump-on-it-apache-2-comes-with-osx-by/</link>
		<comments>http://davidmiller.serafinistudios.com/2009/06/jump-on-it-apache-2-comes-with-osx-by/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 17:08:00 +0000</pubDate>
		<dc:creator>intern</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache 2]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[development environment]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://davidmiller.serafinistudios.com/?p=6</guid>
		<description><![CDATA[Jump on it. Apache 2 comes with OSX by default. It can be activated using the system settings sharing panel. However, Apple customises this distribution of Apache to do one thing very well: share the sites folder on one&#8217;s computer. In order to get around this, and to avoid any potential issues with system updates [...]]]></description>
			<content:encoded><![CDATA[<p>Jump on it.</p>
<p>Apache 2 comes with OSX by default. It can be activated using the system settings sharing panel. However, Apple customises this distribution of Apache to do one thing very well: share the sites folder on one&#8217;s computer. In order to get around this, and to avoid any potential issues with system updates overwriting server settings, I began from scratch with a fresh tarball, directly from <a href="http://httpd.apache.org/download.cgi">the  Apache people</a>.</p>
<p>I learned the <b>tar</b> command, and used it to unzip the tarball. The modifiers x,v,z, and f are applied. <b>X</b> sets the tar operation to extraction; <b>tar</b> can also compress archives, inspect them, and so on.. <b>V</b> asks tar to operate in verbose mode, <b>f</b> uses the file &#8216;archive&#8217; to unpack files and folders, rather than the compilation dependent source location, and <b>z</b> tells <b>tar</b> to use the gzip library to decompress tarballs.</p>
<p>Once the installation files are unzipped, I navigated into their directory, and ran the configure script included. This creates installation files optimised for the setup of my particular computer.</p>
<p>I ran the make script generated to build an installation for the laptop. Lastly, I <b>sudo</b> ran the make install script, to install the server with administrative privileges.</p>
<p>The final step is to start the server. Inside the <b>/usr/local/apache2</b> folder where apache&#8217;s default install puts itself, there is a <b>bin</b> folder, and therein a script called <b>apachectl</b>. This script handles starting, stopping, and restarting the apache server, and must be run as an administrator.</p>
<p>Using the VI text editor, I set the home directory for apache, in apache&#8217;s httpd.conf file. I then create a short html document for testing purposes and placed it in this home directory. To test that the server is working, I pointed a browser at <a href="http://localhost" rel="nofollow">http://localhost</a>.</p>
<p>After some careful checking of settings, the html file loaded. Time to get PHP running!</p>
]]></content:encoded>
			<wfw:commentRss>http://davidmiller.serafinistudios.com/2009/06/jump-on-it-apache-2-comes-with-osx-by/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

