Dan did you get camping running on dreamhost already?? i?m trying to run it also but i haven''t succeed yet. it runs on command line but when i add the rewrite rules on .htaccess i get a internal server error. I emailed support to ask about ScriptAlias and they say they cannot change or add that to apache conf. -- Andr? G. Cardozo
Andre - I have a working camping app on Dreamhost. My .htaccess: AddHandler fastcgi-script .fcgi Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR] RewriteCond %{REQUEST_URI} ^/failed_auth.html$ [OR] #RewriteCond %{REQUEST_URI} ^/static/(.*)$ [OR] RewriteCond %{REQUEST_URI} ^/mint/(.*)$ RewriteRule ^.*$ - [L] RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] ********** my dispatch.fcgi: #!/home/styledbits/local/bin/ruby require ''rubygems'' require ''camping'' require ''camping/fastcgi'' ENV["FORCE_ROOT"]=1.to_s Camping::Models::Base.establish_connection :adapter => ''sqlite3'', :database => "wankosphere.sqlite3" Camping::FastCGI.serve("wankosphere.rb") On 3/27/07, andr? gustavo cardozo <walkandre at gmail.com> wrote:> Dan > > did you get camping running on dreamhost already?? > > i?m trying to run it also but i haven''t succeed yet. it runs on > command line but when i add the rewrite rules on .htaccess i get a > internal server error. > > I emailed support to ask about ScriptAlias and they say they cannot > change or add that to apache conf. > > > > -- > Andr? G. Cardozo > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
HI Andre, I haven''t looked at the apache redirect stuff yet, but if you''re using the DH install of ruby and camping, i''ve figured out the following: 1) DH installed camping with all dependencies EXCEPT markaby, so at the very least you''ll need to install markaby in your own directory (i''d recommend installing the full camping gem there) 2) When running cgi/fcgi scripts, DH''s ''s server ignores the .bashrc file (though they''ll tell you that they don''t), so you''ll need to set the gem path (ENV["GEM_PATH"] ) in your dispatch script. Hope this helps! Dan
I got my own gems installed and everything seems to be working, with no problems except the htaccess configuration and i still getting a lot of strange errors from fast-cgi. i?m going to try michael configuration and maybe install my own ruby as he did. On 3/28/07, Dan Gottlieb <camping at dan-gottlieb.com> wrote:> HI Andre, > > I haven''t looked at the apache redirect stuff yet, but if you''re using > the DH install of ruby and camping, i''ve figured out the following: > > 1) DH installed camping with all dependencies EXCEPT markaby, so at > the very least you''ll need to install markaby in your own directory > (i''d recommend installing the full camping gem there) > > 2) When running cgi/fcgi scripts, DH''s ''s server ignores the .bashrc > file (though they''ll tell you that they don''t), so you''ll need to set > the gem path (ENV["GEM_PATH"] ) in your dispatch script. > > Hope this helps! > > Dan > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-- Andr? G. Cardozo