# Moving Application from Windows WEBrick to Linux Apache host

**URL:** <https://www.ruby-forum.com/t/moving-application-from-windows-webrick-to-linux-apache-host/90193>\
**Category:** Deployment\
**Created:** [March 26, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/moving-application-from-windows-webrick-to-linux-apache-host/90193 "2007-03-26T19:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [March 26, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/moving-application-from-windows-webrick-to-linux-apache-host/90193/1 "2007-03-26T19:33:16Z")

</div>

Hello,  
I have some kind of problem. I was trying to upload sample application  
to my hosting which supports RoR 1.2 and I have a lot of problems. I  
just can’t start the application. I don’t have SSH access to it.

There are three files which depends on the system:  
dispatch.rb  
dispatch.cgi  
dispatch.fcgi

I changed path to correct one, on the Linux machine. I changed to use it  
fast CGI.  
From dispatcg.fcgi:  
require ‘fcgi\_handler’  
require ‘fcgi’  
require ‘rubygems’  
require\_gem ‘fcgi’

From .htaccess:  
RewriteRule ^(.\*)$ dispatch.fcgi [QSA,L]

All three files have 755 permission.

config/enviroment.rb:  
I uncommented this line: ENV[‘RAILS\_ENV’] ||= ‘production’

I changed tmp directory permission to 777.

For some testing purposes I was using CGI: (website:  
[http://davidlt.profusehost.net/portal/public/](http://davidlt.profusehost.net/portal/public/))

[Mon Mar 26 08:53:45 2007] [error] [client 88.118.234.181] Premature end  
of script headers: /home/davidlt/public\_html/portal/public/dispatch.cgi

or FastCGI:

[Mon Mar 26 10:27:33 2007] [warn] FastCGI: (dynamic) server  
“/home/davidlt/public\_html/portal/public/dispatch.fcgi” has failed to  
remain running for 30 seconds given 3 attempts, its restart interval has  
been backed off to 600 seconds

Any ideas why it is still not working?..
