<?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>Reinforce Media, LLC &#187; Server Management</title>
	<atom:link href="http://reinforcemedia.com/category/server-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://reinforcemedia.com</link>
	<description></description>
	<lastBuildDate>Fri, 26 Feb 2010 01:00:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Apache, PHP, MySQL on my Macbook Pro</title>
		<link>http://reinforcemedia.com/2010/02/25/installing-apache-php-mysql-on-my-macbook-pro/</link>
		<comments>http://reinforcemedia.com/2010/02/25/installing-apache-php-mysql-on-my-macbook-pro/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 01:00:58 +0000</pubDate>
		<dc:creator>Matt Bernier</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Server Management]]></category>
		<category><![CDATA[apache php mysql]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[mysql server]]></category>
		<category><![CDATA[mysql socket]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[sessions]]></category>
		<category><![CDATA[tmp]]></category>
		<category><![CDATA[virtual hosts]]></category>

		<guid isPermaLink="false">http://reinforcemedia.com/?p=189</guid>
		<description><![CDATA[I am used to installing these on CentOS.  I did it so many times, I just wrote a script to do it. Simple!
However with Mac OSX and MacPorts, I was having trouble.
I installed MacPorts and then ran through the installers for Apache2, PHP5, and MySQL5 (including the MySQL server)
Set up my http conf file with [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>I am used to installing these on CentOS.  I did it so many times, I just wrote a script to do it. Simple!</p>
<p>However with Mac OSX and MacPorts, I was having trouble.</p>
<p>I installed MacPorts and then ran through the installers for Apache2, PHP5, and MySQL5 (including the MySQL server)</p>
<p>Set up my http conf file with virtual hosts and this is where everything stopped.  I could not get a page to load, and if I did get one to load it would not connect to MySQL.</p>
<p>The problem was my mysql socket. So I made this change:</p>
<p style="padding-left: 30px;">/opt/local/var/run/mysql5/mysqld.sock</p>
<p>Then, sessions wouldn&#8217;t work, so I had to do two things:</p>
<ol>
<li>Set the permissions of /private/tmp to 777</li>
<li>Change the php.ini setting for session.save_path to &#8220;/private/tmp&#8221;</li>
</ol>
<p>Once these were done, I was able to load a page and connect to MySQL.</p><!-- sphereit end --><span style="margin-bottom:40px; border-bottom:none;"><a class="iconsphere" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://reinforcemedia.com/2010/02/25/installing-apache-php-mysql-on-my-macbook-pro/')" href="http://www.sphere.com/search?q=sphereit:http://reinforcemedia.com/2010/02/25/installing-apache-php-mysql-on-my-macbook-pro/">Sphere: Related Content</a></span><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://reinforcemedia.com/2010/02/25/installing-apache-php-mysql-on-my-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter OAuth: &#8220;401 Unauthorized&#8221; &amp; “Failed to validate oauth signature and token&#8221;</title>
		<link>http://reinforcemedia.com/2009/12/22/twitter-oauth-401-unauthorized-%e2%80%9cfailed-to-validate-oauth-signature-and-token/</link>
		<comments>http://reinforcemedia.com/2009/12/22/twitter-oauth-401-unauthorized-%e2%80%9cfailed-to-validate-oauth-signature-and-token/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 05:23:50 +0000</pubDate>
		<dc:creator>Matt Bernier</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Server Management]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[code path]]></category>
		<category><![CDATA[first response]]></category>
		<category><![CDATA[first thought]]></category>
		<category><![CDATA[friend jason]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[quality results]]></category>
		<category><![CDATA[signature]]></category>
		<category><![CDATA[single step]]></category>
		<category><![CDATA[support requests]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://reinforcemedia.com/?p=153</guid>
		<description><![CDATA[I pushed a new version of Twindicate.com live two days ago.  That night I was up till 3:45am trying to figure out why OAuth was not working at all.  All I could tell was that I was getting a &#8220;401 Unauthorized&#8221; response from Twitter.  I was completely torn apart by this, because I have put [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>I pushed a new version of <a target="_blank" title="Twindicate" href="http://twindicate.com">Twindicate</a>.com live two days ago.  That night I was up till 3:45am trying to figure out why OAuth was not working at all.  All I could tell was that I was getting a &#8220;401 Unauthorized&#8221; response from Twitter.  I was completely torn apart by this, because I have put hundreds of hours into Twindicate. I honestly thought that Twitter had shut me off without telling me (sorry Twitter).</p>
<p>I tried regenerating my consumer keys, I output lines of debug code at every single step along the oauth code path, I stayed up late two night in a row. I almost cried, I was really choking it back there for a little while.  I searched google with no quality results helping me figure out what the issue was.</p>
<p>After 2 days and 4 seperate support requests with Twitter were completely ignored or immediate closed, I went back to the code.  I was actually talking with my friend <a target="_blank" href="http://www.jasonrowland.com/">Jason</a> and saw the &#8220;body&#8221; of the response was encoded. I pulled it out of the response, output it to the page and found the error: &#8220;Failed to validate oauth signature and token&#8221;.  My first response was, &#8220;great, tell me something I didn&#8217;t know&#8221;.</p>
<p><!--Begin Post-->So, I went back to Google and searched for this error. One of the first results was, <a target="_blank" title="Permanent Link to “Failed to validate oauth signature and token” on Twitter Oauth – Check Your Clock!" href="http://blainegarrett.com/2009/07/14/failed-to-validate-oauth-signature-and-token-on-twitter-oauth-check-your-cloc/">“Failed to validate oauth signature and token” on Twitter Oauth – Check Your Clock!</a> My first thought, &#8220;Ah crap!&#8221;.</p>
<p>I checked my clock, it was about 11 hours off. So I fixed it, using the instructions in the <a target="_blank" href="http://www.go2linux.org/how-to-set-the-date-and-time-in-linux">Setting the time of your system</a> article.</p>
<p>I am glad that the solution was simple, frustrated that Twitter was not helpful with their support, and sad that my application I spent so much time on is so dependent on something this silly.</p><!-- sphereit end --><span style="margin-bottom:40px; border-bottom:none;"><a class="iconsphere" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://reinforcemedia.com/2009/12/22/twitter-oauth-401-unauthorized-%e2%80%9cfailed-to-validate-oauth-signature-and-token/')" href="http://www.sphere.com/search?q=sphereit:http://reinforcemedia.com/2009/12/22/twitter-oauth-401-unauthorized-%e2%80%9cfailed-to-validate-oauth-signature-and-token/">Sphere: Related Content</a></span><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://reinforcemedia.com/2009/12/22/twitter-oauth-401-unauthorized-%e2%80%9cfailed-to-validate-oauth-signature-and-token/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Server Time is WAY off</title>
		<link>http://reinforcemedia.com/2009/11/12/my-server-time-is-way-off/</link>
		<comments>http://reinforcemedia.com/2009/11/12/my-server-time-is-way-off/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:16:37 +0000</pubDate>
		<dc:creator>Matt Bernier</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Server Management]]></category>
		<category><![CDATA[Useful Tools]]></category>
		<category><![CDATA[automatic time]]></category>
		<category><![CDATA[best solution]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[ntpdate]]></category>
		<category><![CDATA[step time]]></category>
		<category><![CDATA[time adjustment]]></category>
		<category><![CDATA[time preferences]]></category>
		<category><![CDATA[time server]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[timing issue]]></category>

		<guid isPermaLink="false">http://reinforcemedia.com/?p=133</guid>
		<description><![CDATA[Well, it was this morning.  I didn&#8217;t realize it until I went to schedule a blog post for 12 hours later and it published immediately. I was concerned and actually went to blame WordPress first (I&#8217;m really not sure why).  However, when I was looking at the time preferences in the General settings area of [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>Well, it was this morning.  I didn&#8217;t realize it until I went to schedule a blog post for 12 hours later and it published immediately. I was concerned and actually went to blame <a target="_blank" title="WordPress" href="http://bit.ly/5O4AGt">WordPress</a> first (I&#8217;m really not sure why).  However, when I was looking at the time preferences in the General settings area of the site I noticed something really strange.  My timezone was correct, but the date WP was showing was way off. This meant that my CentOs5 server&#8217;s time was way off.</p>
<p>I did a little research and found an article called &#8220;<a target="_blank" href="http://www.go2linux.org/how-to-set-the-date-and-time-in-linux">Setting the time of your system</a>&#8220;.  They gave me some good solutions on how to fix the issue, after reading it I was ready to go.  I tried a couple things in the order they said and found myself a little confused. So naturally, I started trying things till they worked.  This is not always the best solution, but I figured I could deal with a timing issue if I messed it up worse than it was.</p>
<p>For my CentOs 5 server I did the following, which actually worked and set the time perfectly.</p>
<p>First, I checked the date the server had, which turned out to be way off.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># date</span></div>
</li>
<li class="li1">
<div class="de1">Thu Nov <span class="nu0">12</span> <span class="nu0">23</span>:<span class="nu0">56</span>:<span class="nu0">41</span> MST <span class="nu0">2009</span></div>
</li>
</ol>
</div>
<p>Then I looked to see if ntpd (the automatic time adjustment service) was running, it was.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># service ntpd status</span></div>
</li>
<li class="li1">
<div class="de1">ntpd <span class="br0">&#40;</span>pid <span class="nu0">12019</span><span class="br0">&#41;</span> is running&#8230;</div>
</li>
</ol>
</div>
<p>I tried ntpdate to reset the time on the server, but it complained about the socket being in use.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># ntpdate 129.6.15.28</span></div>
</li>
<li class="li1">
<div class="de1"><span class="nu0">12</span> Nov <span class="nu0">23</span>:<span class="nu0">57</span>:<span class="nu0">28</span> ntpdate<span class="br0">&#91;</span><span class="nu0">12045</span><span class="br0">&#93;</span>: the NTP socket is <span class="kw1">in</span> use, exiting</div>
</li>
</ol>
</div>
<p>My solution was to stop ntpd and then run ntpdate again, which worked!</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># service ntpd stop</span></div>
</li>
<li class="li1">
<div class="de1">Shutting down ntpd: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#91;</span> &nbsp;OK &nbsp;<span class="br0">&#93;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># ntpdate 129.6.15.28</span></div>
</li>
<li class="li1">
<div class="de1"><span class="nu0">12</span> Nov <span class="nu0">07</span>:<span class="nu0">25</span>:<span class="nu0">10</span> ntpdate<span class="br0">&#91;</span><span class="nu0">12063</span><span class="br0">&#93;</span>: step <span class="kw1">time</span> server <span class="nu0">129.6</span><span class="nu0">.15</span><span class="nu0">.28</span> offset <span class="nu0">-59562.023808</span> sec</div>
</li>
</ol>
</div>
<p>A simple restart of the ntpd service and the time was correct!</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># service ntpd start</span></div>
</li>
<li class="li1">
<div class="de1">Starting ntpd: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span> &nbsp;OK &nbsp;<span class="br0">&#93;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># date</span></div>
</li>
<li class="li1">
<div class="de1">Thu Nov <span class="nu0">12</span> <span class="nu0">07</span>:<span class="nu0">25</span>:<span class="nu0">20</span> MST <span class="nu0">2009</span></div>
</li>
</ol>
</div>
<p>So, the solution was to do the following steps:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># service ntpd stop</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># ntpdate 129.6.15.28</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># service ntpd start</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#date</span></div>
</li>
</ol>
</div>
<p>I added &#8220;date&#8221; on the end, because you want to verify that the time actually did reset.  Best of Luck!</p><!-- sphereit end --><span style="margin-bottom:40px; border-bottom:none;"><a class="iconsphere" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://reinforcemedia.com/2009/11/12/my-server-time-is-way-off/')" href="http://www.sphere.com/search?q=sphereit:http://reinforcemedia.com/2009/11/12/my-server-time-is-way-off/">Sphere: Related Content</a></span><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://reinforcemedia.com/2009/11/12/my-server-time-is-way-off/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
