<?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>Tim Keller &#187; apache</title>
	<atom:link href="http://timkeller.me/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://timkeller.me</link>
	<description>Thoughts on Technology and the future of Learning</description>
	<lastBuildDate>Sun, 15 Jan 2012 21:14:27 +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>PHP on Windows &#8211; Blasting off!</title>
		<link>http://timkeller.me/2009/03/06/php-on-windows-blasting-off/</link>
		<comments>http://timkeller.me/2009/03/06/php-on-windows-blasting-off/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 10:28:19 +0000</pubDate>
		<dc:creator>Tim Keller</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[iis7]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[Speaking]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://timk.co.za/?p=62038115</guid>
		<description><![CDATA[The mention of &#8220;PHP on Windows&#8221; to a developer is most commonly met with polite but pointed laughter, if not outright disgust. Historically, this reaction wouldn&#8217;t be entirely inappropriate. But that has all changed with the advent of Internet Information &#8230; <a href="http://timkeller.me/2009/03/06/php-on-windows-blasting-off/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The mention of &#8220;PHP on Windows&#8221; to a developer is most commonly met with polite but pointed laughter, if not outright disgust. Historically, this reaction wouldn&#8217;t be entirely inappropriate. But that has all changed with the advent of Internet Information Services (IIS) 7 and its FastCGI handler.</p>
<p>Coming from a Linux background, I was skeptical about running our mission-critical apps on Windows. We had a lot of infrastructure built around the traditional LAMP stack, and the mention of throwing Windows IIS in its place was somewhat shocking. But, I can tell you that the transition to IIS7 is utterly painless, and brought with it some incredible advantages.</p>
<p>For the first time, we&#8217;re able to easily integrate our PHP products with ASP.NET code. We can build Rich Internet Applications with ASP.NET AJAX on the frontend and PHP on the backend. Even Silverlight 2.0 applications can be enhanced with familar PHP code to create something of value.</p>
<p>At DevDays 2009, which kicks off in Durban on the 10th of March, I&#8217;m going to be showing developers just how great it is to develop and deploy PHP applications on the Windows platform. Be there, or be <a href="http://pear.php.net/" target="_blank">PEAR</a> <img src='http://timkeller.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://timkeller.me/2009/03/06/php-on-windows-blasting-off/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Setting up LAMP within a small network</title>
		<link>http://timkeller.me/2008/08/28/setting-up-lamp-within-a-small-network/</link>
		<comments>http://timkeller.me/2008/08/28/setting-up-lamp-within-a-small-network/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 19:56:00 +0000</pubDate>
		<dc:creator>Tim Keller</dc:creator>
				<category><![CDATA[3306]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[port forwarding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[wamp]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://tumble.timokeller.net/post/47789789</guid>
		<description><![CDATA[My friend Alain K is deploying the first version of his soon-to-be-released desktop application, WealthWorks. It is designed for Personal Financial Advisors and Investors that need to track client information, risk profiles, investments and returns. He has a MySQL backend &#8230; <a href="http://timkeller.me/2008/08/28/setting-up-lamp-within-a-small-network/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My friend <a href="http://twitter.com/alainkermis" target="_blank">Alain K</a> is deploying the first version of his soon-to-be-released desktop application, <em>WealthWorks</em>. It is designed for Personal Financial Advisors and Investors that need to track client information, risk profiles, investments and returns. He has a MySQL backend with which the C# client application connects.</p>
<p>Due to the latency on South African DSL connections and the fact that the application is quite chatty, he is installing database servers within company intranets. This tutorial goes through the basics of making this work on a network where there are no static public IP Addresses available.</p>
<p><strong>Decisions</strong></p>
<p>Start with a piece of paper. Draw the network including any cables, routers, computers or switches that you think are important. This will give you a broad understanding of where your server fits into the picture.</p>
<p>The computers on the network will access the server you are setting up via its  <a href="http://en.wikipedia.org/wiki/IP_address" target="_blank">IP Address</a>. Ask the network administrator for an open address which you can use.</p>
<p>Configure the computer to use this address as a Static IP.</p>
<p>Tutorial: Setting up a Static IP on Windows (<a href="http://portforward.com/networking/static-xp.htm" target="_blank">Read</a>)<br />
Tutorial: Setting a Static IP on OSX (<a href="http://www.answers.vt.edu/ask4help/connection/vtkb1867.htm" target="_blank">Read</a>)</p>
<p><strong>MySQL Installation</strong></p>
<p>Start by installing MySQL. If all you want is the database server then head over to the <a href="http://dev.mysql.com/downloads/mysql/5.0.html#downloads" target="_blank">download page</a> on MySQL.com and grab it. If you need a full Apache+MySQL+PHP stack then take a look at <a href="http://www.wampserver.com/en/" target="_blank">WampServer</a> (Windows only) or <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> (MacOSX, Windows, Linux, or Solaris). Both packages include very cool GUIs for installing and controlling the server.</p>
<p><strong>MySQL Management</strong></p>
<p>You’ll no doubt want to change the root user password and upload your database scheme to your newly installed server. I personally use Navicat &#8211; a great GUI for MySQL which comes in both a <a href="http://mysql.navicat.com/download.html" target="_blank">paid and free version</a>. Give it the IP address you chose earlier, and the username and password of ‘root’ and blank (nothing, empty string, etc) respectively. In no time at all you’ll be browsing your database.</p>
<p>At this stage, all the other computers on the local network should be able to reach MySQL on the IP address you specified (remember, it serves connections on Port 3306).</p>
<p><strong>Accessing it from the outside<br />
</strong></p>
<p>The next step is to make your database accessible from outside of the local network. If you’re a consultant working from home or a different office, you’ll undoubtedly want this sort of access. Similarly, you may want clients to be able to connect in via the internet.</p>
<p>You need to tell your router to accept all incoming mysql traffic and push it to that server. We call this Port Forwarding. We are going to forward all traffic (on mysql port 3306) to our mysql server on our local network (also port 3306).</p>
<p>Follow the instructions on <a href="http://www.portforward.com/english/applications/port_forwarding/SSH/SSHindex.htm" target="_blank">PortForward.com</a> to configure your router.You want to forward all incoming traffic on port 3306 to 10.x.x.x (or 192.x.x.x) on port 3306.</p>
<p>Likewise, if you’ve got an Apache, MySQL, PHP setup on the server, you’ll want to access the website/webapplication by going to a URL from a web browser. The trick is to sign-up for a free DynamicDNS account at <a href="http://www.dyndns.com" target="_blank"></a><a href="http://www.dyndns.com">www.dyndns.com</a> and add that to your router’s configuration.</p>
<p>I trust this helps! Suggestions and thoughts, please <img src='http://timkeller.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://timkeller.me/2008/08/28/setting-up-lamp-within-a-small-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP+MySQL from the Mac OSX Terminal</title>
		<link>http://timkeller.me/2008/07/13/phpmysql-from-the-mac-osx-terminal/</link>
		<comments>http://timkeller.me/2008/07/13/phpmysql-from-the-mac-osx-terminal/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 10:24:00 +0000</pubDate>
		<dc:creator>Tim Keller</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[BSD]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Sockets]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://tumble.timokeller.net/post/42082031</guid>
		<description><![CDATA[I had to write a CLI PHP script today as part of the job-parser for the SMS module in ChirpSchool. The parser executes every 5 minutes as a cron-job and dispatches waiting messages in the Message Queue. I ran into &#8230; <a href="http://timkeller.me/2008/07/13/phpmysql-from-the-mac-osx-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had to write a CLI PHP script today as part of the job-parser for the SMS module in ChirpSchool. The parser executes every 5 minutes as a cron-job and dispatches waiting messages in the Message Queue.</p>
<p>I ran into a small problem in that the Command-Line-Interface PHP binary was different to the one running on my Apache+Mysql+PHP stack so the CLI PHP didn&#8217;t know which MySQL socket to attach to:</p>
<blockquote>
<p>Warning: mysqli_connect(): (HY000/2002): Can&#8217;t connect to local MySQL server through socket &#8216;/var/mysql/mysql.sock&#8217;</p>
</blockquote>
<p>The solution is simple. I am using Mac OSX 10.5.4 Leopard and XAMPP.</p>
<ol>
<li>Find out which PHP you are using from the terminal by typing &#8216;whereis php&#8217;. It is no doubt /usr/bin/php. <br/>
</li>
<li>Create a php.ini in /etc. Type &#8216;sudo cp /etc/php.ini.default /etc/php.ini</li>
<li>Then open this new file in something&#8230; I did a &#8216;sudo nano /etc/php.ini&#8217;.</li>
<li>Edit the mysqli.default_socket parameter (or mysql if you aren&#8217;t using the new improved driver) to point to the MySQL socket Apache is using. Mine was at /Applications/xampp/xamppfiles/var/mysql/mysql.sock (your&#8217;s may be at  /tmp/mysql.sock)</li>
<li>Be sure to save this new php.ini. Remember, /etc is protected so you won&#8217;t be able to save the file unless you have sudo&#8217;d yourself admin rights.<br/>
</li>
<li>Commenter<b> ferzkopp</b> kindly reminds us that an Apache restart may be neccesary to get this activated. Thanks for the Tip! </li>
</ol>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://timkeller.me/2008/07/13/phpmysql-from-the-mac-osx-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

