Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently have a Linux Dedicated Server hosted through godaddy. How would I go about deploying a rails 3 application on this server? I currently do not have rails installed on the server and I have no clue where to start. The GoDaddy Rep said to install Rails through ssh but thats all he could provide me with.

Thanks for the help in advance!

share|improve this question
Do you have Fedora, CentOS, or Ubuntu? – Mike_GoDaddy Jun 25 '12 at 20:31
Mike, I am using CentOS. – stevenaq Jun 26 '12 at 18:59

After you are logged in as root you should be able to run the following to get Rails installed and working.

Run the following commands on the server:

yum install gcc-c++ glibc-devel httpd-devel automake autoconf libtool libtool-libs

cd /usr/local/src


tar xzvf ruby-1.8.5.tar.gz

cd ruby-1.8.5

./configure --prefix=/usr && make && make instal

cd ..


tar xvzf rubygems-0.9.5.tgz

cd rubygems-0.9.5

ruby setup.rb

cd ..

gem install rails


tar -xvzf fcgi-2.4.0.tar.gz

cd fcgi-2.4.0

./configure && make && make install

cd ..


tar -xvzf mod_fastcgi-2.4.2.tar.gz

cd mod_fastcgi-2.4.2

cp Makefile.AP2 Makefile

vi Makefile


top_dir = /usr/local/apache2


top_dir = /usr/lib/httpd


make && make install

cd ..

gem install fcgi

gem install mysql  

(NOTE: If this fails, do this: gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql )

vi /etc/httpd/conf.d/fastcgi.conf

User apache

Group apache

LoadModule fastcgi_module modules/

<IfModule mod_fastcgi.c>
    FastCgiWrapper on
    FastCgiConfig -idle-timeout 900
    FastCgiIpcDir /tmp/fastcgi_ipc/
    AddHandler fastcgi-script .fcgi .rb

mkdir /tmp/fastcgi_ipc

chown -R apache.apache /tmp/fastcgi_ipc

chmod -R 755 /tmp/fastcgi_ipc

service httpd graceful
share|improve this answer
I'm stuck on this part - unable to edit the file: wget tar -xvzf mod_fastcgi-2.4.2.tar.gz cd mod_fastcgi-2.4.2 cp Makefile.AP2 Makefile vi Makefile Change: top_dir = /usr/local/apache2 to top_dir = /usr/lib/httpd make && make install – stevenaq Jun 27 '12 at 20:01
What is the error you are getting when you try to run each of those commands. Each line is a separate command. – Mike_GoDaddy Jun 27 '12 at 20:21

Here are some pointers:

share|improve this answer
Welcome to Server Fault! We really do prefer that answers have content, not pointers to content. This ensures that the answer will remain available even if the link goes dead. Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Iain Jun 23 '12 at 6:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.