<?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>One more line</title>
	<atom:link href="http://www.onemoreline.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onemoreline.com</link>
	<description>then it&#039;ll feel like magic</description>
	<lastBuildDate>Tue, 22 Nov 2011 20:49:55 +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>Lithium, MongoDB and MAMP</title>
		<link>http://www.onemoreline.com/2011/11/lithium-mongodb-and-mamp/</link>
		<comments>http://www.onemoreline.com/2011/11/lithium-mongodb-and-mamp/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 20:46:06 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Lithium]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=39</guid>
		<description><![CDATA[It&#8217;s not like I actually intend to let you guys wait for new posts on this site forever. And I also don&#8217;t think I ever planned to confuse you about what kind of technology this site is actually about. Well, but here we are now and in my last post I told I was going [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not like I actually intend to let you guys wait for new posts on this site forever. And I also don&#8217;t think I ever planned to confuse you about what kind of technology this site is actually about. Well, but here we are now and in my last post I told I was going to write about fronted technologies in the future. But this post is going to about the Lithium framework, MongoDB and MAMP. How did that happen? Well, it is, of course, a lengthy tale that I will not bore you with. But don&#8217;t fear, fronted tech will be a major part of this blog in the future.</p>
<p>&nbsp;</p>
<h2>Lithium</h2>
<p>What is Lithium, you might ask. It is yet another PHP framework like Zend, Symfony or CakePHP. Lithium is depending on PHP 5.3 support, so be sure to update your PHP before giving it spin. According to the creators Lithium is &#8220;the most RAD framework&#8221;, where RAD means Rapid Application Development. RAD is basically something every framework promises, so I advise some caution with that kind of assurance.<br />
What really is pretty cool about Lithium (and also is the reason I decided to try it), is that it does support document oriented database systems out of the box, so if you intend to work with Mongo or CouchDB in the future I suggest you take a look at Lithium.<br />
For a full(er) list of features Lithium offers, head on over to <a title="Lithium framework about" href="http://dev.lithify.me/lithium/wiki/about" target="_blank">lithfy.me</a>, where you will find information and downloads for Lithium.</p>
<p>Getting Lithium up and running on your local system is really not hard at all. All you need to do is download it and unpack it to a folder in your MAMP htdocs folder (or any other folder accessible from your Apache installation). In that case however, should you intend to develop more than one Lithium based application, you would have to put the Lithium library in every one of them. So it would be a lot smarter to make a folder for the library itself and just put the app folder from the Lithium package into the app you wish to build. Doing that, of course, will have to do some work later.</p>
<h2>MongoDB and MAMP</h2>
<p>For the sake of brevity in this post I will not be explaining how to install MongoDB on your local Mac. There is an explanation about that on mongodb.org and also one I found very helpful was done by <a title="Installation of MongoDB " href="http://www.davidgolding.net/mongodb/installing-mongodb-on-mamp-1-9-5.html" target="_blank">David Golding</a>. (As a note on that: For step 3 in that particular tutorial, I went with what Golding proposed in the &#8220;Update&#8221; section. So be sure to put mongo.so in the no-debug-non-zts-20090626 folder.)<br />
Then you will need to edit your php.ini file and add the extension for MongoDB. In my php.ini this was around line number 540. Just put it under this line:</p>
<p>extension=pdo_mysql.so<br />
extension=mongo.so</p>
<h2>Putting it all together</h2>
<p>So, how do we know if we were successful? Easy: Just fire up your MongoDB and your MAMP (well in principle you&#8217;d just need the Apache server, but for now let&#8217;s just start the whole MAMP) and then we will use the browser of our choice. Assuming the Lithium app you are trying to build lives in a folder called &#8220;lit&#8221; which itself calls &#8220;htdocs&#8221; its home the address we will be localhost/lit/app (you might have to add :8888 to localhost).<br />
Now there are two possibilities: One &#8211; you see a Lithium welcome page which tells you which databases are available (be sure there is no negative indicator at the MongoDB entry.)<br />
Two &#8211; you see nothing. In that case you probably followed my advice and put the Lithium library in a separate folder. The guys at Lithium suggest to add the following in your lit/app/config/bootstrap.php</p>
<pre class="brush: php; gutter: true">define('LITHIUM_LIBRARY_PATH', '/lib/lithium/libraries');</pre>
<p class="brush: php; gutter: true">(That&#8217;s assuming your library is in a folder /lib/lithium). Unfortunately for me that didn&#8217;t quite do it and I did get a PHP warning telling me that LITHIUM_LIBRARY_PATH already was defined. So, what did I do? I found the original definition of the library path, which is in the file libraries.php in lit/app/config/bootstrap/ . Find the definition and put your library path in.</p>
<p class="brush: php; gutter: true">Now, you should be good and you should be able to see what databases are available and you are ready to code away.</p>
<p class="brush: php; gutter: true">Fantastic! Now play around while I prepare the next post.</p>
<p class="brush: php; gutter: true">P.S. If you find errors, don&#8217;t hesitate to comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/11/lithium-mongodb-and-mamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Here we are again</title>
		<link>http://www.onemoreline.com/2011/11/here-we-are-again/</link>
		<comments>http://www.onemoreline.com/2011/11/here-we-are-again/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 19:21:14 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Front End]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=34</guid>
		<description><![CDATA[And here I go again. Once more I feel I should explain why I haven&#8217;t posted anything in a pretty long time. Well, what can I say, I&#8217;ve been busy. And also I have been thinking about what to actually blog about here. In the beginning I&#8217;ve started onemoreline.com because I wanted to write about [...]]]></description>
			<content:encoded><![CDATA[<p>And here I go again. Once more I feel I should explain why I haven&#8217;t posted anything in a pretty long time. Well, what can I say, I&#8217;ve been busy. And also I have been thinking about what to actually blog about here. In the beginning I&#8217;ve started onemoreline.com because I wanted to write about developing web applications with PHP and the Zend Framework. While that definitely is a very intriguing topic, I recently found that I do prefer other technologies lately.</p>
<p>I&#8217;ve  started to learn and to admire the Symfony framework, but also other technologies are gaining my interest, like Node.js and MongoDB for instance.</p>
<p>However, since I am a frontend developer by trade, I decided that my focus for onemoreline.com will be the technologies of web application frontend development, namely Javascript, HTML and CSS. I will continue to work with PHP and probably mostly Smyfony2. Also the occasional post about MongoDB (or any other non-relational database system, like CouchDB) will be a part of this blog. You may also expect posts about Node.js, because that stuff really does intrigue.</p>
<p>So, there you go, I have once more gave lame excuses for not blogging and have yet again promised things I may or may not fulfill. But that&#8217;s the beauty of running a website like this, noone forces you to do anything and it&#8217;s all up to you.</p>
<p>Well, that&#8217;s all the empty promises for now. Hope for the best and don&#8217;t expect a thing, then it&#8217;ll feel like magic.</p>
<p>&nbsp;</p>
<p>P.S. I also decided that this wonderful blog of mine needed a new theme and a tagline. And since fronted development, which this site will now focus on, is in principle about doing magic (or at least in creating things that feel like magic to the user [you should always to create a 'magical' user experience, imho]) I decided on this:</p>
<p>One More Line &#8211; then it&#8217;ll feel like magic</p>
<p>Get it? Get it? Well of course you do, you aren&#8217;t as stupid as I think, are you?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/11/here-we-are-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s with the silence?</title>
		<link>http://www.onemoreline.com/2011/08/whats-with-the-silence/</link>
		<comments>http://www.onemoreline.com/2011/08/whats-with-the-silence/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 15:17:45 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=30</guid>
		<description><![CDATA[Well, it&#8217;s been a long time since I posted. Again. Had I any frequent readers they might ask themselves what has been up with onemoreline.com. As I have complained about before, I actually do have a job I get paid for and I do take seriously, so most of my time does go into that. [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s been a long time since I posted. Again. Had I any frequent readers they might ask themselves what has been up with onemoreline.com. As I have complained about before, I actually do have a job I get paid for and I do take seriously, so most of my time does go into that. On top of that, I had to move a couple of weeks back. So, I had to work and first find a new place to live and then make that place actually liveable. And if that weren&#8217;t enough I&#8217;ve just turned really, really old.</p>
<p>So there you have it. I have neglected this blog because of some real life issues. Won&#8217;t happen again, promise. (Well, yeah, that will hopefully turn out to be a lie)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/08/whats-with-the-silence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up shop &#8211; vol. 3 &#8211; vHosts</title>
		<link>http://www.onemoreline.com/2011/04/setting-up-shop-vol-3-vhosts/</link>
		<comments>http://www.onemoreline.com/2011/04/setting-up-shop-vol-3-vhosts/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 13:11:54 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vhost]]></category>
		<category><![CDATA[virtual host]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=23</guid>
		<description><![CDATA[So, it&#8217;s been a while since I last posted, which is mostly due to stress at my day job, but not to worry, I haven&#8217;t forgotten OneMoreLine and today I will discuss the last step in setting up shop. In the first two parts, I described how to install a webserver with PHP and MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>So, it&#8217;s been a while since I last posted, which is mostly due to stress at my day job, but not to worry, I haven&#8217;t forgotten OneMoreLine and today I will discuss the last step in setting up shop. In the first two parts, I described <a title="How to install a webserver on a mac" href="http://www.onemoreline.com/2011/02/setting-up-shop-vol-1/" target="_self">how to install a webserver with PHP and MySQL</a> support on your local Mac (and PCs, too) and <a title="Installing the Zend Framework on a MAMP installation" href="http://www.onemoreline.com/2011/02/setting-up-shop-vol-2/" target="_self">how to get the Zend Framework integrated</a> into that setup. Before we&#8217;re really ready to go, however, there is one more thing to do: We&#8217;ll need to configure a <strong>Virtual Host</strong> on our local server.</p>
<p>Okay, why are we doing this? Strictly speaking it not absolutely necessary to set up a vHost, but it does make your life as a developer easier and more pleasant. Also, it teaches you interesting things about both your home computer as well as some important basics about webservers, which you should be  interested in when you&#8217;re getting into web development.</p>
<p>So, we are trying to create something called a Virtual Host. What exactly is that, you may wonder. You may have read or heard somewhere that computer networks in general really don&#8217;t work with names at all, but in fact with numbers. Important numbers for instance are IP-addresses, which look something like this:</p>
<p>123.567.890.123</p>
<p>That is what these mysterious IP-addresses used to look like when we were dealing with IPv4 which is to say Internet Protocol version 4. Nowadays, IPv6 is getting more and more attention, but we won&#8217;t go into that now.</p>
<p>So, there are these somewhat lengthy numbers, but what we really want is a short and easy to remember name like onemoreline.com ore google or whatever you like. And that we want to set up on our local machine. And for that we&#8217;ll need a <strong>Virtual Host</strong>.</p>
<p>To set up our virtual host we&#8217;ll need to two files on our system. One of them belongs to our apache webserver, the other is part of the operating system and we&#8217;ll need administrator privileges to edit that file.</p>
<p>The webserver file comes first and you&#8217;ll need to restart the server after editing is complete. Our goal for this example will be to set up a virtual host that enables us to visit our local development site by typing local.test in the address bar in our browser.</p>
<p>You&#8217;ll need to locate a file called &#8220;httpd.conf&#8221;, which in a standard MAMP installation resides in /Applications/MAMP/conf/apache. Open that file in the text editor of your choice. Scroll down to the bottom end of this file.</p>
<div id="_mcePaste">&lt;VirtualHost *&gt;</div>
<div id="_mcePaste">DocumentRoot &#8220;/Applications/MAMP/projects/test/public&#8221;</div>
<div id="_mcePaste">ServerName local.test</div>
<div id="_mcePaste">&lt;Directory &#8220;/Applications/MAMP/projects/test/public&#8221;&gt;</div>
<div id="_mcePaste">AllowOverride All</div>
<div id="_mcePaste">Order allow,deny</div>
<div id="_mcePaste">Allow from all</div>
<div id="_mcePaste">&lt;/Directory&gt;</div>
<div id="_mcePaste">&lt;/VirtualHost&gt;</div>
<p>In the code above you&#8217;ll obviously need to make some changes to reflect your own system. For example the line beginning with &#8220;DocumentRoot&#8221; should point to the public folder on your machine. In my case, I created a projects folder within my MAMP folder where I put all my projects, including the test project. The line starting out with &#8220;ServerName&#8221; indicates what we will want to be able to call our project in the browser, in our example local.test. The Directory statement is important because it tells the server what is allowed to happen in these folders. For our local test we just allow everything. This should not be copied for a production environment.</p>
<p>If well started our webserver now and typed local.test in the address bar of our browser nothing good would happen. We would not be able to reach our destination, which means we have one more thing to do.</p>
<p>For this last step, we will need to work with the Terminal Application, which you&#8217;ll find in the Utitlities Folder in your Applications directory. So find that and start it by double clicking.</p>
<p>Now type the following:</p>
<p>cd /etc</p>
<p>and hit enter. You will now have changed the directory. Typing ls will show you the contents of that folder.</p>
<p>The file we&#8217;ll need to edit now is called hosts and to edit it we need to have full administrative privileges on our computer. To prove to our system that we really are allowed to edit this file we&#8217;ll invoke the superuser mode. Type the following command and hit enter afterwards:</p>
<p>su nano hosts</p>
<p>You&#8217;ll be prompted for a password, put that in and don&#8217;t be concerned when nothing (not even little stars) shows while you type. As a security measure the terminal doesn&#8217;t show anything of your passwords, not even the length.</p>
<p>With the command above you tell your system that you are an administrator and that you want to use the nano editor to work on the file named hosts. If you are not in the correct directory, where no such file exists, you&#8217;ll be shown an empty file (which could become a new hosts file, if you were to save it under that name).</p>
<p>Assuming you were in the correct directory however, the file should not be completely empty. There should be some lines of comments (indicated by the hash symbol in the beginning) and the following three lines:</p>
<p>127.0.0.1                     localhost</p>
<p>255.255.255.255      broadcasthost</p>
<p>::1                                  localhost</p>
<p>You don&#8217;t want to mess with those entries, you&#8217;ll want to add a new one. I suggest, you put another line of comment to indicate, mostly to yourself, where your own additions begin under the three lines given above, like this:</p>
<p>## My own test setup</p>
<p>Under this you should put what we really came to put there:</p>
<p>127.0.0.1                   local.test</p>
<p>What we tell our computer by this is, that every time &#8220;local.test&#8221; is typed into the address bar of a browser (or any other program that uses the internet for that matter) not to look too far for mapping the address to a specific machine, but just to use the IP-address 127.0.0.1, which always is the very computer you&#8217;re sitting in front of.</p>
<p>And that basically is it. To save your changes press CTRL+O, then hit enter. CTRL+X will exit the nano editor.</p>
<p>So, could we now type local.test in our browser? Well not quite, but almost. There is something we&#8217;ll have to add and that is the port number our local webserver listens to. This is actually not necessary on a windows machine, but on a Mac you&#8217;ll have to type local.test:8888 in your address bar to get to your project.</p>
<p>And that&#8217;s it. You now don&#8217;t have to remember a lengthy path to your project, but you&#8217;ll be able to just type a few little things to get to your developing project.</p>
<p>Since this concludes our little Setting Up Shop series, I am not yet completely sure what the next topic of discussion will be, but I&#8217;m sure I will come up with something.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/04/setting-up-shop-vol-3-vhosts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Setting up shop &#8211; vol. 2</title>
		<link>http://www.onemoreline.com/2011/02/setting-up-shop-vol-2/</link>
		<comments>http://www.onemoreline.com/2011/02/setting-up-shop-vol-2/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 10:36:24 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=18</guid>
		<description><![CDATA[To continue our excursion from last time, where we&#8217;ve installed our local server, PHP engine and MySQL database we today will install the Zend Framework on our machine. After doing that we will be very nearly done with preparations and can jump right into code-mode. To install Zend we will first need to download it, [...]]]></description>
			<content:encoded><![CDATA[<p>To continue our excursion from last time, where we&#8217;ve <a title="How to install MAMP on a Mac" href="http://www.onemoreline.com/2011/02/setting-up-shop-vol-1/" target="_self">installed our local server, PHP engine and MySQL</a> database we today will install the Zend Framework on our machine. After doing that we will be very nearly done with preparations and can jump right into code-mode.</p>
<p>To install Zend we will first need to download it, obviously. You can head over to Zend.com on your own and search for the download link, or you can just <a title="Download the Zend Framework" href="http://www.zend.com/community/downloads" target="_blank">click here</a>. After downloading we should unpack the archive and get ready to go.</p>
<p>You can now choose where you would like to put your Zend Framework. Personally I like to have things that belong together in the same place, so I am going to put Zend inside my MAMP Folder (not in the htdocs however). If you prefer otherwise, that is up to you.</p>
<p>And actually there are not too many things left to do at this particular task. Two steps remain and the first is to tell PHP where it can find the classes of the Zend Framework. For that we will need edit the php.ini file which you should find (on a Mac) in your MAMP folder, there you&#8217;ll have to go to conf and navigate to the folder which is named just like the PHP version you are running (which most likely is the highest number available). Inside this folder you&#8217;ll find the php.ini file which you should now edit in your text editor of choice.</p>
<p>You&#8217;ll need to locate the line which begins with &#8220;include_path. Yours should look something like this:</p>
<p>include_path = &#8220;.:/Applications/MAMP/bin/php5.3/lib/php&#8221;</p>
<p>This line tells your webserver that the basic files where standard PHP classes are to be found is located, in this case it&#8217;s the local installation of a MAMP server, the bin folder and PHP 5.3 subfolder. Now we will add the location of the Zend Framework files to this. Afterwards your include_path should look like this:</p>
<p>include_path = &#8220;.:/Applications/MAMP/bin/php5.3/lib/php:/Applications/MAMP/zend/library&#8221;</p>
<p>Note that after the end of the first entry there is a colon (&#8216;:&#8217;) which is the appropriate delimiter for include path entries on the Mac. (I believe Windows users need to use an semi-colon &#8216;;&#8217;, but I am unsure of that). Also not that you&#8217;ll have to point to the &#8216;library&#8217; subfolder of the unpacked downloaded Zend Framework.</p>
<p>In general we could use our Zend Framework from within our webserver by now, but there is one more thing we can do to make our lives a little easier: You can interact with your Zend Framework from within your Terminal, which for example can help you to create new Zend-based projects. For that we&#8217;ll need to edit the configuration file for our bash (which is the Terminal App you&#8217;ll find in the Utilities folder on your Mac).</p>
<p>If this is the first time you try to adapt your Terminal the file we need doesn&#8217;t exist yet. In that case we can just create a new one. The file is to be called &#8216;.profile&#8217;, it is a system file so it starts with a .</p>
<p>The line we&#8217;ll need to add should look like this:</p>
<p>alias zf=/Applications/MAMP/zend/bin/zf.sh</p>
<p>This tells the bash that whenever we type the command zf it is supposed to execute the shell script in the specified location. To see if it works open your Terminal and type</p>
<p>zf show version</p>
<p>To see what else you can do with the zf command, just type &#8220;zf ?&#8221;</p>
<p>So, there we are now. A working webserver with PHP and MySQL database on our computers and the Zend Framework ready to go. Next time we&#8217;ll create our first project and play with virtual hosts a little bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/02/setting-up-shop-vol-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting up shop &#8211; vol. 1</title>
		<link>http://www.onemoreline.com/2011/02/setting-up-shop-vol-1/</link>
		<comments>http://www.onemoreline.com/2011/02/setting-up-shop-vol-1/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 18:34:00 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[local]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=13</guid>
		<description><![CDATA[Until now, I haven&#8217;t really gotten into anything specific. All I did was to talk about having a plan and the importance thereof. Not to imply that htis was wrong, cause it really wasn&#8217;t, but it&#8217;s time for something specific. So today I&#8217;m gonna talk about setting up your system for development. So what we&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>Until now, I haven&#8217;t really gotten into anything specific. All I did was to talk about having a plan and the importance thereof. Not to imply that htis was wrong, cause it really wasn&#8217;t, but it&#8217;s time for something specific.</p>
<p>So today I&#8217;m gonna talk about setting up your system for development. So what we&#8217;re gonna need is a local installation of a web-server, php and a database. And since we would love to use some zend, we will be going for Zend Framework installation as well in a later episode to this short series &#8216;Setting up shop&#8217;.</p>
<p>I am going to do this on a Mac, but in principle the same would apply for Windows PCs as well, I&#8217;ll give special notice for differences in file locations and other stuff you poor Windows users might stumble over.</p>
<p><strong>Prerequisites</strong>: Working computer with internet connection (which you should already have since you&#8217;re reading this on the web, I presume)</p>
<p><strong>Step 1: The Server</strong></p>
<p>So, we&#8217;re trying to get a a web application going and for that we will need some form server. Because we are just starting out and actually haven&#8217;t really got too much of an idea of how we are going to do that we wouldn&#8217;t want anyone to accidentally stumble upon our not yet finished application. So we are going to need a server installation on our own computer which only we can access ourselves.</p>
<p>For this us Mac users will use MAMP, which includes everything we are going to need from an Apache, PHP and a MySQL database (among other things). So, first we will have to download <a title="MAMP Homepage" href="http://www.mamp.info" target="_blank">MAMP from here</a>, or use a search engine of our choosing to find another download location. v</p>
<p>Sidenote for our Windows users: There is something called XAMPP, which basically is exactly the same thing, that you should use. You can <a title="Xampp Download page" href="http://www.apachefriends.org/en/xampp.html" target="_blank">get it here</a>. Xampp actually offers distributions for nearly all of the common operating system (including Mac OS) so Linux users should find something there as well.</p>
<p>Installation of what we have downloaded should not be a problem. It&#8217;s a basic &#8220;click-and-aggree&#8221; kind of a thing, you can choose the location, though, which can help but isn&#8217;t necessary.</p>
<p>After you have successfully installed your web server you should have a MAMP control application (or something equivalent on other systems) which probably automatically launched. If it did not, locate it via Finder on a Mac or the Explorer on Windows (no, not the Internet Explorer, don&#8217;t ever use that, for anything. I&#8217;m not kidding.) and launch it.</p>
<div id="attachment_14" class="wp-caption alignleft" style="width: 310px"><a href="http://www.onemoreline.com/wp-content/uploads/mamp_control.jpg"><img class="size-medium wp-image-14" title="MAMP Control" src="http://www.onemoreline.com/wp-content/uploads/mamp_control-300x242.jpg" alt="MAMP control screenshot" width="300" height="242" /></a><p class="wp-caption-text">MAMP Control</p></div>
<p>If you found the control interface for your server it should look somewhat like mine. If it doesn&#8217;t look like mine exactly, it&#8217;s no reason to panic, cause, well mine speaks German and yours probably won&#8217;t.</p>
<p>No matter which language your server speaks, you should now start your server if it isn&#8217;t running already.</p>
<p>You may have noticed that I didn&#8217;t tell you to go to settings and adjust something or another. I assume this is your first direct contact with a server so we are going with the default for now.</p>
<p>So, now we should have two green lights and probably an open browser window with something like this on top:</p>
<div id="attachment_15" class="wp-caption alignleft" style="width: 310px"><a href="http://www.onemoreline.com/wp-content/uploads/mamp-installed.jpg"><img class="size-medium wp-image-15" title="MAMP installed" src="http://www.onemoreline.com/wp-content/uploads/mamp-installed-300x78.jpg" alt="MAMP is now installed and running" width="300" height="78" /></a><p class="wp-caption-text">MAMP is ready to go</p></div>
<p>So with MAMP, or LAMP, WAMP or whatever other derivative of XAMP we now have running. You will notice that there are some links on the page you are seeing. Be sure to play around, look at least at the link to phpinfo. This tells you important things about which PHP version you have running, which PHP settings are active and also where you find the file to change those settings.</p>
<p>So, now we have a working server on our local system, isn&#8217;t that awesome, but wait, noone really wants see that phpinfo thing all the time, we want to get our own stuff displayed. So where to put our own HTML or PHP files?</p>
<p>On a Mac you&#8217;ll need the Finder to navigate to your Applications folder, in there you should be able to find a MAMP folder, look inside that. There you&#8217;ll find a bunch of things we won&#8217;t be bothered with today, cause thone folder we actually want is right in there and is called &#8216;htdocs&#8217; (windows users usually find there respective folders directly under c:\xampp\htdocs, unless they chose otherwise of course). Any file we put inside that folder should be accessible with our browser with addresses like that:</p>
<p>http://localhost:8888/subfolder/subfolder/filename.html</p>
<p>That should keep you busy for a while. You now have access to a server that not only displays your HTML, is able to interpret PHP but also comes with a database. Go play around, ask questions here in the comments if things don&#8217;t work the way you want them to and I will be back here soon to get you started on your Zend Framework installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/02/setting-up-shop-vol-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Gotta have a plan&#8230;</title>
		<link>http://www.onemoreline.com/2011/02/gotta-have-a-plan/</link>
		<comments>http://www.onemoreline.com/2011/02/gotta-have-a-plan/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 21:40:55 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Basics]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=10</guid>
		<description><![CDATA[Well, the heading says it all, I guess. You have to have a plan when you develop an application of any kind and I am still figuring out some details about the application I am trying to create. The basic idea is there and I have made progress in terms of specification of basic features [...]]]></description>
			<content:encoded><![CDATA[<p>Well, the heading says it all, I guess. You have to have a plan when you develop an application of any kind and I am still figuring out some details about the application I am trying to create. The basic idea is there and I have made progress in terms of specification of basic features and definite must-haves.</p>
<p>&nbsp;</p>
<p>What I have so far can be described as a set of use-cases for the application, I know, that is, what I want people to be able to do with the application. I have been doing some reading over at the Zend Devzone, specifically I read about <a href="http://devzone.zend.com/node/view/id/31" target="_blank">Blueprints for PHP Applications</a>. I am not traditionally one who follows instructions to the letter, but I do believe that the basic idea of having a clear mental image of what you are trying to achieve helps immensely in the development process.</p>
<p>&nbsp;</p>
<p>So this is where i am right now. I am working on it whenever I can, which regrettably is not nearly &nbsp;as much as I&#39;d like, but I&#39;ll keep you posted &#8211; promise.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/02/gotta-have-a-plan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started</title>
		<link>http://www.onemoreline.com/2011/01/getting-started/</link>
		<comments>http://www.onemoreline.com/2011/01/getting-started/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 13:01:24 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[concept]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[mindmeister]]></category>
		<category><![CDATA[planning]]></category>
		<category><![CDATA[strategy]]></category>

		<guid isPermaLink="false">http://www.onemoreline.com/?p=6</guid>
		<description><![CDATA[Getting started is the hard part. Before you start hacking away, you need to think about what exactly you want to achieve. That is indeed the hard part. Normally these things start as a vague idea, like giving people a way to connect with each and stay in touch with friends. But before you begin [...]]]></description>
			<content:encoded><![CDATA[<p>Getting started is the hard part. Before you start hacking away, you need to think about what exactly you want to achieve. That is indeed the hard part. Normally these things start as a vague idea, like giving people a way to connect with each and stay in touch with friends.</p>
<p>But before you begin coding that needs to get a little more specific. How will people contact each in other, for whom is the service available, is the service only for registered users and many more questions have to be addressed before you start on the implementation.</p>
<p>So this is where I am now: I&#8217;ve had the basic idea for my project quite a while back, but used to be too busy to actually get into the specifics. The idea is there and I currently work on fleshing it out, answering questions like &#8216;is feature a necessary or not&#8217;.</p>
<p>For this I use mindmaps and because I do this at a bunch of different locations, on a Mac, PC or my iPhone I can&#8217;t really use a specific application, which is why a use webservice called <a title="Mindmaps with Mindmeister" href="http://www.mindmeister.com" target="_blank">Mindmeister</a>. For the planning part I can really recommend Mindmeister, it&#8217;s a great help, accessible from anywhere and it has an App as well.</p>
<p>So now you know where I am and I will get back to you when the plan is fleshed out enough to go on to the next stage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onemoreline.com/2011/01/getting-started/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

