{"id":1051,"date":"2007-04-16T02:11:25","date_gmt":"2007-04-16T10:11:25","guid":{"rendered":"http:\/\/www.krunk4ever.com\/blog\/?p=1051"},"modified":"2007-04-16T05:13:04","modified_gmt":"2007-04-16T13:13:04","slug":"dreamhost-500-internal-server-error-part-2","status":"publish","type":"post","link":"https:\/\/www.krunk4ever.com\/blog\/2007\/04\/16\/dreamhost-500-internal-server-error-part-2\/","title":{"rendered":"DreamHost 500 Internal Server Error &#8211; Part 2"},"content":{"rendered":"<p>So I get a reply to my request for more information and here was DreamHost&#8217;s reply:<\/p>\n<blockquote><p>Well, each shell\/ftp user has their own resource quota&#8230;so basically, all of your sites are sharing a quota at this point, as well as your shell user&#8230;so if your nano session happened to be the one process that crossed the threshold, then it would be the one killed. One thing you might try is creating another shell\/ftp user, and setting the site to run under the new user. This would give the entire site it&#8217;s own resource quota, and probably help to prevent these errors in the future. <\/p>\n<p>As far as the process watcher, the threshold is reasonable, and it&#8217;s a VERY simple program&#8230;just a couple of IF statements. IF overall server load is above a certain level, enforce the rules. IF a user reaches a certain CPU\/Memory level, kill the offending process. Not much to go wrong&#8230;<\/p>\n<p>Let me know if you have any other questions. <\/p>\n<p>Thanks!<br \/>\nJeffrey<\/p><\/blockquote>\n<p>So I&#8217;ve decided to split my blog and gallery into 2 users and then I&#8217;d get twice as much CPU power (if what he says is true). Turns out I can actually create upto 75 user accounts.<\/p>\n<p>Unfortunately there&#8217;s no way to set users to share directories, so I ended up creating a new subdomain and copying stuff over. When you visit the old gallery link:<br \/>\n<a href=\"http:\/\/www.krunk4ever.com\/gallery\/\">http:\/\/www.krunk4ever.com\/gallery\/<\/a>,<\/p>\n<p>You&#8217;ll automatically be redirected to:<br \/>\n<a href=\"http:\/\/gallery.krunk4ever.com\/gallery\/\">http:\/\/gallery.krunk4ever.com\/<\/a>.<\/p>\n<p><del datetime=\"2007-04-16T12:49:46+00:00\">I originally was hoping to put it in the 1st level, but gallery was giving me some problems if I didn&#8217;t place it inside \/gallery, since it was originally inside gallery.<\/del><\/p>\n<p>I somewhat got the 1st level thing working by fixing my .htaccess file and in config.php, set a baseUri:<br \/>\n$gallery->setConfig(&#8216;baseUri&#8217;, &#8216;\/main.php&#8217;);<\/p>\n<p>The process was actually less painful than I originally thought. I had imagined hacking the database and having to do a bunch of random fixes.<\/p>\n<p>The only thing I had to do was copy over 2 directories:<br \/>\n\/gallery (where the website code was located)<br \/>\n\/g2data (where the images and data were actually stored)<\/p>\n<p>In config.php, I had to update data directory:<br \/>\n$gallery-&gt;setConfig(&#8216;data.gallery.base&#8217;, &#8216;\/home\/krunk_gallery2\/g2data\/&#8217;);<\/p>\n<p>When I loaded gallery, it asked me to run through the update wizard.<\/p>\n<p>The initial setup failed because the web user didn&#8217;t have write access to the g2data directory. It suggested that I had chmod 777 the g2data directory. After I did that, that error went away.<\/p>\n<p>The last thing I did was update my .htaccess to do all my redirection by adding this line:<br \/>\nRedirect permanent \/gallery\/ http:\/\/gallery.krunk4ever.com\/gallery\/<\/p>\n<p>Afterwards, everything just worked. If you hit into any problems with the gallery or my blog, please let me know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I get a reply to my request for more information and here was DreamHost&#8217;s reply: Well, each shell\/ftp user has their own resource quota&#8230;so basically, all of your sites are sharing a quota at this point, as well as your shell user&#8230;so if your nano session happened to be the one process that crossed &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.krunk4ever.com\/blog\/2007\/04\/16\/dreamhost-500-internal-server-error-part-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;DreamHost 500 Internal Server Error &#8211; Part 2&#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\/1051"}],"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=1051"}],"version-history":[{"count":0,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts\/1051\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/media?parent=1051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/categories?post=1051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/tags?post=1051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}