<?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>John Wells &#187; Servers</title>
	<atom:link href="http://www.jfwhome.com/category/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jfwhome.com</link>
	<description>Knowledge Management and Social Web App Guru</description>
	<lastBuildDate>Mon, 04 Jan 2016 17:26:35 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9</generator>
	<item>
		<title>Ubuntu server: /xcache.so: cannot open shared object file: No such file or directory</title>
		<link>http://www.jfwhome.com/2012/12/27/ubuntu-server-xcache-so-cannot-open-shared-object-file-no-such-file-or-directory/</link>
		<comments>http://www.jfwhome.com/2012/12/27/ubuntu-server-xcache-so-cannot-open-shared-object-file-no-such-file-or-directory/#comments</comments>
		<pubDate>Thu, 27 Dec 2012 05:05:33 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://www.jfwhome.com/?p=230</guid>
		<description><![CDATA[If you keep getting this spamming your PHP error log, it is likely because PHP xcache was installed previously and then uninstalled, but its configuration files were not cleared out. This could have happened at an upgrade or when you chose a different cache system. You can check if you have xcache installed by doing&#8230;]]></description>
				<content:encoded><![CDATA[<p>If you keep getting this spamming your PHP error log, it is likely because PHP xcache was installed previously and then uninstalled, but its configuration files were not cleared out. This could have happened at an upgrade or when you chose a different cache system.</p>
<p>You can check if you have xcache installed by doing <code>sudo dpkg -s php5-xcache | grep Status</code>. If the status shows as &quot;deinstalled&quot; but with config files left, you can simply purge it with <code>sudo apt-get remove --purge php5-xcache</code> .</p>
<p>Then restart Apache: <code>sudo service apache2 restart</code>. Your error log should now be spam free.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jfwhome.com/2012/12/27/ubuntu-server-xcache-so-cannot-open-shared-object-file-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Fixing problems with Dovecot &#8211; Postfix mail server after Ubuntu server upgrade to 11.10</title>
		<link>http://www.jfwhome.com/2012/02/02/fixing-problems-with-dovecot-postfix-mail-server-after-ubuntu-server-upgrade-to-1110/</link>
		<comments>http://www.jfwhome.com/2012/02/02/fixing-problems-with-dovecot-postfix-mail-server-after-ubuntu-server-upgrade-to-1110/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 09:45:14 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://www.jfwhome.com/?p=159</guid>
		<description><![CDATA[The thing that scares me most about server upgrades is the mail server&#8230; the thought of having to reconfigure the many interdependent servers and processes involved is horrible. So I wasn&#8217;t pleased to find my postfix-dovecot installation dying on upgrade from 11.04 to 11.10. I couldn&#8217;t sent outgoing mail or receive inbound. Fortunately I wasn&#8217;t&#8230;]]></description>
				<content:encoded><![CDATA[<p>The thing that scares me most about server upgrades is the mail server&#8230; the thought of having to reconfigure the many interdependent servers and processes involved is horrible.</p>
<p>So I wasn&#8217;t pleased to find my postfix-dovecot installation dying on upgrade from 11.04 to 11.10. I couldn&#8217;t sent outgoing mail or receive inbound.</p>
<p>Fortunately I wasn&#8217;t an &#8220;early upgrader&#8221;&#8230; both issues were easy to find and fix.</p>
<p><span id="more-159"></span></p>
<p><strong>Fixing inbound mail</strong></p>
<p>Messages sent to my address were being returned as undeliverable with the following error:<br />
<code>
<pre>
            < my-server.com #5.3.0 x-unix; /usr/lib/dovecot/deliver: invalid option -- 'n' Usage:    dovecot-lda [-c <config file>] [-a <address>] [-d <username>] [-p <path>]    [-f <envelope sender>] [-m <mailbox>] [-e] [-k]>
</pre>
<p></code><br />
This is fairly self-explanatory: In the new version of Dovecot, the &#8220;n&#8221; option is no longer used. If you receive this error, type the following commands:<br />
<code>
<pre>
sudo postconf -e "mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -m \"\${EXTENSION}\""
sudo service postfix restart 
</pre>
<p></code></p>
<p>Done.</p>
<p><strong>Fixing outbound mail</strong></p>
<p>My errors were caused by the SASL authentication server, saslauthd. A bug report is <a href="https://bugs.launchpad.net/ubuntu/+bug/875440">here</a>.</p>
<p>The problem can be fixed by rolling back saslauthd packages to a previous version, then &#8220;sticking&#8221; them so that they don&#8217;t get updated with regular system updates. Keep track of this so that you can remember to un-stick them when it comes time to upgrade.</p>
<p>First get the old packages. Replace &#8220;i386&#8243; in the links below with &#8220;amd64&#8243; if your server is 64-bit<br />
<code>
<pre>
mkdir ~/saslfixes
cd ~/saslfixes
wget http://archive.ubuntu.com/ubuntu/pool/main/c/cyrus-sasl2/libsasl2-2_2.1.23.dfsg1-5ubuntu3_i386.deb http://archive.ubuntu.com/ubuntu/pool/main/c/cyrus-sasl2/libsasl2-modules_2.1.23.dfsg1-5ubuntu3_i386.deb http://archive.ubuntu.com/ubuntu/pool/main/c/cyrus-sasl2/libsasl2-dev_2.1.23.dfsg1-5ubuntu3_i386.deb http://archive.ubuntu.com/ubuntu/pool/main/c/cyrus-sasl2/libsasl2-modules-sql_2.1.23.dfsg1-5ubuntu3_i386.deb http://archive.ubuntu.com/ubuntu/pool/main/c/cyrus-sasl2/sasl2-bin_2.1.23.dfsg1-5ubuntu3_i386.deb
</pre>
<p></code></p>
<p>Then remove the old packages and install the new ones:<br />
<code>
<pre>
sudo /etc/init.d/saslauthd stop
sudo dpkg -r libsasl2-dev
sudo dpkg -r libsasl2-modules-sql
sudo dpkg -r sasl2-bin
sudo dpkg -r --force-all libsasl2-2 libsasl2-2:i386
sudo dpkg -r --force-all libsasl2-modules
sudo dpkg -i --force-all *.deb
</pre>
<p></code></p>
<p>Then restart the servers:</p>
<p><code>
<pre>
sudo /etc/init.d/saslauthd restart
sudo /etc/init.d/postfix restart
</pre>
<p></code></p>
<p>And finally &#8220;stick&#8221; the packages so they aren&#8217;t updated:</p>
<p>Type these commands <em>as root</em> (<code>sudo su -</code> will get you a root shell)<br />
<code>
<pre>
echo libsasl2-dev hold | dpkg --set-selections
echo libsasl2-modules-sql hold | dpkg --set-selections
echo libsasl2-2 hold | dpkg --set-selections
echo libsasl2-modules hold | dpkg --set-selections
echo sasl2-bin hold | dpkg --set-selections
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jfwhome.com/2012/02/02/fixing-problems-with-dovecot-postfix-mail-server-after-ubuntu-server-upgrade-to-1110/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
