<?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>www.pokeroconnor.com &#187; hosting</title>
	<atom:link href="http://www.pokeroconnor.com/category/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pokeroconnor.com</link>
	<description></description>
	<lastBuildDate>Thu, 25 Mar 2010 22:56:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress site redirect</title>
		<link>http://www.pokeroconnor.com/wordpress-site-redirect/</link>
		<comments>http://www.pokeroconnor.com/wordpress-site-redirect/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 18:01:51 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=297</guid>
		<description><![CDATA[I had the following problem lately: I added the typical rules to htaccess to redirect example.com/anything to www.example.com/anything, e.g.
 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule (.*)$ http://www.example.com/$1 [L,NC,R=301]
 
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

But when I went to example.com I got infinite redirects&#8230;reason being I had the siteurl field in the wp_options table [...]]]></description>
			<content:encoded><![CDATA[<p>I had the following problem lately: I added the typical rules to htaccess to redirect example.com/anything to www.example.com/anything, e.g.</p>
<p><code> </code></p>
<p><code>RewriteEngine On</code></p>
<p><code>RewriteCond %{HTTP_HOST} ^example.com [NC]<br />
RewriteRule (.*)$ http://www.example.com/$1 [L,NC,R=301]</code></p>
<p><code> </code></p>
<p><code>RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]</p>
<p></code></p>
<p>But when I went to example.com I got infinite redirects&#8230;reason being I had the siteurl field in the wp_options table of the database set to http://example.com.</p>
<p>So, you need to change that to http://<strong>www</strong>.example.com, and <strong>also edit wp-config.php</strong> as follows:<br />
<code><br />
define('WP_HOME','http://www.example.com');<br />
define('WP_SITEURL','http://www.example.com');</code></p>
<p>That should be it -<a href="http://codex.wordpress.org/Changing_The_Site_URL"> see here if not</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/wordpress-site-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing IMAP SMTP Postfix Debian</title>
		<link>http://www.pokeroconnor.com/installing-imap-smtp-postfix-debian/</link>
		<comments>http://www.pokeroconnor.com/installing-imap-smtp-postfix-debian/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 23:42:05 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=280</guid>
		<description><![CDATA[I run Debian Lenny, and have my bind server setup with mail.yourdomain.com. That&#8217;s my starting point, and the following is how to install and configure SMTP and IMAP, using Postfix and SASL.
On debian you need the courier-imap package, and note it runs on port 143.
apt-get install courier-imap
This is a good guide to IMAP side of [...]]]></description>
			<content:encoded><![CDATA[<p>I run Debian Lenny, and have my bind server setup with mail.yourdomain.com. That&#8217;s my starting point, and the following is how to install and configure SMTP and IMAP, using Postfix and SASL.</p>
<p>On debian you need the courier-imap package, and note it runs on<strong> port 143.</strong></p>
<p><strong><em>apt-get install courier-imap</em></strong></p>
<p><a href="http://wiki.edseek.com/howto:exim4_courier">This is a good guide to IMAP</a> side of things.</p>
<p><em><strong>VIP</strong></em>: <a href="http://www.postfix.org/faq.html#maildir">Support for maildir-style mailboxes</a> needs to be added, so edit /etc/postfix/main.cf to add the following:</p>
<p><em>home_mailbox = Maildir/</em></p>
<p><strong>SMTP</strong></p>
<p><a href="http://www.jimmy.co.at/weblog/?p=52">This<strong> </strong>guide rules as a starter for SMTP</a>.</p>
<p>Run <strong><em>apt-get install postfix-tls sasl2-bin libsasl2 libsasl2-modules</em></strong>, and maybe <strong><em>apt-get install libsasl2-2</em></strong> but MAKE SURE you change /etc/default/saslauthd to have the following:</p>
<p>START=yes<br />
MECHANISMS=&#8221;pam&#8221;</p>
<p>Next file to edit is /etc/postfix/sasl/smtpd.conf (you have to create it):<br />
<em>pwcheck_method: saslauthd</em></p>
<p>VI: /etc/postfix/main.cf</p>
<p><em>smtpd_sasl_auth_enable = yes<br />
smtpd_sasl_security_options = noanonymous<br />
broken_sasl_auth_clients = yes</em></p>
<p><em>smtpd_recipient_restrictions =<br />
permit_sasl_authenticated,<br />
permit_mynetworks,<br />
reject_unauth_destination</em><br />
NB, back in terminal do this:</p>
<p><em>rm -r /var/run/saslauthd/<br />
mkdir -p /var/spool/postfix/var/run/saslauthd<br />
ln -s /var/spool/postfix/var/run/saslauthd /var/run<br />
chgrp sasl /var/spool/postfix/var/run/saslauthd<br />
adduser postfix sasl</em></p>
<p>Also, <a href="http://wiki.debian.org/PostfixAndSASL">copy other pam group to smtp</a>:<strong><em></em></strong></p>
<p><strong><em><br />
cd /etc/pam.d<br />
cp other smtp</em></strong></p>
<p>Restart and go:</p>
<p>/etc/init.d/postfix restart<br />
/etc/init.d/saslauthd start</p>
<p>Test your config by telnet-ing in:<br />
<strong><em>telnet localhost smtp</em></strong><br />
Trying 80.237.145.96&#8230;<br />
Connected to jimmy.co.at.<br />
Escape character is &#8216;^]&#8217;.<br />
220 kitana.jimmy.co.at ESMTP Mailserver<br />
<em>ehlo reptile.g-tec.co.at</em><br />
250-kitana.jimmy.co.at<br />
250-PIPELINING<br />
250-SIZE 10240000<br />
250-VRFY<br />
250-ETRN<br />
250-AUTH NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5<br />
250-AUTH=NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5<br />
250 8BITMIME<br />
<em>AUTH PLAIN amltbXkAamltbXkAcmVhbC1zZWNyZXQ=</em><br />
235 Authentication successful</p>
<p>Or maybe not successful!!!!<br />
VIP!!!!!!!!!!! May get an error in /var/log/mail.log with &#8220;<a href="http://marc.info/?l=postfix-users&amp;m=124265630126767&amp;w=2"><strong>warning: SASL authentication failure: no secret in database</strong></a>&#8220;.</p>
<p>In this case you need to set up a user and pass for SASL as follows:<br />
<a href="http://www.gsp.com/cgi-bin/man.cgi?section=8&amp;topic=saslpasswd2">saslpasswd2</a> -f /etc/sasldb2 -u yourdomain.com paul</p>
<p>Another error is &#8220;<strong>warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory</strong>&#8220;.</p>
<p>This is <a href="http://enc.com.au/myscripts/postfixmysql.html">solved here</a>, READ IT!</p>
<blockquote><p>In /etc/init.d/postfix,  around line 43 there is a list of files that are copied from their real directories into the chroot. Change the line so it looks like:<br />
FILES=&#8221;etc/localtime etc/services etc/resolv.conf etc/hosts etc/nsswitch.conf etc/sasldb2&#8243;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/installing-imap-smtp-postfix-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing BIND Server</title>
		<link>http://www.pokeroconnor.com/installing-bind-server/</link>
		<comments>http://www.pokeroconnor.com/installing-bind-server/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 13:07:03 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=271</guid>
		<description><![CDATA[The following are the best resources I could find on installing a BIND (9) server. I installed on Debian Lenny, but the principles of zone files etc are universal. I&#8217;ll also detail (somewhat) the steps to installing a BIND DNS server, and some of the common and annoying issues you may come across &#8211; damn [...]]]></description>
			<content:encoded><![CDATA[<p>The following are the best resources I could find on installing a BIND (9) server. I installed on Debian Lenny, but the principles of zone files etc are universal. I&#8217;ll also detail (somewhat) the steps to installing a BIND DNS server, and some of the common and annoying issues you may come across &#8211; damn you AppArmor!!!</p>
<p>For starters, here&#8217;s <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-bind-zone.html">Zone files info</a>. Zones and zone files is probably the most fundamental concept you need to understand when starting BIND/DNS use. Very basically, a zone in DNS terms is what you might in other conversations call a domain, sub-domain or url &#8211;  e.g. pokeroconnor.com is a zone, sub.pokeroconnor.com is a zone, poker is a zone etc. Each zone requires &#8220;definition&#8221; if you will, in named.conf, and<strong> forward and reverse zone files</strong>. A forward zone file for pokeroconnor.com defines forward name resolution, e.g. pokeroconnor.com to octal IP addresses (123.20.33.122). <a href="http://www.philchen.com/2007/04/04/configuring-reverse-dns">Reverse zone files</a> then do the opposite (basically), providing octal -&gt; name resolution.</p>
<p>In zone files you need to be aware of the following notation:</p>
<ul>
<li>SOA &#8211; start of authority</li>
<li>IN &#8211; internet record</li>
<li>MX &#8211; mail record</li>
<li>NS &#8211; name server</li>
<li>A &#8211; A class address (in octal) e.g. 111.2.3.44</li>
<li>CNAME &#8211; really an alias for another zone e.g. if poker.me.com is a CNAME record for me.com, requests for poker.me.com resolve to me.com.</li>
</ul>
<p>This is vital &#8211; <strong>every time you edit a zone file, you must increment (or change) the serial value. </strong>Otherwise your changes won&#8217;t get detected by BIND, and apparently its a very common source of errors. The common format of serial is e.g. 2009092201 &#8211; yes its the date, in year, month, day followed by the increment on that date, in this case 01. Of course you can have what you want here, just be sure to change it every time the file changes. More info <a href="http://uw714doc.sco.com/en/NET_tcpip/dnsN.main.html">here</a>, and the <a href="http://books.google.com/books?id=t6PvM1kbUk4C&amp;printsec=frontcover&amp;dq=bind+more+than+one+domain+in+%22reverse+mapping%22&amp;source=gbs_similarbooks_s&amp;cad=1#v=onepage&amp;q=bind%20more%20than%20one%20domain%20in%20%22reverse%20mapping%22&amp;f=false">definite work on BIND</a>.</p>
<p>Then, to actually install Bind and setup your own nameservers, best links I could find are <a href="http://www.thinkdebian.org/archives/343">this</a> and <a href="http://www.dmo.ca/blog/20081009143754/">this basic one</a>. Also install the dnsutils package. Important things to note are that it is a VERY good idea to setup bind/named to run in  a <a href="http://www.falkotimme.com/howtos/debian_bind_chroot/">chroot &#8216;jail&#8217;</a>. This is so that if someone hacks your bind install, they only have access to that particular app. Once you&#8217;ve followed these steps, e.g. install bind, setup chroot user, create zone files and configure named.conf etc, you can then cross your fingers and restart bind. Best place to check for errors of course is in your <strong>/var/log/syslog</strong>, so check it. I had a particularly annoying and extremely frustrating problem&#8230;I had everything installed and chrooted, zone files created, everything in its proper place, but bind would not start. I could stop it, but not start it. When I checked syslog, I saw errors similar to this:</p>
<p><strong><em>named[22070]: zone 100.11.45.in-addr.arpa/IN: loading from master file 100.11.45.in-addr.arpa failed: file not found</em></strong></p>
<p>Basically saying that the reverse zone files were not found&#8230;but they were there!! They were in the /var/lib/named/etc/bind directory as they should be, so how can the system be reporting them as not found??? It didn&#8217;t make ANY sense. Until that is, I eventually found <a href="http://ubuntuforums.org/archive/index.php/t-735188.html">this</a>. If you run debian, I strongly suggest you check out that link. There is a package called AppArmor, which does what a chroot jail does. In other words, it restricts the access and rights of certain apps, and of course named is one of those apps it restricts!! <strong>The system couldn&#8217;t find the files that were there, because the named user was only allowed access to certain directories specified by AppArmor, and /var/lib/named/etc/bind was not one of them</strong>. So, simply doing<em> apt-get &#8211;purge apparmor </em>and restarting bind solved the problem. That was the hardest to solve error &#8211; I would recommend checking whether you have apparmor installed on your box, and if you do, and you don&#8217;t knowingly use it, then remove it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/installing-bind-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locate: command not found error</title>
		<link>http://www.pokeroconnor.com/locate-command-not-found-error/</link>
		<comments>http://www.pokeroconnor.com/locate-command-not-found-error/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 21:16:30 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=264</guid>
		<description><![CDATA[I just recently did a fresh install of Debian Lenny, but when I tried to locate something, I got the following error:
-bash: locate: command not found
This is because you need to separately install locate, or even better, mlocate which is much faster apparently.
Doing this is simple, you just need to do 2 things&#8230;
Firstly, apt-get install [...]]]></description>
			<content:encoded><![CDATA[<p>I just recently did a fresh install of Debian Lenny, but when I tried to <strong><em>locate</em></strong> something, I got the following error:</p>
<p>-bash: locate: command not found</p>
<p>This is because you need to separately install locate, or even better, mlocate which is much faster <a href="http://forums.debian.net/viewtopic.php?f=10&amp;t=37953">apparently</a>.</p>
<p>Doing this is simple, you just need to do 2 things&#8230;</p>
<p>Firstly, <strong>apt-get install mlocate </strong>to<strong> </strong>grab and install the mlocate stuff. Finally, <em>you must run</em> the <strong>updatedb</strong> command.</p>
<p>Viola, that&#8217;s it, short and sweet, now you can <strong>locate</strong> away!</p>
<p>Also worth mentioning is the purge option with apt-get, e.g.<strong><em> apt-get remove app_name &#8211;purge</em></strong>, which completely removes an application and all its configuration files. Or if you want to cleanup after removing an application, run <strong><em>apt-get clean</em></strong>.</p>
<div><span style="font-family: Arial, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"><span style="line-height: normal; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br />
</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/locate-command-not-found-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
