# Setup rails on freebsd

**URL:** <https://www.ruby-forum.com/t/setup-rails-on-freebsd/103491>\
**Category:** Deployment\
**Created:** [May 7, 2007, 3:16am UTC](https://www.ruby-forum.com/t/setup-rails-on-freebsd/103491 "2007-05-07T03:16:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e8c25b/32.png) [@rst](https://www.ruby-forum.com/u/rst)\
**Post date:** [May 7, 2007, 3:16am UTC](https://www.ruby-forum.com/t/setup-rails-on-freebsd/103491/1 "2007-05-07T03:16:35Z")

</div>

Hello,  
I’m migrating some ruby on rails sites from one server to a new one.  
(both freebsd 6.x) Rails was setup previously by someone else. I’ve  
already installed rubygem rails from ports, and I’m using the same  
httpd.conf and httpd-vhosts.conf files from the old machine. when I  
transfer over the Ruby sites, all I get is a directory index.  
Can anybody suggest where I should start troubleshooting?  
Thanks  
Ray

---

<div class="post-metadata">

**Author:** ![rst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e8c25b/32.png) [@rst](https://www.ruby-forum.com/u/rst)\
**Post date:** [May 7, 2007, 9:55am UTC](https://www.ruby-forum.com/t/setup-rails-on-freebsd/103491/2 "2007-05-07T09:55:58Z")

</div>

Hi rst,

On 5/7/07, rst [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> transfer over the Ruby sites, all I get is a directory index.  
> Can anybody suggest where I should start troubleshooting?

Presumably in the log files. Ruby / Rails needs FastCGI (www/fcgi and  
www/mod\_fastcgi port) with Apache to run, so you might want to check  
out, if  
your new server has FastCGI support.

I dropped FastCGI in favor of nginx / mongrel a long time ago on my FBSD  
boxes, but let me know if you run into trouble.

Regards,  
AndrÃ¡s

–  
AndrÃ¡s Tarsoly  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![rst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e8c25b/32.png) [@rst](https://www.ruby-forum.com/u/rst)\
**Post date:** [May 7, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/setup-rails-on-freebsd/103491/3 "2007-05-07T22:37:03Z")

</div>

On Monday 07 May 2007 1:54 am, András Tarsoly wrote:

> Hi rst,
> 
> On 5/7/07, rst [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > transfer over the Ruby sites, all I get is a directory index.  
> > Can anybody suggest where I should start troubleshooting?
> 
> Presumably in the log files. Ruby / Rails needs FastCGI (www/fcgi and  
> www/mod\_fastcgi port) with Apache to run, so you might want to check out,  
> if your new server has FastCGI support.  
> Thank you for your suggestions. I found part of the problem.

problem 1 fixed: document root was incorrect.  
mod\_fastcgi wasn’t installed, but it wasn’t installed on the old  
server  
either. The old server seems to be using mod\_fcgid.  
now, when I go to the URL, I get a 500 error instead of a list of  
files.  
I’ve included error log exceperts and a little other info below.  
Any suggestions on where to go from here?  
Thanks, Ray

okay, from errorlogs

[Mon May 07 13:22:19 2007] [warn] mod\_fcgid: stderr: DEPRECATION  
WARNING:  
model is deprecated and will be removed from Rails 2.0 See  
[Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.](http://www.rubyonrails.org/deprecation) for details. (called  
from /usr/local/www/apache22/data/…/app/controllers/application.rb:  
4)  
[Mon May 07 13:22:19 2007] [warn] mod\_fcgid: stderr: DEPRECATION  
WARNING:  
depend\_on is deprecated and will be removed from Rails 2.0 See  
[Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.](http://www.rubyonrails.org/deprecation) for details. (called from  
model\_without\_deprecation  
at /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/d  
[Mon May 07 13:22:19 2007] [warn] mod\_fcgid: stderr:  
eprecated\_dependencies.rb:13)

If I understand, this doesn’t give the cause of the 500 error, it just  
tells  
me “change your code” ( or don’t upgrade to rails 2.0)

I installed mod\_fastcgi and now:  
from phpinfo (sorry, I use php, I don’t know Ruby)  
under apache modules I get  
…mod\_fcgid… mod\_fastcgi
