<?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>Gerald R. Lucas &#187; debian</title>
	<atom:link href="http://grlucas.net/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://grlucas.net</link>
	<description>English Professor, New Media Specialist</description>
	<lastBuildDate>Sun, 29 Jan 2012 15:34:17 +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>Updates</title>
		<link>http://grlucas.net/2012/01/22/updates/</link>
		<comments>http://grlucas.net/2012/01/22/updates/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 21:18:04 +0000</pubDate>
		<dc:creator>Gerald Lucas</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[g5]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[xserve]]></category>

		<guid isPermaLink="false">http://grlucas.net/?p=4516</guid>
		<description><![CDATA[A large chunk of my holiday was spent in geek mode. Yes, I partook of holiday spirits, exercised a bit, and relaxed -- but I needed to do some pretty significant updates to some outdated servers that I'm responsible for on campus. This is a record of what I did to breathe new life into my obsolete equipment.]]></description>
			<content:encoded><![CDATA[<h4>Excuse me while I geek out a minute.</h4>
<p><span class="dropcap">A</span><!--/.dropcap--> large chunk of my holiday was spent in geek mode. Yes, I partook of holiday spirits, exercised a bit, and relaxed &#8212; but I needed to do some pretty significant updates to some outdated servers that I&#8217;m responsible for on campus. One, I choose to run, and the other houses three pretty important sites. Here&#8217;s what I did.</p>
<p>A couple of years after I got to MSC, the Humanities Division got an <a href="http://www.pcmag.com/article2/0,2817,1630320,00.asp" target="_blank">Apple Xserve</a>. We had several tasks for it: application sharing, file sharing, project storage, and a web server. It would support our Mac classroom, M-124. I remember getting that sweet piece of equipment; I liked it so much, I even kept it in my office for a while so I could pretend like I could feel the power of those dual G5 processors. I think this was 2004.</p>
<p>Well, since then, a lot has changed. There&#8217;s no longer a Humanities Division, but a <a href="http://mca.maconstate.edu/" target="_blank">Department of Media, Culture &amp; the Arts</a> and an <a href="http://english.maconstate.edu/" target="_blank">English Department</a>. I stayed with the former. I have been tenured, <a href="http://www.macon.com/2011/05/07/1552220/florida-educator-chosen-to-lead.html" target="_blank">we have a new president</a>, and we just got a new room full of iMacs &#8212; among other things. One thing that hasn&#8217;t changed: that Xserve is still around; however, it&#8217;s now obsolete. The last upgrade I was able to do to it was Leopard, and it will not run anything more recent from Apple. I began to run into problems with PHP and MySQL requirements on Moodle &#8212; Apple was no longer updating those in Leopard. Yes, I could have reverted to some command-line juju, but one of the reasons you get a server from Apple is that it has a purty GUI for all that admin stuff. Well, I learned my lesson.</p>
<p>When it comes to servers, there&#8217;s only one OS for me: Linux. And there&#8217;s only one flavor I eat: <a href="http://www.debian.org/" target="_blank">Debian</a>. Oh, I&#8217;ve tried others, and some are pretty tasty, but like a good slice of cheese pizza, there&#8217;s just something that calls you back to the simplicity  &#8211; the minimalism of that perfect recipe. Plus, Debian is one of the only ones left that supports the now very obsolete <a href="http://www.debian.org/ports/powerpc/" target="_blank">PowerPC</a> architecture. Man, when <a href="http://en.wikipedia.org/wiki/List_of_products_discontinued_by_Apple_Inc." target="_blank">Apple decides to obsolete something</a>, they do not mess around.</p>
<p>By this time, I&#8217;m a pretty experienced system administrator. If I don&#8217;t know how to do something, those better then I have already solved the problem and posted somewhere on the Interwebs. I really love the open-source community. When it came time to transfer, I was already prepared. My daily archives were ready on a backup disk, so I didn&#8217;t really need to do much else before the transfer. Since the Xserve has three drives, I just took the one out that had my Leopard Server install on it, and replaced it with a blank.</p>
<p>Debian installed with no problems whatever. Period. The server was up and running within twenty minutes with sshd ready for my work from home that night.</p>
<p>With my soft pants on and a Makers Mark on the desk, I set up the server that evening.</p>
<h3>Apache</h3>
<p>The first thing I needed to do was set up my <a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)" target="_blank">LAMP server</a>. The L(inux) part was done; that just left the AMP. I had done this many times, but this install would be different. Instead of one web site, I was running four, so I needed a configuration that could do this. I found <a href="http://library.linode.com/web-servers/apache/installation/debian-5-lenny#basic_system_configuration" target="_blank">this tutorial by Sam Kleinman</a>. I didn&#8217;t need the scripting, so I skipped that section. WordPress needs the rewrite module, so that was the only extra module I activated. I got my idea for filesystem organization from <a href="http://www.debian-administration.org/articles/412" target="_blank">this article by Steve Kemp</a>.</p>
<p>The best part of this new process was Sam&#8217;s last advice on installing a multi-processing module. Basically, this lets users run their own Apache instances. This is a life-saver for upgrading both WordPress and Moodle, since the Web server is essentially running under the user account&#8217;s permissions.</p>
<p>Next, I just populated the accounts with the data from the most recent backups.</p>
<h3>WordPress</h3>
<p>There&#8217;s not much to say here, really. I installed the latest version of <a href="http://www.wordpress.org/" target="_blank">WordPress</a>, added my database file, and uploaded my themes and plugins folders. The hardest part of installing WP is getting the <a href="http://codex.wordpress.org/Using_Permalinks" target="_blank">permalinks working</a>, but since I added the rewrite module to Apache and configured the preferences file already, they just worked.</p>
<h3>Moodle</h3>
<p><a href="http://www.moodle.org/" target="_blank">Moodle</a> presented a bit more of a challenge because we had been running an old version. So not only were we moving servers, I had a significant update to the new version of Moodle. I initially installed a fresh version of Moodle using their new <a href="http://docs.moodle.org/22/en/Installing_Moodle_from_Git_repository" target="_blank">&#8220;git&#8221; install</a>. Where has <em>this</em> been all my life? Git not only makes installs easier, but makes periodic updates <em>significantly</em> easier. <em>Bravo!</em></p>
<p>Triggering the install from a web browser, I made sure I had all the modules installed that I needed for the new version. I did have to install a few, but Aptitude made this easy &#8212; another reason I like Debian. Once I was sure the server was ready for Moodle, I added my old preferences that pointed to the database file. It took some time, but I was able to upgrade to the new version (2.2) in about thirty minutes.</p>
<p>There are still some difficulties with the new version of Moodle, but these are just upgrading woes &#8212; they have nothing to do with the server. After installing, I did notice that Moodle wanted me to migrate my database from MyISAM to InnoBD. I followed the instructions in a tutorial that I can&#8217;t find now. It wasn&#8217;t a bad process, albeit a bit anxiety-inducing. It took a while because my database was big. After all, we have been using Moodle for at least six years.</p>
<p>Finally, I <a href="http://docs.moodle.org/22/en/Cron_with_UNIX" target="_blank">set up cron</a> to trigger all my Moodle business every half-hour.</p>
<h3>Tweaking</h3>
<p>The rest was setting up a backup plan with an extra drive and cron. I even shared some ssh keys with my other server to do some remote daily backups. You can never bee too careful.</p>
<p>Finally, I discovered the php-apc <a href="http://docs.moodle.org/22/en/Performance_recommendations" target="_blank">performance tuner</a>. It really made a difference on my server. For some reason, Xcache was already installed, but wasn&#8217;t helping. I ditched that and installed php-apc for a pretty significant difference. Follow <a href="http://fplanque.com/dev/linux/install-apc-php-cache-debian-lenny" target="_blank">Francois Planque&#8217;s tutorial</a> for some more info and a way to measure your performance.</p>
<p>In all, a partial holiday well spent. Now, to get to that essay I need to write&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://grlucas.net/2012/01/22/updates/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Leopard Server Woe(s)</title>
		<link>http://grlucas.net/2008/12/18/leopard-server-woes/</link>
		<comments>http://grlucas.net/2008/12/18/leopard-server-woes/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 23:59:58 +0000</pubDate>
		<dc:creator>Gerald Lucas</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[frustration]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://grlucas.net/?p=1580</guid>
		<description><![CDATA[Apple, would you please tell me why you do not include the GD libraries as part of the out-of-the-box install for Leopard Server? As if that wasn&#8217;t bad enough, why then is it so difficult for me to install them? All of the tutorials I have found on the Internet are either too old, or [...]]]></description>
			<content:encoded><![CDATA[<p>Apple, would you please tell me why you do not include the GD libraries as part of the out-of-the-box install for Leopard Server? As if that wasn&#8217;t bad enough, why then is it so difficult for me to install them? All of the tutorials I have found on the Internet are either too old, or much too complicated. And even if I install these libraries successfully, the next update to the system will probably break them. Dumb.</p>
<p>I think that you&#8217;d realize that most of your education customers would want to install <a href="http://www.moodle.org/" target="_blank">Moodle</a> (including yours truly), but you cannot without the graphic libraries. Wouldn&#8217;t it be easier to include them as part of your standard Apache/PHP install? I want to use a theme for my WordPress install that uses Timthumb, but that requires the GD libraries.I guess I could turn off Apple&#8217;s install of Apache/PHP, etc., but sheesh. One of the reasons to use Mac OS X Server is for ease of administration. Yeah.</p>
<p>I&#8217;ve even started looking into installing Debian on my Xserve instead. It would be much simpler. What do you think, Apple?</p>
]]></content:encoded>
			<wfw:commentRss>http://grlucas.net/2008/12/18/leopard-server-woes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

