<?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>Digital Collections Blog &#187; Mac</title>
	<atom:link href="http://blog.digicol.de/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.digicol.de</link>
	<description>News for our customers, partners and friends</description>
	<lastBuildDate>Mon, 21 Nov 2011 11:49:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Running DC-X on Mac mini Server</title>
		<link>http://blog.digicol.de/2010/01/20/running-dc-x-on-mac-mini-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=running-dc-x-on-mac-mini-server</link>
		<comments>http://blog.digicol.de/2010/01/20/running-dc-x-on-mac-mini-server/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 10:53:49 +0000</pubDate>
		<dc:creator>Tim Strehle</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[DC-X]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.digicol.de/?p=214</guid>
		<description><![CDATA[I was excited when Apple anounced the new Mac mini Server, and was allowed to buy one for the company to install DC-X on it. It&#8217;s a beautiful computer, and very small, of course! The mini makes no noise at all and doesn&#8217;t require a keyboard, mouse or display after the initial installation. The perfect [...]]]></description>
			<content:encoded><![CDATA[<p>I was excited when Apple anounced the new <a href="http://www.apple.com/macmini/server/">Mac mini Server</a>, and was allowed to buy one for the company to install DC-X on it.</p>
<p>It&#8217;s a beautiful computer, and very small, of course! The mini makes no noise at all and doesn&#8217;t require a keyboard, mouse or display after the initial installation. The perfect server to carry around, place on your desktop or next to your router at home. &#8220;DC-X to go&#8221;… Its 1 TB of disk space should be good for a couple hundred thousand images, making it a great test/evaluation setup (or even a small production system?).</p>
<p>Installing DC-X is easy, but you have to make sure that the prerequisites are met: Apache 2, MySQL 5.1, PHP 5.3, Memcache, ImageMagick, Supervisor, an LDAP server etc. Quite a lot of stuff is being shipped with Mac OS X <a href="http://www.apple.com/server/macosx/">Snow Leopard Server</a> (make sure to install XCode from the installation DVD), and <a href="http://www.macports.org/">MacPorts</a> supplied almost everything else (&#8220;sudo port install pcre ghostscript rrdtool memcached libmcrypt libpng jpeg freetype ImageMagick wget&#8221;). The MySQL version was too old for DC-X, so I installed the latest <a href="http://dev.mysql.com/">MySQL</a> 5.1 OS X package &#8211; make sure to use the 64bit version! (and set &#8220;mysqli.default_socket = /tmp/mysql.sock&#8221; in /private/etc/php.ini, the default value doesn&#8217;t work).</p>
<p>I was able to use the preinstalled Apache and PHP. (By the way &#8211; I was surprised that Apple doesn&#8217;t configure Apache to advertise itself via Bonjour, and I wasn&#8217;t able to make this work.) Some PHP modules were missing, I compiled these extensions separately (phpize; CPPFLAGS=&#8221;-I/opt/local/include&#8221; ./configure, make, sudo make install) and added them in php.ini: pcntl, zip, mcrypt (for these three, download the PHP 5.3.0 sources and go into the appropriate &#8220;ext&#8221; subdirectory), <a href="http://pecl.php.net/package/APC">APC</a>, <a href="http://pecl.php.net/package/memcache">memcache</a> (requires a <a href="http://pecl.php.net/bugs/bug.php?id=16059">patch</a>). </p>
<p><a href="http://supervisord.org/">Supervisor</a> and <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">ExifTool</a> (MacPorts only had an outdated version of the latter) were easy, I used their standard installation routines.</p>
<p>My initial plan was to use the LDAP server provided by OS X Server, allowing us to use their graphical user management interfaces and to integrate DC-X user accounts with the system-wide accounts. This seemed to work fine first, but when I took the Mac mini home, it seemed to be confused suddenly belonging to a different network and I wasn&#8217;t able to connect to or manage their LDAP in that environment. So I had to resort to a parallel OpenLDAP installation, but I hope someone will help me figure out how to safely move the server between networks…</p>
<p>The actual DC-X installation went smooth, I included its Apache configuration in /etc/apache2/sites/0000_any_80_.conf and after a &#8220;sudo /usr/sbin/apachectl restart&#8221; I was able to use the DC-X web interface. (I haven&#8217;t yet set up DC-X to automatically start at boot time, I guess this involves a custom plist file in /Library/LaunchDaemons and invoking launchctl on it.) Great to see DC-X run on Snow Leopard Server for the first time!</p>
<p>Installing DC-X was just the first step. If time permits, I&#8217;d love to find out how to integrate with the server functionality provided by OS X Server: The file server, Wiki server, calendar server, mail and instant messaging…</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digicol.de/2010/01/20/running-dc-x-on-mac-mini-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

