dreamhost

ModSecurity error with Django

♀尐吖头ヾ 提交于 2019-12-23 04:01:30
问题 I'm trying to access a Django page through a Facebook App (iframe) I made using fb.py on DreamHost and I keep getting an internal server error. Looking in the error logs, this is what I see: ModSecurity: Output filter: Failed to read bucket (rc 104): Connection reset by peer I think it just has to do with the POST request. Somebody else asked about this error on a number of forums almost a year ago, to no avail: ModSecurity: Output filter: Failed to read bucket (rc 104): Connection reset by

Deploying Sinatra app on Dreamhost/Passenger with custom gems

冷暖自知 提交于 2019-12-22 10:48:24
问题 I've got a Sinatra app that I'm trying to run on Dreamhost that makes use of pony to send email. In order to get the application up and running at the very beginning (before adding pony), I had to gem unpack rack and gem unpack sinatra into the vendor/ directory, so this was my config.ru: require 'vendor/rack/lib/rack' require 'vendor/sinatra/lib/sinatra' set :run, false set :environment, :production set :views, "views" require 'public/myapp.rb' run Sinatra::Application I have already done

Deploying Rails 3 on Dreamhost with Capistrano

只谈情不闲聊 提交于 2019-12-22 10:36:26
问题 I'm trying to deploy a Rails app using Capistrano (it's my first time using Capistrano). I have a Dreamhost Private Server which is using Ruby 1.8.7 and Rails 3.0.3 (according to http://rails.dreamhosters.com/) I've followed Dreamhost's Capistrano setup instructions (http://wiki.dreamhost.com/Capistrano) When I run "cap deploy:migrations" I get this error: [out :: xxx.com] Could not find i18n-0.5.0 in any of the sources ** [out :: xxx.com] Try running `bundle install` Am I right in thinking

SVN frequently says file is locked by me in another working copy

本秂侑毒 提交于 2019-12-21 07:18:11
问题 I have an SVN repository (hosted on Dreamhost) with needs-lock set on binary files. It sometimes happen that, while committing files locked and modified by me, the commit fails with the error: Error: Commit failed (details follow): Error: File '/my/file.bin' is locked in Error: another working copy If I try to get the lock on that file (without stealing it) it says: Error: Path '/my/file.bin' is already locked by user Error: 'my_username' in filesystem '/home/user1/svn/repo1/db' Cleanup doesn

How to deploy a Test App on Dreamhost Rails 3.0.4?

我只是一个虾纸丫 提交于 2019-12-21 05:28:27
问题 All this weekend I have been trying to setup a Rails 3.0.4 app in production on a Dreamhost shared server. I have followed this wiki article to have my own set of rubygems setup on the server. Furthermore, I also installed rvm and ruby 1.9.2 using the following command: bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. rvm use 1.9.2 --default Doing ruby -v returns ruby

How do I figure out what user & group Apache is running as?

早过忘川 提交于 2019-12-19 07:50:59
问题 On DreamHost shared hosting, I'm setting up htpasswd, but Apache does not have permission to read the file. How do I give it permission? I want to either change the owner or group of the .htpasswd file instead of giving it insecure permissions. I don't think I have access to the httpd.conf file, so I can't use this method to find what user Apache runs as. Also, running top or ps aux only shows the processes I'm running but doesn't show the apache process. Based on the output from cat /etc

How do I figure out what user & group Apache is running as?

纵饮孤独 提交于 2019-12-19 07:50:03
问题 On DreamHost shared hosting, I'm setting up htpasswd, but Apache does not have permission to read the file. How do I give it permission? I want to either change the owner or group of the .htpasswd file instead of giving it insecure permissions. I don't think I have access to the httpd.conf file, so I can't use this method to find what user Apache runs as. Also, running top or ps aux only shows the processes I'm running but doesn't show the apache process. Based on the output from cat /etc

Bundle install failing when deploying a Rails 3 app to Dreamhost with Capistrano

心已入冬 提交于 2019-12-19 04:08:16
问题 I am trying to deploy a locally working Rails 3 app to Dreamhost with Capistrano. When I run 'cap deploy -v' in my local app root I get so far before it chokes on 'bundle install'. The following is the end of the error message: ** transaction: start ** [abunchofletters.co.uk :: out] my_username@abunchofletters.co.uk's password: Password: ** [abunchofletters.co.uk :: out] ** [abunchofletters.co.uk :: out] HEAD is now at 62f9cdb Initial deploy to Dreamhost ** [out :: abunchofletters.co.uk] sh:

Rails app randomly crashes with error “Premature end of script headers”

旧城冷巷雨未停 提交于 2019-12-18 04:41:26
问题 I 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 "Rails application failed to start properly", but at random times. It appears to happen when the application is under higher load, though I can't confirm this. It only gets about 2,000 pageviews per day, so I don't think load should really be an issue. The Apache logs correlate these 500 responses with the error: "Premature

Is there a way to limit the amount of memory that “git gc” uses?

◇◆丶佛笑我妖孽 提交于 2019-12-17 07:12:54
问题 I'm hosting a git repo on a shared host. My repo necessarily has a couple of very large files in it, and every time I try to run "git gc" on the repo now, my process gets killed by the shared hosting provider for using too much memory. Is there a way to limit the amount of memory that git gc can consume? My hope would be that it can trade memory usage for speed and just take a little longer to do its work. 回答1: Yes, have a look at the help page for git config and look at the pack.* options,