{"id":2590,"date":"2022-08-30T15:26:08","date_gmt":"2022-08-30T15:26:08","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/04\/problem-about-dreamhost-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:26:08","modified_gmt":"2022-08-30T15:26:08","slug":"problem-about-dreamhost-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-dreamhost-collection-of-common-programming-errors\/","title":{"rendered":"problem about dreamhost-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7c877b8b7973bd16d96b9ef81672c296?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsmileyUser<br \/>\nruby-on-rails-3 passenger dreamhost<br \/>\nI have been working on this problem in last two days using [http:\/\/jackassofalltrades.org\/2012\/02\/updating-to-a-newer-rails-on-dreamhost][1]\/ instruction. I have looked at other ruby on rails and dreamhost issues and instructions, but they seemed out of date. e.g 2010 etc. Moreover, I do aware of heroku which is very easy to deploy but expensive to keep running for my small project. So here are my problems.Ruby (Rack)application could not be started &#8211; a mixture of two Ruby versions: Ruby 1.8<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6f3159af5195eddff62a2dd4f9ad969?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMichael Durrant<br \/>\njavascript ruby-on-rails ruby-on-rails-3.1 v8 dreamhost<br \/>\nMy website has been broken since Dreamhost upgraded their servers a couple of weeks ago. I have been tearing my hair out trying to get it fixed and made some progress but am stuck on what is hopefully the final issue.I&#8217;m using Rails 3.1.1 on Ruby 1.8.7 and get presented with a &#8216;Ruby (Rack) application could not be started error&#8217; from PhusionPassenger. It states that it &#8216;Could not find a JavaScript runtime. See https:\/\/github.com\/sstephenson\/execjs for a list of available runtimes. (ExecJS::Runti<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b3e736654f687de243f492476a2ad48a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTed Avery<br \/>\nphp javascript upload dreamhost<br \/>\nIve been having trouble with a php and JavaScript upload script accepting large file uploads with Dreamhost. I realize that you are supposed to edit php.ini to change post max size and the memory limit, but it isn&#8217;t behaving as it should.The only way I have ever successfully had a large file upload was switching to Dreamhost PS and making the memory limit as high as a file (1GB) but there has to be another cost effective way, otherwise how oils sites like YouTube survive? I get I\/O errors if I d<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f708b0fdce9848586b22942c2a122e2d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nP-Rod<br \/>\njvm neo4j vps dreamhost<br \/>\nI am running neo4j on a VPS at dreamhost.I currently have my memory allocation set to 4Gig. I was under the impression that Neo4j would write to disk when it reached a RAM limit, however, my instance consistently peaks and crashes. Could this have something to do with running on a VPS?Is there a way to tell Neo4j to only use so much RAM?Trying to follow the manual I have tried to change the heap size of the JVM. Unfortunately I still suffer massive memory spikes and complete system crash.Is a<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a617f488bf1b424eed05b2c76c7c216c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSchrockwell<br \/>\nruby-on-rails passenger dreamhost<br \/>\nI am hosting a Ruby on Rails 2.0.2 application on DreamHost. It is on an Apache 2 server, running on top of Phusion Passenger. The application often returns a 500 error &#8220;Rails application failed to start properly&#8221;, but at random times. It appears to happen when the application is under higher load, though I can&#8217;t confirm this. It only gets about 2,000 pageviews per day, so I don&#8217;t think load should really be an issue.The Apache logs correlate these 500 responses with the error: &#8220;Premature end of<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/99e0b39c091e10d9c7d4452a34ca52dc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSimone Carletti<br \/>\nruby-on-rails ruby dreamhost chiliproject<br \/>\nHaving some issues deploying this. I&#8217;ve tried to deploy it twice now. Here&#8217;s what I&#8217;ve done so far&#8230;.Installed the gems and versions required on the install page:gem install -v=2.3.5 rails gem install -v=1.0.1 rack gem install -v=0.8.7 rake gem install -v=0.4.2 i18nDownloaded the package:git clone git:\/\/github.com\/chiliproject\/chiliproject.git cd chiliproject git checkout stableHad to find and set bundle since it wasn&#8217;t in my path:BUNDLE=&#8221;\/usr\/lib\/ruby\/gems\/1.8\/bin\/bundle&#8221;Put my database info<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/graph.facebook.com\/617866009\/picture?type=large\" \/><br \/>\nDiego Ivan<br \/>\nruby-on-rails heroku passenger spree dreamhost<br \/>\nI have problems deploying an application from Heroku to the dreamhost VPS solution.I&#8217;m using Passenger based on the wiki from Dreamhost to deploy a rails app(based on spree), but im having serious problems with the app.http:\/\/www.naxxai.com.mx\/Error message: undefined method `set_preference&#8217; for nil:NilClass Exception class: NoMethodError Application root: \/home\/naxxaiweb\/naxxai.com.mxI did the bundle install and everything was ok, i&#8217;m thinking it have to be something with the db. Have anyone de<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8061b4e2dd0d20592c21569b2ec45ea8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nYoung<br \/>\nphp function version dreamhost<br \/>\nI relogin to my server in dreamhost and test some scripts.And I found I couldn&#8217;t use str_split. Message of Undefined function was given.I checked the version in the server and its PHP Version is 5.2.12.And I just wonder which version is required?Thanks. Testcode:&lt;?php $arr = str_split(&#8220;lsdjflsdjflsdjflsdjfl&#8221;); print_r($arr); ?&gt;Message:Fatal error: Call to undefined function: str_split() in \/test.php on line 3Edit @Justin JohnsonI checked the server&#8217;s system directory,and I found there are<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8679514f8cdfd0c077fc6c242cda8882?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSnow Crash<br \/>\nphp simplexml dreamhost<br \/>\nWhen calling this function:simplexml_load_string()I get this error:Fatal error: Call to undefined function: simplexml_load_string()However, checking phpinfo I have:SimpleXML Simplexml support enabled Revision $Revision: 299016 $ Schema support enabled What gives?!If it helps I&#8217;m hosting on Dreamhost.<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MGhY2.png?s=32&amp;g=1\" \/><br \/>\nhakre<br \/>\ngeolocation dreamhost whois<br \/>\nRead on before you say this is a duplicate, it&#8217;s not. (as far as I could see)I want to get the county code in php from the client.Yes I know you can do this using external sites or with the likes of &#8220;geoip_record_by_name&#8221; but I don&#8217;t want to be dependent on an external site, and I can&#8217;t install &#8220;pear&#8221; for php as im using shard Dreamhost hosting.I thought I could just do something like this:$output = shell_exec(&#8216;whois &#8216;.$ip.&#8217; -H | grep country | awk \\'{print $2}\\&#8221;); echo &#8220;&lt;pre&gt;$output&lt;\/<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ec854a864bcefae4d8068d0f4dcbc705?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTarscher<br \/>\nruby-on-rails deployment dreamhost<br \/>\nI get a Could not find i18n-0.5.0 in any of the sourceserror when deploying my rails 3 app to a shared dreamhost.Support suggested installing bundler 0.9.9 which I did but when I run bundle install in my apps folder i get the message that Bundle is an unknown command. Apparently Bundler isn&#8217;t in my path.The problem is that I&#8217;m a complete unix noob and don&#8217;t know how to add this so that bundle is a known command.Thanks<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-02-04 02:11:59. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>smileyUser ruby-on-rails-3 passenger dreamhost I have been working on this problem in last two days using [http:\/\/jackassofalltrades.org\/2012\/02\/updating-to-a-newer-rails-on-dreamhost][1]\/ instruction. I have looked at other ruby on rails and dreamhost issues and instructions, but they seemed out of date. e.g 2010 etc. Moreover, I do aware of heroku which is very easy to deploy but expensive to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2590","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2590"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2590\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}