<?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>TheChrisD &#187; 500 Internal Server Error</title>
	<atom:link href="http://www.thechrisd.com/blog/tag/500-internal-server-error/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thechrisd.com</link>
	<description>The home of TheChrisD - an Irishman, geek, Aspie, attempted web developer, teddy bear hoarder, and gamer who still pays too much attention to the Pokémon series, and is not as much of a Halo fanboy as most Americans.</description>
	<lastBuildDate>Fri, 03 Sep 2010 23:26:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>500 &#8211; It&#8217;s so not the magic number</title>
		<link>http://www.thechrisd.com/blog/2008/08/18/500-its-so-not-the-magic-number</link>
		<comments>http://www.thechrisd.com/blog/2008/08/18/500-its-so-not-the-magic-number#comments</comments>
		<pubDate>Mon, 18 Aug 2008 11:42:33 +0000</pubDate>
		<dc:creator>TheChrisD</dc:creator>
				<category><![CDATA[My Sites]]></category>
		<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[500 Internal Server Error]]></category>
		<category><![CDATA[AdjustantReflex]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Blacknight]]></category>
		<category><![CDATA[Donncha O'Caoimh]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[open_basedir]]></category>
		<category><![CDATA[Wordbook]]></category>

		<guid isPermaLink="false">http://www.thechrisd.com/?p=278</guid>
		<description><![CDATA[500 is now officially the most annoying, most useless, and more stressful number of them all. Why? Because when you get a 500 HTTP status code, it screws up everything... Which is made even worse when you try to take a weekend off, and that's when it pops up...<hr /><strong><em>If you're reading this post, and it's not on <a href="http://www.thechrisd.com" target="_blank" rel="nofollow">my site</a> or on somewhere that is obviously related to me, then it was copied without my permission by scraping my RSS feed. Let me know!</em></strong>]]></description>
			<content:encoded><![CDATA[<p>500 is now officially the most annoying, most useless, and more stressful number of them all. Why? Because when you get a 500 HTTP status code, it screws up everything&#8230; Which is made even worse when you try to take a weekend off, and that&#8217;s when it pops up&#8230;</p>
<p>I think we all know by now that 500 means an Internal Server Error (given how much I&#8217;ve had to mention it recently). Usually it&#8217;s caused by the server you&#8217;re on being annoying and not working properly. In those cases it&#8217;s nothing you can do, so you need to get over it quickly. However, most other times it appears because the server doesn&#8217;t seem to like the way you lay out one of your system files, and then decides not to try and serve anything. Annoying!</p>
<p>A few months ago, Donncha shared with me his tactic of getting rid of site scraper bots for good with a little bait and trap. It all worked well back on GoDaddy, but ever since moving to Blacknight all of my .htaccess allow and deny records have thrown up 500 errors&#8230; Removing them solved the 500 problem, but alas not the scraper problem.</p>
<p>So, this morning, checking my quite large inbox of new mails (90% of which are new comment notifications) &#8211; I notice a little e-mail from Apache. Not the pizza place, but an Apache web server. Another site scraper banned. Didn&#8217;t phase me all too much, given how many of them had been caught over time. Onto Twitter, and I notice a little @reply from Reflex, sent Friday evening:</p>
<blockquote><p>@TheChrisD What up with your site?</p></blockquote>
<p>My first reaction was WTH? But as I open my admin panel, sure enough there&#8217;s a 500 error there. A little digging around later shows that my trap was doing its job in catching the spider and adding it&#8217;s deny order to my .htaccess.</p>
<p>Only problem is, not only did I remove the allow and deny base syntax, but either way it caused a 500 error no matter what! So, since Friday my site had been down all because of my attempts to stop my site being scraped&#8230;</p>
<p>The whole 500 issue is one of only two things that do annoy me quite a bit about Blacknight. The other being the problems with open_basedir, which prevent WordPress from auto-updating itself because it can&#8217;t seem to locate the installation folder&#8230;</p>
<p>Either way, once I get the weekend&#8217;s backlog of feeds out of the way, I can shoot off a little e-mail to the BN support team with my concerns. Unlike GoDaddy, they&#8217;ll get back to me on average within the hour &#8211; absolutely thrashing GoDaddy&#8217;s previous record of&#8230; 29 hours.</p>
<p><strong>PS:</strong> Before I forget, GoDaddy tried to auto-renew my hosting with them over the weekend, which thankfully failed <img src='http://www.thechrisd.com/wp-files/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Had they got away with renewing without any notification that they were going to charge my card, I would have reported them to my bank for Internet fraud!</p>
<p><strong>PPS:</strong> Looks like Wordbook fucked up when I tried to post this&#8230; Oh well, Facebook will import the &#8220;note&#8221; eventually anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thechrisd.com/blog/2008/08/18/500-its-so-not-the-magic-number/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Go away Daddy, I&#8217;m riding on a Black knight!</title>
		<link>http://www.thechrisd.com/blog/2008/08/11/go-away-daddy-im-riding-on-a-black-knight</link>
		<comments>http://www.thechrisd.com/blog/2008/08/11/go-away-daddy-im-riding-on-a-black-knight#comments</comments>
		<pubDate>Mon, 11 Aug 2008 15:43:03 +0000</pubDate>
		<dc:creator>TheChrisD</dc:creator>
				<category><![CDATA[My Sites]]></category>
		<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[500 Internal Server Error]]></category>
		<category><![CDATA[AdjustantReflex]]></category>
		<category><![CDATA[Alexia Golez]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[Blacknight]]></category>
		<category><![CDATA[Bluehost]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Gallery2]]></category>
		<category><![CDATA[hotlink]]></category>
		<category><![CDATA[Michele Neylon]]></category>
		<category><![CDATA[Minimus]]></category>
		<category><![CDATA[RPWS]]></category>
		<category><![CDATA[Statpress]]></category>
		<category><![CDATA[stuff]]></category>
		<category><![CDATA[support team]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://www.thechrisd.com/?p=270</guid>
		<description><![CDATA[Phew, the past few days have been very hectic and quite stressful... Moving hosting provider has never been a nice scenario for me, especially given how many times I've had to do it before, but at least now I've moved for the very ****ing last time! Since it was such an experience, it needs a full post :)<hr /><strong><em>If you're reading this post, and it's not on <a href="http://www.thechrisd.com" target="_blank" rel="nofollow">my site</a> or on somewhere that is obviously related to me, then it was copied without my permission by scraping my RSS feed. Let me know!</em></strong>]]></description>
			<content:encoded><![CDATA[<p>Phew, the past few days have been very hectic and quite stressful&#8230; Moving hosting provider has never been a nice scenario for me, especially given how many times I&#8217;ve had to do it before, but at least now I&#8217;ve moved for the very fucking last time! Since it was such an experience, it needs a full post <img src='http://www.thechrisd.com/wp-files/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, this whole thing started after <a href="http://golez.net/2008/07/31/moving-house/" target="_blank">Alexia</a> <a href="http://golez.net/2008/08/03/moved-to-blacknight-this-weekend/" target="_blank">moved</a> from the breaking-every-half-hour-crappy BlueHost to <a href="http://www.blacknight.com" target="_blank">Blacknight</a>. I had always wanted to have my site(s) hosted on an Irish server, but up until recently, it all seemed overpriced in comparison to what I could get on the huge American hosts. Either pay €4 a month for 1GB of space and 10GB of bandwidth, or pay $4.20 a month for 5GB space and 250GB bandwidth? I think the answer is obvious!</p>
<p>Blacknight had always had a special blog hosting package available that would have suited my needs (OK, well maybe not my disk space needs), but the only problem with it was that you could only have a single domain on it, and no sub-domains at all. Given I use stuff.thechrisd.com as my hotlinking domain, it didn&#8217;t cut it. Recently though, they <a href="http://blog.blacknight.com/new_site_new_plans_new_everyth.html" target="_blank">re-launched their service</a> with new packages and site and other lark. The new most basic package was roughly the same price (€4.95/month) that was I was currently paying to GoDaddy ($6.99/month), and still came with more than what I&#8217;d need: 10GB space, 100GB bandwidth and the usual extras. <a href="http://blog.blacknight.com/the_minimus_hardly_small.html" target="_blank">Not exactly &#8220;Minimus&#8221;</a>!</p>
<h2>Friday</h2>
<p>Right, so Friday afternoon, I bought myself a nice little one-year Minimus hosting package from Blacknight <img src='http://www.thechrisd.com/wp-files/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Things were looking up as I eventually uploaded my website backup to them, changed the configs, rerouted the domain DNS and everything. The RPWS site looked good, but I couldn&#8217;t really say the same for my site&#8230; Turns out I had made some changes since my backup from the end of July. A LOT of changes. Which led at first to some 500 errors, then to bigger and worse problems&#8230; I was beginning to think that this was going to turn into a hosting hell&#8230;</p>
<p>Now before you start thinking that I was all alone with a broken website, I have to commend the support services at Blacknight. There was always a very fast response from the team to my queries, and although I may have whined a bit about something, and I may have been a nuisance, their team always came through to attempt to help out. Seriously, I cannot stress how great their support team is.</p>
<p>Back to Friday, I was getting pressed for time, and couldn&#8217;t seem to fix the problems, so I had the DNS changed back to GoDaddy, with plans to re-attempt to transfer sometime next week. Which turned out to be today!</p>
<h2>Monday</h2>
<p>The first step I wanted to get done was to move the databases to Blacknight and get them setup and running before moving all the files over, so that I wouldn&#8217;t lose any Statpress logs, new comments (like what almost happen to one of Reflex&#8217;s comments on Friday!), and other things. All seemed to go according to plan, until the database connection errors started&#8230;</p>
<p>Onto the support team again just to make sure I wasn&#8217;t screwing up with the external options. Blacknight have the handy feature of allowing external hosts to access your databases, so I setup this option specifically for the move. Well, it seems that GoDaddy were having none of that, since the BN MySQL servers were getting no traffic from my GoDaddy site&#8230; Epic fail. Hence the few hours earlier where I had a filler page saying <em>&#8220;Gimme a few minutes while I sort out databases&#8221;</em>. Well, that kinda turned into a few hours&#8230;</p>
<p>I sent off a support mail to GoDaddy asking whether they allowed me to access other databases from my server, and whether they could turn it on or not for me. Realising though, that they&#8217;d take ages to get back to me, I went ahead and continued with making a new, more up-to-date backup of my site and uploading it to BN. Several hours later and everything is up to BN &#8211; and still no response from GoDaddy support!</p>
<h2>Finishing Touches</h2>
<p>There wasn&#8217;t really much else to do after uploading everything. Gallery was giving me a few errors on my site at first, and then was just giving notices, although I do have to blame that on the fact that I had left debug mode on (after the errors on Friday!), but that was soon sorted. Everything else looked fine, and as of now seems to work fine. All in all, today&#8217;s move was a LOT smoother than Friday&#8217;s!</p>
<h2>Overall Opinions</h2>
<p>So, based on this move, I&#8217;ve changed my mindset regarding a few things:</p>
<ul>
<li>Switching to a more local host is MUCH better, even if it may cost more or if you don&#8217;t get as good a deal as what you had before (judging by the fact it took only half an hour to upload all my files, while it took 3 hours to download them from GoDaddy!)</li>
<li>Try not to forget to turn debug mode off&#8230;</li>
<li>DNS can resolve either very fast or very slowly, depending on which you don&#8217;t want. When I wanted it to take a while earlier, it happened quickly&#8230;</li>
<li>Remember that your FTP client can hide your .htaccess on you&#8230;</li>
<li>GoDaddy support sucks balls. Seriously big, chocolate salty balls&#8230;</li>
<li><a href="http://twitter.com/micheleneylon" target="_blank">Michele Neylon</a> is one of the best CEOs there is <img src='http://www.thechrisd.com/wp-files/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>The DCU FTP proxy fails miserably when used with my FTP client <img src='http://www.thechrisd.com/wp-files/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
</ul>
<p>So yea, that&#8217;s about it. When you read this, try and remember it&#8217;s powered by an Irish web hosting company, that perform a lot better than the big, over-the-top American hosting providers.</p>
<p><strong>PS:</strong> The RPWS site is still as of now using the GoDaddy services. I still haven&#8217;t moved it yet, but then again it&#8217;s not the number one priority here!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thechrisd.com/blog/2008/08/11/go-away-daddy-im-riding-on-a-black-knight/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What in the name of heck&#8230;?</title>
		<link>http://www.thechrisd.com/blog/2008/05/14/what-in-the-name-of-heck</link>
		<comments>http://www.thechrisd.com/blog/2008/05/14/what-in-the-name-of-heck#comments</comments>
		<pubDate>Wed, 14 May 2008 02:11:44 +0000</pubDate>
		<dc:creator>TheChrisD</dc:creator>
				<category><![CDATA[My Sites]]></category>
		<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[500 Internal Server Error]]></category>
		<category><![CDATA[Firefox 3]]></category>
		<category><![CDATA[Googling]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[Windows Live Mail]]></category>
		<category><![CDATA[WP-Cache]]></category>

		<guid isPermaLink="false">http://www.thechrisd.com/blog/2008/05/14/what-in-the-name-of-heck</guid>
		<description><![CDATA[Alright, the past 12 hours really haven't been nice for me. Unexplained site goings-down are not nice at all. Especiall when you come back in a bit to find it still not working. And again, and again, and again.<hr /><strong><em>If you're reading this post, and it's not on <a href="http://www.thechrisd.com" target="_blank" rel="nofollow">my site</a> or on somewhere that is obviously related to me, then it was copied without my permission by scraping my RSS feed. Let me know!</em></strong>]]></description>
			<content:encoded><![CDATA[<p>Alright, the past 12 hours really haven&#8217;t been nice for me. Unexplained site goings-down are not nice at all. When you first see an error (which in my case happened to be a 500 Internal Server Error), you&#8217;d think to yourself, &quot;Oh it&#8217;s just a server hiccup, it&#8217;ll be back to normal in a bit&quot;. Then you come back in a bit to find it still not working.   <br />And again, and again, and again.</p>
<p>Anyway, it was about 3pm in the afternoon yesterday when this started. I did a little poking around and found out that FTP was still working, but no HTTP traffic was getting through. By half 3, I had fired off an e-mail to my hosting support guys asking if there was a problem with the server I&#8217;m on. Only problem with my support guys is that they say &quot;Please wait at least 24 hours for a response&quot;. Which doesn&#8217;t help for urgent stuff. The phone support might have helped a lot sooner, but I&#8217;d rather not have to pay huge over-inflated rates to make international calls just to get my $4 a month website back up and running quickly. The call would cost more than what I pay to keep this hosted&#8230;</p>
<p>Anyway, by the early evening, I had given up trying to find a solution myself, and went to play some games. (Games &gt; exams atm). Much, much later (about an hour ago, based on when I&#8217;m writing this <img src='http://www.thechrisd.com/wp-files/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), I went to see what the story was. Load up FF3 and, bam, 500 error. Load up Windows Live Mail, bam, no support response waiting in my inbox. Now we&#8217;re starting to get a little cheesed off&#8230;</p>
<p>So pretty much the last hour has been spent Googling around to try and find answers to this problem, or at least to read the tales of other people who have had the same problem as me. Most of the results were from people using the WP-Cache plugin on their blogs which seems to clash with my host. However there was one result in which someone said that there may be a problem with the .htaccess file causing problems. I decided to take a chance as see whether there was anything in my .htaccess causing this 500 error.</p>
<p>Mod_rewrite stuff &#8211; Nope, not causing it.   <br />AddHandler commands &#8211; Negative.    <br />Huge long list of deny lines &#8211; No&#8230;. hang on a mo, there&#8217;s the culprit.</p>
<p>So, it&#8217;s making me think how on earth that huge long list of IP addresses that are banned from accessing my site is causing the problem. I remember that earlier today I had to ban a new IP, and I had added a comment to explain why it was banned. So, to give it a shot, I put the IP&#8217;s back and removed the comment. Success!</p>
<p>But why the comment was causing the error was beyond me. It was commented directly after the deny xx.xx.xx.xx, so there shouldn&#8217;t have been a problem. I put the first comment back and it worked. I put the second back and it broke. At least now I had managed to find the exact culprit. And then came the most annoying bit out of this entire fiasco. I replaced a backslash I had in the comment with a space&#8230;</p>
<p>&#8230;and the fucking thing worked again&#8230;</p>
<p>For fuck&#8217;s sake&#8230; all this downtime for the sake of a god-damn backslash&#8230;</p>
<p>Oh BTW, I still haven&#8217;t received a response from the support team&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thechrisd.com/blog/2008/05/14/what-in-the-name-of-heck/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
