{"id":1050,"date":"2007-04-15T21:44:12","date_gmt":"2007-04-16T05:44:12","guid":{"rendered":"http:\/\/www.krunk4ever.com\/blog\/?p=1050"},"modified":"2007-04-15T23:56:54","modified_gmt":"2007-04-16T07:56:54","slug":"dreamhost-500-internal-server-error","status":"publish","type":"post","link":"https:\/\/www.krunk4ever.com\/blog\/2007\/04\/15\/dreamhost-500-internal-server-error\/","title":{"rendered":"DreamHost 500 Internal Server Error"},"content":{"rendered":"<p>I&#8217;ve been getting a bunch of 500 Internal Server Errors on my website, especially when adding images to my Gallery. Takes about 3-4 times before it&#8217;ll work. DreamHost is apparently having some recent slew of problems and are currently trying to fix all the issues: <a href=\"http:\/\/status.dreamhost.com\/\">DreamHost Status<\/a>.<\/p>\n<p>If you unfortunately hit this problem, try refreshing the page a few times and it should work. I apologize beforehand for the inconvenience.<\/p>\n<p>Looking at the error.log, I see:<\/p>\n<p>[Sun Apr 15 19:33:12 2007] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: \/dh\/cgi-system\/php5.cgi<br \/>\n[Sun Apr 15 19:33:12 2007] [error] [client xxx.xxx.xxx.xxx] File does not exist: \/home\/krunk4ever\/krunk4ever.com\/internal_error.html<\/p>\n<p>I had tried reverting back to PHP 4.x, but get a similar error:<\/p>\n<p>[Sun Apr 15 22:30:15 2007] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: \/dh\/cgi-system\/php.cgi<br \/>\n[Sun Apr 15 22:30:15 2007] [error] [client xxx.xxx.xxx.xxx] File does not exist: \/home\/krunk4ever\/krunk4ever.com\/internal_error.html<\/p>\n<p>Oh well, guess I can only wait for them to fix the problems.<\/p>\n<hr \/>\n<p><strong>Update<\/strong><\/p>\n<p>So DreamHost got back to me:<\/p>\n<blockquote><p>It appears some scripts on your site are being killed by our process watcher program. This keeps the CPU\/Memory load balanced for all users on the server. Unfortunately, while we can&#8217;t change the settings on that, there are ways to reduce the CPU and Memory footprint of your site. One is to make sure you&#8217;ve disabled hotlinking of your images. More often, the culprit is robot &#8220;crawlers&#8221;, such as googlebot, which like to get caught in loops on some sites, causing the load to jump on the server.<\/p>\n<p>You might find the following articles in our wiki useful in helping you reduce the load your sites put on the server:<\/p>\n<p><a href=\"http:\/\/wiki.dreamhost.com\/index.php\/Finding_Causes_of_Heavy_Usage\">Finding Causes of Heavy Usage<\/a><\/p>\n<p><a href=\"http:\/\/wiki.dreamhost.com\/index.php\/CPU_Resources_FAQ\">CPU Resources FAQ<\/a><\/p>\n<p>and<\/p>\n<p><a href=\"http:\/\/wiki.dreamhost.com\/index.php\/Bots_spiders_and_crawlers\">Bots spiders and crawlers<\/a><\/p>\n<p>Please feel free to let me know if you have any other questions.<\/p><\/blockquote>\n<p>I&#8217;m note exactly sure what changed and I&#8217;ve already enabled caching for WordPress and full acceleration on Gallery. Hotlinking has already been disabled a long time ago. I went ahead and followed one of the suggestions of delaying crawlers by added a robots.txt:<\/p>\n<blockquote><p>User-agent: *<br \/>\nCrawl-Delay: 60<br \/>\nDisallow:<\/p><\/blockquote>\n<p>However, the wiki does state that <em>Note: this is relatively worthless as it has been confirmed that Googlebot ignores it<\/em><\/p>\n<p>We&#8217;ll see if it gets any better.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been getting a bunch of 500 Internal Server Errors on my website, especially when adding images to my Gallery. Takes about 3-4 times before it&#8217;ll work. DreamHost is apparently having some recent slew of problems and are currently trying to fix all the issues: DreamHost Status. If you unfortunately hit this problem, try refreshing &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.krunk4ever.com\/blog\/2007\/04\/15\/dreamhost-500-internal-server-error\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;DreamHost 500 Internal Server Error&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts\/1050"}],"collection":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/comments?post=1050"}],"version-history":[{"count":0,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts\/1050\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/media?parent=1050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/categories?post=1050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/tags?post=1050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}