<?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>Gaunt Face &#124; Matthew Gaunt &#187; Apache</title>
	<atom:link href="http://www.gauntface.co.uk/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gauntface.co.uk/blog</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 31 Jan 2012 23:21:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Karmic Koala Web Development Set-Up Guide</title>
		<link>http://www.gauntface.co.uk/blog/2009/10/15/karmic-koala-web-development-set-up-guide/</link>
		<comments>http://www.gauntface.co.uk/blog/2009/10/15/karmic-koala-web-development-set-up-guide/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 20:18:30 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.gauntface.co.uk/blog/?p=332</guid>
		<description><![CDATA[I do a fair bit of web development for free lance work, project work and personal sites. Each time I upgrade my Ubuntu Distro I like to do a clean installation rather than upgrade which means settings up apache on my machine, but each time I forget about how I created my set-up. This is [...]]]></description>
			<content:encoded><![CDATA[<p>I do a fair bit of web development for free lance work, project work and personal sites. Each time I upgrade my Ubuntu Distro I like to do a clean installation rather than upgrade which means settings up apache on my machine, but each time I forget about how I created my set-up. This is where I&#8217;m going to dump my knowledge of doing things, mostly for me, but some of you lovely people might find it a bit useful <img src='http://www.gauntface.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><span id="more-332"></span></p>
<h2>Installing LAMP</h2>
<p>Simple run this command:</p>
<p>sudo tasksel install lamp-server</p>
<p>It&#8217;ll ask for a MySQL password which you can enter and it&#8217;ll sort out the rest for you (Check http://localhost/ in your browser to confirm)</p>
<h2>Set-Up New Site</h2>
<p>sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/gauntface</p>
<p>Where you can replace gauntface with any site name you want</p>
<p>sudo gedit /etc/apache2/sites-available/gauntface</p>
<p>This will then open up the config file for your new site, delete what is in it and replace with the following:</p>
<p>&lt;VirtualHost *:80&gt;<br />
ServerAdmin webmaster@localhost</p>
<p>DocumentRoot /home/matt/Sites/GauntFace/Local/<br />
ServerName gauntface.localhost</p>
<p>&lt;Directory /home/matt/Sites/GauntFace/Local/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p>But replace the file directory and site name with your appropriate file. Now is probably the best time to go add your files, but also right click on it, select properties and make sure the permissions are set so everyone can have read write access to the files.</p>
<h2>Set Up Sub Domain</h2>
<p>sudo gedit /etc/hosts</p>
<p>Then add in your new server name like:</p>
<p>127.0.0.1    gauntface.localhost</p>
<p>To make these changes take effect, just use the following command</p>
<div id="_mcePaste">sudo /etc/init.d/networking restart</div>
<h2>Enable the Site</h2>
<p>sudo a2ensite gauntface</p>
<p>sudo /etc/init.d/apache2</p>
<p>I tend to ignore any and all messages from the second command as the site tends to work anyway.</p>
<p>NOTE: To make these changes take effect try the command &#8216;sudo /etc/init.d/apache2 restart&#8217;</p>
<h2>MySQL Adding Databases</h2>
<p>Load MySQL using:</p>
<p>mysql -u root -p</p>
<p>Then enter your password in that you entered when you installed your LAMP setup.</p>
<p>Then create a database with:</p>
<p>mysql&gt; CREATE DATABASE dbName;</p>
<h2>MySQL Adding Users</h2>
<p>mysql&gt; CREATE USER &#8216;&lt;Username&gt;&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;&lt;Password&gt;&#8217;;</p>
<p>mysql&gt; GRANT ALL PRIVILEGES ON *.* TO &#8216;&lt;Username&gt;&#8217;@'localhost&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gauntface.co.uk/blog/2009/10/15/karmic-koala-web-development-set-up-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

