# Trouble installing Ruby on Rails with Apache 2 on Linux

**URL:** <https://www.ruby-forum.com/t/trouble-installing-ruby-on-rails-with-apache-2-on-linux/83139>\
**Category:** Rails\
**Created:** [January 23, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/trouble-installing-ruby-on-rails-with-apache-2-on-linux/83139 "2007-01-23T20:55:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 23, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/trouble-installing-ruby-on-rails-with-apache-2-on-linux/83139/1 "2007-01-23T20:55:06Z")

</div>

Hi, I’m running Fedora Core 5 Linux on an x86 machine with Apache 2.2.  
I’m trying to install Ruby on Rails using the instructions here  
([http://blog.eukhost.com/2006/09/30/ruby-on-rails/](http://blog.eukhost.com/2006/09/30/ruby-on-rails/)). If anyone has  
better instructions, please let me know!

I was unable to install mod\_fastcgi because of errors it was giving me.  
Skipping that step, I completed the rest of the steps, including

echo “FastCgiIpcDir /tmp/fcgi/” \>\>  
/usr/local/apache2/conf/httpd.conf  
echo “AddHandler fastcgi-script .fcgi” \>\>  
/usr/local/apache2/conf/httpd.conf  
echo “FastCgiWrapper On” \>\> /usr/local/apache2/conf/httpd.conf

but got this error when I restarted my Apache 2 server …

Syntax error on line 448 of /usr/local/apache2/conf/httpd.conf:  
Invalid command ‘FastCgiIpcDir’, perhaps misspelled or defined by a  
module not included in the server configuration

Any ideas what’s going wrong?

Thanks, - Dave

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 23, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/trouble-installing-ruby-on-rails-with-apache-2-on-linux/83139/2 "2007-01-23T21:21:21Z")

</div>

Hi Dave,

the error is probably because you couldn’t install mod\_fastcgi. If you  
want to go with Apache2, there are a few other options besides fastcgi  
to get Ruby on  
Rails going. Apache2 + fcgid or Apache2 + Mongrel. The last option is  
the most popular at the moment. I have a couple of links up at

> **[Ruby on Rails hosting companies - Compare, review and find your next ROR host](https://www.railshostinginfo.com/static/setting_up_a_webserver_for_rails/)**
>
> Are you looking for a good and reliable Ruby on Rails hosting company? We have lined them up so you can easily compare and review them.

that point to some good tutorials that should get you up and running  
very quickly.

Kind regards,

Nick S.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 23, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/trouble-installing-ruby-on-rails-with-apache-2-on-linux/83139/3 "2007-01-23T23:50:46Z")

</div>

Thanks. These are some good links, but what I can’t seem to find is  
what directives I need to put in my httpd.conf file to recognize pages  
written in ruby and pass those along to the correct interpreter. Do  
you have a tutorial with the step-by-step setup?

Thanks, -Dave

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 24, 2007, 12:50am UTC](https://www.ruby-forum.com/t/trouble-installing-ruby-on-rails-with-apache-2-on-linux/83139/4 "2007-01-24T00:50:55Z")

</div>

So long as your document root is pointed at /public and .htaccess is  
turned on you should be OK (unless you are configuring for something  
fancy like Mongrel).

On Jan 24, 9:50 am, “removed\_email\_address@domain.invalid”
