<?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>Millcreek Systems, Inc.</title>
	<atom:link href="http://www.millcreeksys.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.millcreeksys.com</link>
	<description>Linux Server Management Experts</description>
	<lastBuildDate>Tue, 21 May 2013 21:43:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Amazon AWS reduces prices again!</title>
		<link>http://www.millcreeksys.com/amazon-aws-reduces-prices-again/</link>
		<comments>http://www.millcreeksys.com/amazon-aws-reduces-prices-again/#comments</comments>
		<pubDate>Fri, 01 Feb 2013 15:09:41 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[EC2]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=490</guid>
		<description><![CDATA[Amazon has reduced their AWS prices again. Hourly instances have been reduced by anywhere from 2% to 30% depending on the instance type and location. Outbound bandwidth prices have been reduced anywhere from 26% to 83% depending on the location you&#8217;re using. You can see read their announcement for all of the details.]]></description>
				<content:encoded><![CDATA[<p>Amazon has reduced their AWS prices again.  Hourly instances have been reduced by anywhere from 2% to 30% depending on the instance type and location.  Outbound bandwidth prices have been reduced anywhere from 26% to 83% depending on the location you&#8217;re using.<br />
You can see read <a href="http://aws.typepad.com/aws/2013/02/ec2s-m3-global-reduced-ec2-bandwidth.html">their announcement</a> for all of the details.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/amazon-aws-reduces-prices-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon Lowers S3 pricing</title>
		<link>http://www.millcreeksys.com/amazon-lowers-s3-pricing/</link>
		<comments>http://www.millcreeksys.com/amazon-lowers-s3-pricing/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 12:08:34 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=448</guid>
		<description><![CDATA[It seems like Amazon is always giving you more bang for your buck.  Today, they reduced S3 pricing.  Here is how they&#8217;re changing effective Feb. 1:                           Old         New First 1TB           $0.140    $0.125 Next 49TB    [...]]]></description>
				<content:encoded><![CDATA[<p>It seems like Amazon is always giving you more bang for your buck.  Today, they reduced S3 pricing.  Here is how they&#8217;re changing effective Feb. 1:</p>
<p><span style="font-family: verdana; font-size: x-small;">                          Old         New<br />
First 1TB           $0.140    $0.125<br />
Next 49TB         $0.125    $0.110<br />
Next 450TB       $0.110    $0.095<br />
Next 500TB       $0.095    $0.090<br />
Next 4000TB     $0.080    $0.080 (no change)<br />
Over 5000TB     $0.055    $0.055 (no change)</span></p>
<p>Here is where you can get full <a href="http://aws.amazon.com/s3/#pricing">Amazon S3 price details for all regions</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/amazon-lowers-s3-pricing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon AWS announces Support for DynamoDB</title>
		<link>http://www.millcreeksys.com/amazon-aws-announces-support-for-dynamodb/</link>
		<comments>http://www.millcreeksys.com/amazon-aws-announces-support-for-dynamodb/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 13:05:06 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[DynamoDB]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=436</guid>
		<description><![CDATA[I logged into one of my AWS accounts this morning and what did I see?  A brand new feature staring at me! As it says, DynamoDB is a &#8220;Fast, Predictable, Highly-Scalable NoSQL Data Store&#8221;  Which really means a highly available key-value store.  Amazon has been using DynamoDB for the underlying storage technology for core parts [...]]]></description>
				<content:encoded><![CDATA[<p>I logged into one of my AWS accounts this morning and what did I see?  A brand new feature staring at me!</p>
<p><a href="http://www.millcreeksys.com/wp-content/uploads/2012/01/dynamodb.png"><img class="alignnone size-full wp-image-440" title="dynamodb" src="http://www.millcreeksys.com/wp-content/uploads/2012/01/dynamodb.png" alt="" width="287" height="88" /></a></p>
<p>As it says, DynamoDB is a &#8220;Fast, Predictable, Highly-Scalable NoSQL Data Store&#8221;  Which really means a highly available key-value store.  Amazon has been using DynamoDB for the underlying storage technology for core parts of amazon.com for years.</p>
<p>Here&#8217;s Amazon&#8217;s page on <a href="http://aws.amazon.com/DynamoDB/">DynamoDB</a>.</p>
<p>You can read more technical details about DynamoDB here &#8211; <a href="http://www.allthingsdistributed.com/2007/10/amazons_dynamo.html">http://www.allthingsdistributed.com/2007/10/amazons_dynamo.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/amazon-aws-announces-support-for-dynamodb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to configure your Postfix server to relay email through Amazon Simple Email Service (SES)</title>
		<link>http://www.millcreeksys.com/how-to-configure-your-postfix-server-to-relay-email-through-amazon-simple-email-service-ses/</link>
		<comments>http://www.millcreeksys.com/how-to-configure-your-postfix-server-to-relay-email-through-amazon-simple-email-service-ses/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 18:30:51 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SES]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=391</guid>
		<description><![CDATA[Amazon recently announced SMTP Support for the Amazon Simple Email Service (SES) which is very cool. Now you can configure your server to send email through it regardless of what platform your site is built in (my previous post was only relevant to PHP servers)  There are 3 main things you need to do to [...]]]></description>
				<content:encoded><![CDATA[<p>Amazon recently announced <a href="http://aws.typepad.com/aws/2011/12/new-smtp-support-for-the-simple-email-service-ses.html">SMTP Support for the Amazon Simple Email Service (SES)</a> which is very cool. Now you can configure your server to send email through it regardless of what platform your site is built in (<a href="http://www.millcreeksys.com/2011/01/28/get-up-and-running-quickly-with-amazon-ses-on-your-php-website/">my previous post was only relevant to PHP servers</a>)  There are 3 main things you need to do to configure your Postfix server to relay email through SES: Verify a sender email address, create an IAM user for SMTP and configure your server to use SES.</p>
<h1><strong>Verify a sender email address</strong></h1>
<ol>
<li>In the SES section of the AWS Management Console, click on &#8220;Verified Senders&#8221;:<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify0.png"><img class="size-full wp-image-392 aligncenter" title="Verified Senders" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify0.png" alt="" width="234" height="193" /></a></li>
<li>Then click on the &#8220;Verify a New Sender&#8221; button:<br />
<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify1.png"><img class="size-full wp-image-393 aligncenter" title="verify1" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify1.png" alt="" width="295" height="172" /></a></li>
<li>Enter the Sender&#8217;s Email Address and click &#8220;Submit&#8221;:<br />
<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify2.png"><img class="size-full wp-image-394 aligncenter" title="Verified Sender" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify2.png" alt="" width="564" height="270" /></a></li>
<li>Then you&#8217;ll see the confirmation message:<br />
<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify3.png"><img class="size-full wp-image-395 aligncenter" title="verify3" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/verify3.png" alt="" width="580" height="242" /></a></li>
<li>Go to that email account and click on the link Amazon will email to you to confirm the address.</li>
</ol>
<h1><strong>Create IAM Credentials</strong></h1>
<ol>
<li>In the SES section of the AWS Management Console, click on &#8220;SMTP Settings&#8221;:<br />
<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials0.png"><img class="size-full wp-image-396 aligncenter" title="credentials0" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials0.png" alt="" width="251" height="232" /></a></li>
<li>Click on the button &#8220;Create My SMTP Credentials&#8221;:<br />
<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials1.png"><img class="size-full wp-image-397 aligncenter" title="credentials1" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials1.png" alt="" width="397" height="216" /></a></li>
<li>Choose a User Name and click &#8220;Create&#8221;:<br />
<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials2.png"><img class="size-full wp-image-398 aligncenter" title="credentials2" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials2.png" alt="" width="711" height="292" /></a></li>
<li>Save the SMTP Username and SMTP Password that are displayed . We&#8217;ll need them when we&#8217;re configuring the server.<br />
<a href="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials3.png"><img class="size-full wp-image-399 aligncenter" title="credentials3" src="http://www.millcreeksys.com/wp-content/uploads/2011/12/credentials3.png" alt="" width="713" height="376" /></a></li>
</ol>
<h1><strong>Configure the server</strong></h1>
<p>Now for the fun part. Here I assume you&#8217;re running Postfix as the MTA on your server.</p>
<ol>
<li>Install stunnel:<br />
<code>apt-get install stunnel</code></li>
<li>Add these lines to <code>/etc/stunnel/stunnel.conf</code> and make sure it starts properly (you may have to edit <code>/etc/default/stunnel so that it starts automatically on boot</code>):<br />
<code>[smtp-tls-wrapper]<br />
accept = 127.0.0.1:1125<br />
client = yes<br />
connect = email-smtp.us-east-1.amazonaws.com:465</code></li>
<li>Add this line to <code>/etc/postfix/sender_dependent_relayhost</code>:<br />
<code>somesender@millcreeksys.com  127.0.0.1:1125</code></li>
<li>Generate the hashfile with this command:<br />
<code>postmap /etc/postfix/sender_dependent_relayhost</code></li>
<li>Add this line to <code>/etc/postfix/password</code>:<br />
<code>127.0.0.1:1125 &lt;your SMTP Username&gt;:&lt;your SMTP Password&gt;</code></li>
<li>Fix the permissions on <code>/etc/postfix/password</code><br />
<code>chown root:root /etc/postfix/password<br />
chmod 600 /etc/postfix/password</code></li>
<li>Generate the hashfile with this command:<br />
<code>postmap /etc/postfix/password<code></code></code></li>
<li>Add these lines to <code>/etc/postfix/main.cf</code>:<br />
<code>sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent_relayhost<br />
smtp_sasl_auth_enable = yes<br />
smtp_sasl_password_maps = hash:/etc/postfix/password<br />
smtp_sasl_security_options =</code></li>
<li>Load the new configuration with this command:<br />
<code>postfix reload</code></li>
</ol>
<h1><strong>Additional Notes</strong></h1>
<p>After setting it up, look closely at the mail logs on your server to verify that they are being delivered properly.  As I found through testing, in certain misconfigurations your email will not be delivered and will not remain in the queue on the server.  The mail logs are the only place that will indicate that delivery is failing.</p>
<p>If you need to add other senders in the future, edit <code>/etc/postfix/sender_dependent_relayhost</code> accordingly then run:<br />
<code>postmap /etc/postfix/sender_dependent_relayhost<br />
postfix reload</code></p>
<p>The reason for using sender_dependent_relayhost is because you want to specify what email gets sent through SES. If you try to send all email from the server through SES, you&#8217;ll probably have some end up going into a black hole. When I was testing this previous to using sender_dependent_relayhost, I didn&#8217;t have my root@ email address verified and so emails ended up bouncing back, then bouncing into oblivion never to be seen again (because it would try to relay email to root@ through SES too.)</p>
<p>http://www.millcreeksys.com/how-to-configure-your-postfix-server-to-relay-email-through-amazon-simple-email-service-ses/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/how-to-configure-your-postfix-server-to-relay-email-through-amazon-simple-email-service-ses/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Quick programming tip for servers behind load balancers</title>
		<link>http://www.millcreeksys.com/quick-programming-tip-for-servers-behind-load-balancers/</link>
		<comments>http://www.millcreeksys.com/quick-programming-tip-for-servers-behind-load-balancers/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 16:31:48 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[ELB]]></category>
		<category><![CDATA[LoadBalancers]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=369</guid>
		<description><![CDATA[If you&#8217;re using PHP and wanting to check to make sure the incoming connections came over HTTPS, you are probably using the $_SERVER['HTTPS'] variable. The problem is, if your servers are behind a load balancer which handles SSL encryption for you, this method of checking won&#8217;t work.  Fortunately, there are other headers added by the [...]]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;re using PHP and wanting to check to make sure the incoming connections came over HTTPS, you are probably using the <code>$_SERVER['HTTPS']</code> variable.</p>
<p>The problem is, if your servers are behind a load balancer which handles SSL encryption for you, this method of checking won&#8217;t work.  Fortunately, there are other headers added by the load balancer you can use to detect SSL.  They are the <code>X-Forwarded-*</code> headers.</p>
<p>For example:<br />
<code>$headers["X-Forwarded-For"] == 123.45.67.89</code> (because <code>$_SERVER['REMOTE_ADDR']</code> is going to give you the load balancer&#8217;s IP address)<br />
<code>$headers["X-Forwarded-Port"] == 443</code><br />
<code>$headers["X-Forwarded-Proto"] == https</code></p>
<p>These headers should work with all loadbalancers, including Amazon&#8217;s ELB on EC2.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/quick-programming-tip-for-servers-behind-load-balancers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server maintenance tonight</title>
		<link>http://www.millcreeksys.com/server-maintenance-tonight/</link>
		<comments>http://www.millcreeksys.com/server-maintenance-tonight/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 16:42:34 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=361</guid>
		<description><![CDATA[I’ll be performing maintenance on servers Tonight (Feb. 25) between 10pm and midnight (Mountain Time.)  Many servers will require a reboot due to an OpenSSL kernel update.  Other updates will be applied, but more detail on the OpenSSL vulnerability can be found here. The maximum expected downtime for each server is only a few minutes. [...]]]></description>
				<content:encoded><![CDATA[<p>I’ll be performing maintenance on servers Tonight (Feb. 25)  between 10pm and midnight (Mountain Time.)   Many servers will require a  reboot due to an OpenSSL kernel update.  Other updates will be applied, but more detail on the <a href="http://www.ubuntu.com/usn/usn-1064-1">OpenSSL vulnerability can be found here</a>.</p>
<p>The maximum expected downtime for each  server is only a few minutes.  Please email me if you have concerns or  questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/server-maintenance-tonight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server maintenance tomorrow</title>
		<link>http://www.millcreeksys.com/server-maintenance-tomorrow/</link>
		<comments>http://www.millcreeksys.com/server-maintenance-tomorrow/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 20:42:17 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=331</guid>
		<description><![CDATA[I&#8217;ll be performing maintenance on servers this Friday night (Feb. 4) between 10pm and midnight (Mountain Time.)  Many servers will require a reboot due to a kernel update. The maximum expected downtime for each server is only a few minutes. Please email me if you have concerns or questions.]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ll be performing maintenance on servers this Friday night (Feb. 4) between 10pm and midnight (Mountain Time.)   Many servers will require a reboot due to a kernel update.  The maximum expected downtime for each server is only a few minutes.  Please email me if you have concerns or questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/server-maintenance-tomorrow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get up and running quickly with Amazon SES on your php website</title>
		<link>http://www.millcreeksys.com/get-up-and-running-quickly-with-amazon-ses-on-your-php-website/</link>
		<comments>http://www.millcreeksys.com/get-up-and-running-quickly-with-amazon-ses-on-your-php-website/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 18:16:47 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[Info]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=335</guid>
		<description><![CDATA[Note: if you want to setup SES in a way that scales much better and functions even with non-PHP sites, please read this more recent HowTo: How to configure your Postfix server to relay email through Amazon Simple Email Service (SES) Here&#8217;s how you can start using Amazon&#8217;s new SES (Simple Email Service) without having [...]]]></description>
				<content:encoded><![CDATA[<hr />
<p>Note: if you want to setup SES in a way that scales much better and functions even with non-PHP sites, please read this more recent HowTo: <a href="http://www.millcreeksys.com/how-to-configure-your-postfix-server-to-relay-email-through-amazon-simple-email-service-ses/">How to configure your Postfix server to relay email through Amazon Simple Email Service (SES)</a></p>
<hr />
<br />
Here&#8217;s how you can start using Amazon&#8217;s new <a href="http://aws.typepad.com/aws/2011/01/introducing-the-amazon-simple-email-service.html">SES</a> (Simple Email Service) without having to actually implement it in the php of your website:</p>
<ul>
<li><a href="http://aws.amazon.com/developertools/Amazon-SES">Download Amazon&#8217;s SES scripts from here</a></li>
</ul>
<ul>
<li>Extract the files and create a new one named &#8220;aws-credentials&#8221; with your key data in it; for example:</li>
</ul>
<p><code>AWSAccessKeyId=022QF06E7MXBSH9DHM02<br />
AWSSecretKey=kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct</code></p>
<ul>
<li>Verify an email address to use with SES</li>
</ul>
<p><code>./ses-verify-email-address.pl -k ./aws-credentials -v someaddress@yourdomain.com<br />
</code></p>
<ul>
<li>Check the email account for the address you&#8217;re verifying and click on the provided link.</li>
</ul>
<ul>
<li>Send a test email:</li>
</ul>
<p><code>echo "This is only a test." | ./ses-send-email.pl -k ./aws-credentials -s "test subject for email" -f someaddress@yourdomain.com someaddress@yourdomain.com<br />
</code>(Note &#8211; Until you receive production access to Amazon SES, you can only send to addresses you have verified. You can <a href="http://aws.amazon.com/ses/fullaccessrequest/">request production access here</a>.)</p>
<ul>
<li>Edit the sendmail_path config in your php.ini as follows:</li>
</ul>
<p><code>sendmail_path = /path/to/ses-send-email.pl -k /path/to/aws-credentials -f someaddress@yourdomain.com -r<br />
</code></p>
<ul>
<li>Restart/reload Apache and that&#8217;s it!</li>
</ul>
<p>(Additional notes &#8211; The &#8220;From&#8221; address you set in your php.ini file will override any mail headers you set in php.  Sending will fail if you try to set the &#8220;From&#8221; header to an unverified address or when setting the &#8220;Reply-To&#8221; header at all in php.)</p>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/get-up-and-running-quickly-with-amazon-ses-on-your-php-website/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Facebook offers HTTPS option</title>
		<link>http://www.millcreeksys.com/facebook-offers-https-option/</link>
		<comments>http://www.millcreeksys.com/facebook-offers-https-option/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 16:42:47 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[session hijacking]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=325</guid>
		<description><![CDATA[It took a bit longer than I expected, but Facebook now offers the option for HTTPS all of the time. You can read the full details here: http://blog.facebook.com/blog.php?post=486790652130 Facebook has finally made the change, are you protecting your users?]]></description>
				<content:encoded><![CDATA[<p>It took a bit longer than I expected, but Facebook now offers the option for HTTPS all of the time.  You can read the full details here:</p>
<p><a href="http://blog.facebook.com/blog.php?post=486790652130">http://blog.facebook.com/blog.php?post=486790652130</a></p>
<p>Facebook has finally made the change, <a href="http://www.millcreeksys.com/2010/12/01/are-you-protecting-your-users-from-session-hijacking/">are you protecting your users?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/facebook-offers-https-option/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update your website directly from your git repository</title>
		<link>http://www.millcreeksys.com/update-your-website-directly-from-your-git-repository/</link>
		<comments>http://www.millcreeksys.com/update-your-website-directly-from-your-git-repository/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 16:31:09 +0000</pubDate>
		<dc:creator>Michael Jensen</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[git php]]></category>

		<guid isPermaLink="false">http://www.millcreeksys.com/?p=315</guid>
		<description><![CDATA[Here is a php script you can use to update your website from your git repository.  You can pass 2 parameters to it: &#8220;r&#8221; &#8211; revision you want checked out from git (r=head works also) &#8220;l&#8221; &#8211; number of log entries you want to view For example, if I was running it on this site [...]]]></description>
				<content:encoded><![CDATA[<p>Here is a <a href="http://www.millcreeksys.com/wp-content/uploads/2010/12/gitpull.phps" target="_blank">php script</a> you can use to update your website from your git repository.  You can pass 2 parameters to it:</p>
<ul>
<li>&#8220;r&#8221; &#8211; revision you want checked out from git (r=head works also)</li>
<li>&#8220;l&#8221; &#8211; number of log entries you want to view</li>
</ul>
<p>For example, if I was running it on this site here is what each URL would do:</p>
<ul>
<li><a href="http://www.millcreeksys.com/gitpull.php">/gitpull.php</a> &#8211; show current status and last 3 log entries (make no changes)</li>
<li><a href="http://www.millcreeksys.com/gitpull.php?l=15">/gitpull.php?l=15</a> &#8211; show current status and last 15 log entries (make no changes)</li>
<li><a href="http://www.millcreeksys.com/gitpull.php?r=f54f676">/gitpull.php?r=f54f676</a> &#8211; Checkout f54f676 version, show the last 3 log entries</li>
<li><a href="http://www.millcreeksys.com/gitpull.php?r=head&amp;l=20">/gitpull.php?r=head&amp;l=20</a> &#8211; Checkout HEAD version, show the last 20 log entries</li>
</ul>
<p>You need to make sure that the directory structure is owned by the HTTP daemon user (so that the files can be updated.)  It is best to run it initially from the command line as that user on the server to make sure everything is working properly.</p>
<p>One word of caution; you should restrict access to who can run this script (maybe with HTTP-Auth over HTTPS) because the script isn&#8217;t perfect and you don&#8217;t want to let anyone make changes to your site.  There are also certain security risks that are increased when you have your website files owned by the webserver user.  It is recommended that you only use this script in a protected environment.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 64px; width: 1px; height: 1px; overflow: hidden;">/gitpull.php &#8211; show current status and last 3 log entries (make no changes)</div>
]]></content:encoded>
			<wfw:commentRss>http://www.millcreeksys.com/update-your-website-directly-from-your-git-repository/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
