<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Damo's World</title>
	<atom:link href="http://damosworld.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://damosworld.wordpress.com</link>
	<description>Where education and technology converge</description>
	<lastBuildDate>Fri, 20 Jan 2012 03:39:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='damosworld.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Damo's World</title>
		<link>http://damosworld.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://damosworld.wordpress.com/osd.xml" title="Damo&#039;s World" />
	<atom:link rel='hub' href='http://damosworld.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Installing DBD::Oracle on RHEL6 with Oracle Instant Client 11.2 rpm</title>
		<link>http://damosworld.wordpress.com/2011/07/13/installing-dbdoracle-on-rhel6-with-oracle-instant-client-11-2-rpm/</link>
		<comments>http://damosworld.wordpress.com/2011/07/13/installing-dbdoracle-on-rhel6-with-oracle-instant-client-11-2-rpm/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 06:12:03 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1206</guid>
		<description><![CDATA[To install the Perl DBD::Oracle module on RHEL6, with the oracle instant client rpms installed, you need to type the following sequence of commands. Keep in mind that 11.2 can be exchanged for your version of Oracle, and that client64 can be exchanged for just client if you are using 32bit linux. From a shell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1206&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To install the Perl DBD::Oracle module on RHEL6, with the oracle instant client rpms installed, you need to type the following sequence of commands.  Keep in mind that <em>11.2</em> can be exchanged for your version of Oracle, and that <em>client64</em> can be exchanged for just <em>client</em> if you are using 32bit linux.  From a shell prompt as root (or using sudo):</p>
<p><code><br />
cpan<br />
install DBD::Oracle<br />
</code></p>
<p>This will likely fail but leave you with a cpan prompt.  When it does, type:</p>
<p><code><br />
look DBD::Oracle</p>
<p>export ORACLE_HOME=/usr/lib/oracle/11.2/client64/lib<br />
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME<br />
</code></p>
<p>The above will drop you at a shell prompt at the directory where the DBD::Oracle source code has been extracted, and configures the environment for the compile/install.  Now you can do the compile and install process with:</p>
<p><code><br />
perl Makefile.PL -V 11.2<br />
make<br />
</code></p>
<p>If all is good, then you can go ahead and do the install:</p>
<p><code><br />
sudo make install<br />
</code></p>
<p>The LD_LIBRARY_PATH environment variable must be set as given above for any user who will be using DBD::Oracle, so be sure to set the path permanently through a simple script added to the /etc/profile.d directory.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1206&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/07/13/installing-dbdoracle-on-rhel6-with-oracle-instant-client-11-2-rpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>The Mac OS X Terminal &#8211; My keyboard mappings</title>
		<link>http://damosworld.wordpress.com/2011/07/10/the-mac-os-x-terminal-my-keyboard-mappings/</link>
		<comments>http://damosworld.wordpress.com/2011/07/10/the-mac-os-x-terminal-my-keyboard-mappings/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 01:10:34 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1198</guid>
		<description><![CDATA[I made the switch from Windows to Mac OS as my chosen desktop operating system nearly 4 years ago, and I&#8217;ve never looked back.  I continue to use Linux as my preferred server operating system. Of a handful of frustrations from my switch to Mac OS, one I have solved today.  The Mac OS Terminal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1198&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I made the switch from Windows to Mac OS as my chosen desktop operating system nearly 4 years ago, and I&#8217;ve never looked back.  I continue to use Linux as my preferred server operating system. Of a handful of frustrations from my switch to Mac OS, one I have solved today.  The Mac OS Terminal application has always seemed quite limp as compared to the various terminals offered by Linux distributions such as those from KDE and Gnome.  Even terminals from Windows such as PuTTY seemed more capable.</p>
<p>However after spending a little time to get to know my Mac OS Terminal, I have come to realise that it isn&#8217;t quite as limp as I thought.  Either through the Leopard or Snow Leopard updates, Tabs were introduced (I don&#8217;t recall seeing them in Tiger which was when I last paid any attention to Terminal).  Neat!</p>
<p>So I starting looking at the biggest annoyance with Terminal, the inability to navigate the Bash shell command line with the keyboard.  With other terminals I have used on both Windows and Linux, it was possible to press Home to go to the start of the shell command, End to go to the end, and use Ctrl-Left and Ctrl-Right to move the cursor word by word through a command line.  This might seem trivial but I&#8217;m quite proficient with the UNIX shell (from my days as a UNIX Sys-admin) and tend to write reasonably complex shell commands.  There is nothing more frustrating than realising you omitted a switch to one of the first commands in a pipeline.  There was no choice but to hold down the left arrow cursor key and wait for the cursor to gingerly wander back to the start of the command where it can be positioned to insert or correct a switch. This has always given me the shits!!</p>
<p>So after some investigation and reading a couple of blog posts on this issue, I found an article: <a href="http://henriquebastos.net/2009/01/08/the-complete-keyboard-mapping-for-leopards-terminalapp/">The complete keyboard mapping for Leopard&#8217;s Terminal.app</a> by Henrique Bastos which provides instructions on how to configure these keys.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1198&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/07/10/the-mac-os-x-terminal-my-keyboard-mappings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing PHP5 on Mac OS X with Macports</title>
		<link>http://damosworld.wordpress.com/2011/04/29/installing-php5-on-mac-os-x-with-macports/</link>
		<comments>http://damosworld.wordpress.com/2011/04/29/installing-php5-on-mac-os-x-with-macports/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 06:38:34 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1196</guid>
		<description><![CDATA[To install PHP5 with the right variants, to support: Apache2 Pear Komodo IDE&#8217;s Simulate CGI Environment Debugging I chose: sudo port install php5 +apache2 +pear +fastcgi<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1196&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To install PHP5 with the right variants, to support:</p>
<ul>
<li>Apache2</li>
<li>Pear</li>
<li>Komodo IDE&#8217;s Simulate CGI Environment Debugging</li>
</ul>
<p>I chose:</p>
<p><code>sudo port install php5 +apache2 +pear +fastcgi</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1196&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/29/installing-php5-on-mac-os-x-with-macports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>Restoring a PGP WDE Encrypted drive</title>
		<link>http://damosworld.wordpress.com/2011/04/27/restoring-a-pgp-wde-encrypted-drive/</link>
		<comments>http://damosworld.wordpress.com/2011/04/27/restoring-a-pgp-wde-encrypted-drive/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 06:24:56 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1178</guid>
		<description><![CDATA[When using PGP (now owned by Symantec) Whole Disk Encryption (WDE) to encrypt your system drive, there are some hoops to jump through to do a system restore from backups. If you backup your system drive using SuperDuper! or Carbon Copy Cloner, then your backups will not be bootable. There are some things you need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1178&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When using PGP (now owned by Symantec) Whole Disk Encryption (WDE) to encrypt your system drive, there are some hoops to jump through to do a system restore from backups. If you backup your system drive using SuperDuper! or Carbon Copy Cloner, then your backups will not be bootable. There are some things you need to do to the backup copy before the drive will boot again and you can re-encrypt.</p>
<p>The problem is that PGP WDE creates a extra partition on your drive, usually at slice 3 (ie. /dev/disk0s3) that contains a copy of the /System/Library/CoreServices directory of your existing Boot Volume which is typically /dev/disk0s2.  This copy is unencrypted and used to boot the OS, and load the PGP WDE drivers which can then access your encrypted /dev/disk0s2 partition (ie your main drive).  Backup tools such as SuperDuper do not copy this extra partition to the new drive/image, but the drive is still blessed to boot from /dev/disk0s3, which no longer exists.  To fix the problem, mount the restored volume.  If you cannot access the backup/restored drive from an operating mac, then you need to boot your Mac using your OSX install DVD. Once you have booted the install DVD, choose the Utilities menu and select Terminal. Mount your drive by typing:</p>
<p><code>diskutil mount disk1</code></p>
<p>This should mount it under /Volumes/MacIntosh HD<br />
or whatever the name of your volume is.</p>
<p>So there are two tasks we need to perform, using a single command.  We need to set the boot partition as /dev/disk1s2 rather than /dev/disk1s3 (substitute the disk? number for your drive &#8211; make sure you get this right &#8211; if unsure, seek assistance from an expert).  The other task is to re-enstate the original apple boot.efi file, overwriting the pgpboot.efi file.  The pgpboot.efi is not required because the drive is no longer encrypted (at this stage).  So execute the following command:</p>
<p><code>cd /Volumes/&lt;mount point&gt;<br />
sudo bless --folder System/Library/CoreServices/ --bootefi System/Library/CoreServices/appleboot.efi --setboot<br />
</code></p>
<p>Now the drive should be bootable once again.  </p>
<p>Once you have rebooted the drive, you can use the PGP tools to encrypt the drive again as was done previously.</p>
<p>Damien.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1178&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/27/restoring-a-pgp-wde-encrypted-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>Protected: Connectivism: Final Project</title>
		<link>http://damosworld.wordpress.com/2011/04/16/connectivism-final-project/</link>
		<comments>http://damosworld.wordpress.com/2011/04/16/connectivism-final-project/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 11:57:27 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Connectivism and Connected Knowledge]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[behaviourism]]></category>
		<category><![CDATA[cck11]]></category>
		<category><![CDATA[connectivism]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[george siemens]]></category>
		<category><![CDATA[learning context]]></category>
		<category><![CDATA[stephen downes]]></category>
		<category><![CDATA[web2]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1135</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1135&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is password protected. You must visit the website and enter the password to continue reading.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1135&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/16/connectivism-final-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>Remote Debugging via proxy with PHP, XDebug, and Komodo IDE</title>
		<link>http://damosworld.wordpress.com/2011/04/13/remote-debugging-via-proxy-with-php-xdebug-and-komodo-ide/</link>
		<comments>http://damosworld.wordpress.com/2011/04/13/remote-debugging-via-proxy-with-php-xdebug-and-komodo-ide/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 12:02:18 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1125</guid>
		<description><![CDATA[So I am experimenting with remote debugging using Komodo IDE, PHP and Linux.  Following instructions from the xdebug website, I typed: sudo pecl install xdebug Then I added the file /etc/php.d/xdebug.ini with the lines: Running php -i, yields amongst others, the following message: xdebug support =&#62; enabled Version =&#62; 2.1.1 XDEBUG NOT LOADED AS ZEND [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1125&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I am experimenting with remote debugging using Komodo IDE, PHP and Linux.  Following <a href="http://www.xdebug.org/docs/install">instructions</a> from the <a href="http://www.xdebug.org/">xdebug website</a>, I typed:</p>
<p><code>sudo pecl install xdebug<br />
</code><br />
Then I added the file /etc/php.d/xdebug.ini with the lines:</p>
<p><pre class="brush: plain;">
extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
</pre></p>
<p>Running php -i, yields amongst others, the following message:</p>
<p><code>xdebug support =&gt; enabled<br />
Version =&gt; 2.1.1</p>
<p>XDEBUG NOT LOADED AS ZEND EXTENSION</p>
<p>Supported protocols =&gt; Revision<br />
DBGp - Common DeBuGger Protocol =&gt; $Revision: 1.145 $</code></p>
<p>All good so far.  Now I need to set up the debugging proxy server on the webserver host so that multiple developers can debug scripts from the same dev webserver.</p>
<p>To do this, I followed the instructions provided by Komodo using their python-based proxy server:</p>
<p><pre class="brush: bash;">
export PYTHONPATH=/lib/support/dbgp/pythonlib;$PYTHONPATH
cd /lib/support/dbgp/bin
python pydbgpproxy -i 138.77.20.48:9001 -d localhost:9000 -l DEBUG
</pre></p>
<p>So now I have configured Komodo to use the proxy server for debugging.</p>
<div id="attachment_1128" class="wp-caption aligncenter" style="width: 478px"><a href="http://damosworld.files.wordpress.com/2011/04/komodo-debug-options.png"><img class="size-full wp-image-1128" title="Komodo-debug-options" src="http://damosworld.files.wordpress.com/2011/04/komodo-debug-options.png?w=468&#038;h=226" alt="" width="468" height="226" /></a><p class="wp-caption-text">Komodo debugger options</p></div>
<p>Now to initiate a debugging session with a website script, I followed the instructions provided by Komodo:</p>
<p>Click <code>Debug</code> | <code>Listen for Debugger Connections</code></p>
<p>Then in the browser, enter the URL of the script and append: <code>?XDEBUG_SESSION_START=damo</code></p>
<p>Now Komodo asks to start a debug session where I click Yes, and &#8230;.  The script completes and no debugging occurs. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Seems more investigation is required here. </p>
<p>I am wondering whether the ajax calls in the script I am attempting to debug are confusing the proxy and or Komodo?  Each ajax call will also have the cookie set for debugging and so there are multiple requests do debug with the same Komod instance.  Perhaps this is why the debugger is not working.</p>
<p> I am hopeful I can get this working.  Will save alot of time trying to find those nasty bugs.</p>
<p>Damien.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1125&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/13/remote-debugging-via-proxy-with-php-xdebug-and-komodo-ide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>

		<media:content url="http://damosworld.files.wordpress.com/2011/04/komodo-debug-options.png" medium="image">
			<media:title type="html">Komodo-debug-options</media:title>
		</media:content>
	</item>
		<item>
		<title>Macports:  How to configure php5 for apache2</title>
		<link>http://damosworld.wordpress.com/2011/04/10/macports-how-to-configure-php5-for-apache2/</link>
		<comments>http://damosworld.wordpress.com/2011/04/10/macports-how-to-configure-php5-for-apache2/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 14:24:39 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1103</guid>
		<description><![CDATA[I guess I am spoiled with Redhat&#8217;s integration of all these packages where you simply install and away you go. Macports isn&#8217;t quite a polite in this regard. The default config files are incomplete and not enabled when it is installed. So I have had to do some massaging to get php working. The file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1103&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I guess I am spoiled with Redhat&#8217;s integration of all these packages where you simply install and away you go. Macports isn&#8217;t quite a polite in this regard. The default config files are incomplete and not enabled when it is installed.</p>
<p>So I have had to do some massaging to get php working.</p>
<p>The file <code>/opt/local/apache2/conf/extra/mod_php.conf</code> is missing some configuration parameters. I&#8217;ve changed mine to look like this:</p>
<p><pre class="brush: plain;">
&lt;IfModule mod_php5.c&gt;

AddType  application/x-httpd-php         .php
AddType  application/x-httpd-php-source  .phps

AddHandler php5-script .php
AddType text/html .php

DirectoryIndex index.php

&lt;/IfModule&gt;
</pre></p>
<p>I specifically had to add the handler and also load the module. Then in the <code>/opt/local/apache2/conf/httpd.conf</code> file, I had to add the line: <code>Include conf/extra/mod_php.conf</code> as there wasn&#8217;t even a commented out line that would include this module.  Also in the <code>/opt/local/apache2/conf/httpd.conf</code> file, also need to add the line <code>LoadModule php5_module modules/libphp5.so</code> so that the php library is loaded into Apache.</p>
<p>A graceful on the server:</p>
<p><code>sudo /opt/local/apache2/bin/apachtctl graceful</code></p>
<p>and away we went.</p>
<p>Damien.</p>
<p><strong>Addendum</strong></p>
<p>Turns out that a message is printed at completion of the install, which was not apparent to me because I used a GUI to do the installation. The message states:</p>
<p>If this is your first install, you need to activate PHP in your web server.</p>
<blockquote><p>To enable PHP in Apache, run<br />
cd /opt/local/apache2/modules<br />
/opt/local/apache2/bin/apxs -a -e -n &#8220;php5&#8243; libphp5.so</p></blockquote>
<p>A useful tip I highlighted in a <a title="Macports:  Some useful tricks" href="http://damosworld.wordpress.com/2011/04/09/macports-some-useful-tricks/">previous post</a> helps to find this sort of information after installation.  This command simply adds a LoadModule option to the main httpd.conf file, but does not add the other configuration options above.  So you still need to make the above changes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1103&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/10/macports-how-to-configure-php5-for-apache2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>Macports: How to install mod_perl2</title>
		<link>http://damosworld.wordpress.com/2011/04/09/macports-how-to-install-mod_perl2/</link>
		<comments>http://damosworld.wordpress.com/2011/04/09/macports-how-to-install-mod_perl2/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 13:37:08 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[macports]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1099</guid>
		<description><![CDATA[When attempting to install mod_perl2, I received an error code 2. Very unhelpful error message, but after some googling, I found this bug ticket which explains what you need to do. Essentially, you need to forcibly uninstall perl5.12 (or perl5.10) and then re-install with the threads variant: Then you can install mod_perl2 with: Not a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1099&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When attempting to install mod_perl2, I received an error code 2.  Very unhelpful error message, but after some googling, I found this <a href="https://trac.macports.org/ticket/23993">bug ticket</a> which explains what you need to do.  </p>
<p>Essentially, you need to forcibly uninstall perl5.12 (or perl5.10) and then re-install with the threads variant:<br />
<pre class="brush: bash;">
sudo port -f uninstall perl5.12
sudo port install perl5.12+threads
</pre></p>
<p>Then you can install mod_perl2 with:</p>
<p><pre class="brush: bash;">
sudo port install mod_perl2
</pre></p>
<p>Not a particularly elegant solution, but nonetheless gets the job done.  Hopefully this issue will be fixed in the future.</p>
<p>Damien.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1099/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1099&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/09/macports-how-to-install-mod_perl2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>Macports:  Some useful tricks</title>
		<link>http://damosworld.wordpress.com/2011/04/09/macports-some-useful-tricks/</link>
		<comments>http://damosworld.wordpress.com/2011/04/09/macports-some-useful-tricks/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 13:29:03 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[macports]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1091</guid>
		<description><![CDATA[I have decided to jump ship from Fink over to Macports.  Out of the frying pan and into the fire perhaps, but Fink&#8217;s packages just don&#8217;t seem to be kept up to date as well as Macports.  I&#8217;m keeping a close eye on brew as well, although I too am skeptical of its dependence on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1091&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have decided to jump ship from <a href="http://www.finkproject.org/">Fink</a> over to <a href="http://www.macports.org/">Macports</a>.  Out of the frying pan and into the fire perhaps, but Fink&#8217;s packages just don&#8217;t seem to be kept up to date as well as Macports.  I&#8217;m keeping a close eye on <a href="http://mxcl.github.com/homebrew/">brew</a> as well, although I too am skeptical of its dependence on Apple packaged software, especially when it comes to OS upgrades.</p>
<p>Anyway, here are some very handy tips that I have discovered in my travels.</p>
<h2>Post-installation instructions</h2>
<p>Some packages provide instructions on installation completion.  At times you may have ingored them or used tools such as Porticus to do the installation in which case the instructions are lost in the scroll from all the dependencies that went along with it.  So, there are a couple of commands that you can use to get this vital information back:</p>
<p>This command looks at the notes for a package (if it has any):</p>
<p><pre class="brush: bash;">
sudo port notes $packagename
</pre></p>
<p>If there are no notes, you can look at the portfile directly using:</p>
<p><pre class="brush: bash;">
sudo port cat $packagename
</pre></p>
<p>You will probably see some instructions to be printed at the end of the script</p>
<h2>How do I start or stop daemon processes</h2>
<p>So this always frustrates me, and each packaging system does it differently.  Macports wraps some scripts around the launchd system of MacOS 10.4+.  So you can use the <code>launchctl load -w /Library/LaunchDaemons/${packagename}.plist</code> to do it.  But a more convenient way is to use the load/unload option to the <code>port</code> command.</p>
<p><pre class="brush: bash;">
sudo port load $packagename
sudo port unload $packagename
</pre></p>
<p>Sadly, this not only starts and stops the daemon process, but also enables or disables auto-startup at the same time.  You can do things separately, or at least not without knowing the individual package&#8217;s startup scripts.</p>
<p>As I come up with new tips and tricks, I&#8217;ll add them to this blog post.</p>
<p>Damien.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1091/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1091&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/09/macports-some-useful-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
		<item>
		<title>Installation of Postgresql on MacOS X using Macports</title>
		<link>http://damosworld.wordpress.com/2011/04/09/installation-of-postgresql-on-macos-x-using-macports/</link>
		<comments>http://damosworld.wordpress.com/2011/04/09/installation-of-postgresql-on-macos-x-using-macports/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 12:55:42 +0000</pubDate>
		<dc:creator>damoclarky</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://damosworld.wordpress.com/?p=1070</guid>
		<description><![CDATA[Installing and configuring postgresql using Macports is a nightmare.  Documentation is very difficult to find.  Trawling the blogosphere, I have assembled the following procedure that I have had to follow to make it all happen, as it should. To install postgresql84 on Snow Leopard (10.6) using Macports, execute the following commands: Now to make sure [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1070&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Installing and configuring postgresql using Macports is a nightmare.  Documentation is very difficult to find.  Trawling the blogosphere, I have assembled the following procedure that I have had to follow to make it all happen, as it should.</p>
<p>To install postgresql84 on Snow Leopard (10.6) using Macports, execute the following commands:</p>
<p><pre class="brush: bash;">
sudo port install postgresql84-server
sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb
sudo chown postgres:postgres /opt/local/var/db/postgresql84/defaultdb
sudo -u postgres /opt/local/lib/postgresql84/bin/initdb -D /opt/local/var/db/postgresql84/defaultdb
</pre></p>
<p>Now to make sure that the postgres user account can be executed using the <code>su</code> command, we need to give postgres a shell:</p>
<p><pre class="brush: bash;">
sudo dscl . -create /Users/postgres UserShell /bin/sh
</pre></p>
<p>Then merge the Sys V Shared Memory Kernel parameters from the /etc/sysctl.conf.pg file with your existing /etc/sysctl.conf file (if you already have one):</p>
<p><pre class="brush: bash;">
sudo sh -c &quot;cat /etc/sysctl.conf.pg &gt;&gt;/etc/sysctl.conf&quot;
</pre></p>
<p>You can reboot at this point so that the new Sys V shared memory configuration in /etc/sysctl.conf is loaded by the kernel.  Alternately, being a UNIX you can execute the following command to get you going right away:</p>
<p><pre class="brush: bash;">
sudo sysctl -w `cat /etc/sysctl.conf.pg`
</pre></p>
<p>Next, we need to create the logfile directory and make it writable by the postgres user:</p>
<p><pre class="brush: bash;">
sudo mkdir -p /opt/local/var/log/postgresql84
sudo chown postgres:postgres /opt/local/var/log/postgresql84
</pre></p>
<p>Next, add to the /opt/local/lib/postgresql84/bin directory to your path variable in either /etc/profile or ~/.profile and you should be set</p>
<p><pre class="brush: bash;">
export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin:$PATH
</pre></p>
<p>Now create yourself a postgres database user account</p>
<p><pre class="brush: bash;">
$ createuser `whoami`
Shall the new role be a superuser? (y/n) y
</pre></p>
<p>To make the database server accessible via a TCP socket, edit the <code>/opt/local/var/db/postgresql84/defaultdb/pg_hba.conf</code> file and add the following two lines:</p>
<p><pre class="brush: plain;">
host    all         all         127.0.0.1/32          md5
host    all         all         0.0.0.0/0                md5
</pre></p>
<p>Edit the <code>/opt/local/var/db/postgresql84/defultdb/postgresql.conf</code> file and add the following line:</p>
<p><code>listen_addresses = '*'</code></p>
<p>Now, we should be right to start the server.  We use MacOS&#8217; launchctl command:</p>
<p><pre class="brush: bash;">
sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql84-server.plist
</pre></p>
<p>Now you can connect to the database server with:</p>
<p><pre class="brush: bash;">
psql template1
psql (8.4.7)
Type &quot;help&quot; for help.

template1=#
</pre></p>
<p>Hopefully this has been useful to someone else, as I have spent over 2 hours *&amp;^%*&amp;% around with this to get it working.</p>
<p>&nbsp;</p>
<p>Damien.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/damosworld.wordpress.com/1070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/damosworld.wordpress.com/1070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/damosworld.wordpress.com/1070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/damosworld.wordpress.com/1070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/damosworld.wordpress.com/1070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/damosworld.wordpress.com/1070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/damosworld.wordpress.com/1070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/damosworld.wordpress.com/1070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/damosworld.wordpress.com/1070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/damosworld.wordpress.com/1070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/damosworld.wordpress.com/1070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/damosworld.wordpress.com/1070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/damosworld.wordpress.com/1070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/damosworld.wordpress.com/1070/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=damosworld.wordpress.com&amp;blog=2649167&amp;post=1070&amp;subd=damosworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://damosworld.wordpress.com/2011/04/09/installation-of-postgresql-on-macos-x-using-macports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Damo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
