# How to host Ruby application on godaddy shared server

**URL:** <https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945>\
**Category:** Deployment\
**Created:** [April 13, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945 "2007-04-13T18:16:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 13, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/1 "2007-04-13T18:16:18Z")

</div>

Hi All.  
I am a developer working for Ruby On Rails project. I am trying to  
deploy my ruby project on godaddy shared server, but i am unable to  
browse the application and i am not getting any help from the support  
team of hosting server. Can any one help me to solve the problem. It  
would be grateful for me if anyone suggest me what to do.

Thanks in advance for your help

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 14, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/2 "2007-04-14T19:38:44Z")

</div>

On Apr 13, 9:16 am, Ranjan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am a developer working for Ruby On Rails project. I am trying to  
> deploy my ruby project on godaddy shared server, but i am unable to  
> browse the application and i am not getting any help from the support  
> team of hosting server. Can any one help me to solve the problem. It  
> would be grateful for me if anyone suggest me what to do.

I don’t have any experience with GoDaddy’s shared hosting, but I can  
tell you that trying to run a Rails application on a shared server  
will lead to nothing but headaches. You really want a dedicated  
server or VPS with at least 256MB of RAM for even most trivial Rails  
apps.

–  
Regards,

John W.

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 15, 2007, 3:49am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/3 "2007-04-15T03:49:15Z")

</div>

A VPS is not needed for small rails applications, and it would require  
some knowledge about Linux administration, Apache, Mongrel, etc.

I would recommend you to go to [PlanetArgon.com](http://PlanetArgon.com), [Railsplayground.com](http://Railsplayground.com) or  
[SpeedyRails.com](http://SpeedyRails.com) if you are looking for great shared hosting service.

Best regards,

Maykel Rodriguez

> **[Home - Speedyrails](https://www.speedyrails.com/)**
>
> Speedyrails is an AWS Advanced Consulting Partner. We leverage our extensive AWS knowledge to provide exceptional managed services.

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 15, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/4 "2007-04-15T17:08:04Z")

</div>

I agree 100% with John, it’s true that the historic problem with  
shared hosting is the resources sharing. At speedyrails we have tried  
to solve this issue guaranteeing 60MB of RAM for every mongrel  
instance. The number of mongrel instances per processor is also  
controlled, only around 30 - 35 mongrel instances per processor,  
guaranteeing a fairly good performance for shared hosting customers.  
There are always sites with more traffic than others, so in some cases  
we have had to move some busy sites to servers with lower load, but  
this is not frequent, with the above constrains our servers have been  
running pretty smoothly for more than 4 months (we launched our  
service last November).

I think a similar approach is used at RaislPlayGround and I guess more  
providers are doing so.

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 24, 2007, 6:06am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/5 "2007-04-24T06:06:41Z")

</div>

Ranjan wrote:

> Hi All.  
> I am a developer working for Ruby On Rails project. I am trying to  
> deploy my ruby project on godaddy shared server, but i am unable to  
> browse the application and i am not getting any help from the support  
> team of hosting server. Can any one help me to solve the problem. It  
> would be grateful for me if anyone suggest me what to do.
> 
> Thanks in advance for your help

Not one person on this list has answered the initial question.  
Regardless of your opinions of negativity – has anyone gotten a rails  
app running on a godaddy account and if so could you share with the rest  
of us your magic?

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 24, 2007, 10:31am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/6 "2007-04-24T10:31:58Z")

</div>

On Apr 23, 9:06 pm, Guest [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Not one person on this list has answered the initial question.  
> Regardless of your opinions of negativity – has anyone gotten a rails  
> app running on a godaddy account and if so could you share with the rest  
> of us your magic?

My guess would be that the lack of an answer in any of the places I’ve  
seen this question asked is an answer in itself. It’s hardly  
“negativity” to point out the fact that high-volume, discount hosts  
such as GoDaddy are not a great place to try and run a Rails  
application – it’s just a statement of fact.

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 25, 2007, 1:46am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/7 "2007-04-25T01:46:19Z")

</div>

I’ve been able to get simple apps to run on GoDaddy…read that as  
“run” rather than perform. It usually takes up to 15 seconds for the  
fcgi process to spawn, but once it does, it will run at a decent clip  
for a while.

Steps I’ve taken.

1. Set up the rails app directory in the cgi manager.
2. Freeze rails and any other gems. (I’ve used up to version 1.1.6 on  
GoDaddy)
3. Upload the project into a subdirectory of the newly created rails  
app directory
4. In the cgi manager, create the symbolic link to your newly uploaded  
app.
5. Change permissions on /sitename/public/dispatch.\* to 755
6. make sure the first line of the dispatch.cgi and the dispatch.fcgi  
is #!/usr/local/bin/ruby
7. Once it works in cgi, try fcgi by editing the .htaccess file again  
and changing this line RewriteRule ^(._)$ dispatch.cgi [QSA,L] to  
RewriteRule ^(._)$ dispatch.fcgi [QSA,L]
8. I’ve also been able to use a domain pointer to point directly at  
the rails app. Just use the domain management control panel to point  
your extra domain to the /rails\_apps/sitename/public directory.

Lest you think I’m full of BS :), this little test site is running on  
fcgi on godaddy’s servers right now. Please be kind, it’s just a test  
site 🙂

[http://www.moyerfamily.name/movies/](http://www.moyerfamily.name/movies/)

Another important note, is that with GoDaddy, when using a rails app  
that’s not in the root directory, such as the one above, you have to  
include the trailing slash in the address.

[http://www.moyerfamily.name/movies](http://www.moyerfamily.name/movies) (\<-- no slash) will through an error.

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [April 15, 2007, 9:49am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/8 "2007-04-15T09:49:42Z")

</div>

On Apr 14, 6:48 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> A VPS is not needed for small rails applications, and it would require  
> some knowledge about Linux administration, Apache, Mongrel, etc.

The problem with shared hosts isn’t necessarily your small application  
– it’s often the other guy’s big application. There’s simply no way  
around it; Rails requires a decent chunk of dedicated RAM to be  
useful. I’m not trying to be a detractor here – that’s just one of  
the trade-offs you need to be aware of. I don’t think it’s a  
coincidence that the number of places offering decent-but-low-end VPS  
solutions has increased dramatically with the growing popularity of  
Rails.

There are plenty of places today that offer incredibly affordable VPS  
solutions, and attaining “some knowledge about Linux administration”,  
etc. is an investment you won’t regret. If you’re really trying to  
learn Ruby/Rails (or any other platform for that matter) you also need  
to understand the environment that supports it. That doesn’t mean you  
need all of the skills of a great sysadmin, but you should be able to  
– for example – install a base Linux system and get it to the point  
of serving a Rails application.

If you decide you do want to use shared hosting, I agree with Maykel  
that you should consider one of the providers he mentioned over  
GoDaddy. You’ll certainly have better luck with one of them since they  
have made official Rails support part of their core offering.

–  
Regards,

John W.

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [May 9, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/9 "2007-05-09T20:34:36Z")

</div>

I wouldn’t call it a success…it just barely runs 🙂

Step 5: my ftp client (filezilla) allows me to right click on a file  
on the server and set permissions

Here’s my database.yml

development:  
adapter: mysql  
database: movielist  
username: root  
password: xxxxxx  
host: localhost

production:  
adapter: mysql  
database: \*\*\*\*\*\*\*\*  
username: \*\*\*\*\*\*\*  
password: \*\*\*\*\*\*  
port: 3306  
host: [mysql129.secureserver.net](http://mysql129.secureserver.net)

The database, username, password & host should all be gleaned from  
your sql manager app on godaddy.

as for the rails\_apps directory. It’s nothing special. It’s  
something you create in the CGI admin screen of goDaddy. The  
directory can be named anything you want it to be named. The CGI admin  
app will automatically throw an .htaccess file into it.

The symbolic links are really needed. They just make it easier to  
navigate to your rails app. e.g. my movies app is actually at  
[http://www.moyerfamily.name/rails\_apps/movielist/](http://www.moyerfamily.name/rails_apps/movielist/) the symbolic link  
just allows me to access it via [http://www.moyerfamily.name/movies/](http://www.moyerfamily.name/movies/)

HTH,

Marlon

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [June 14, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/10 "2007-06-14T16:27:25Z")

</div>

Marlon,

Will you please post your dispatch.cgi, dispatch.fcgi, and .htaccess  
files  
(.htaccess file for both the rails\_apps and movies directories 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [May 6, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/11 "2007-05-06T20:25:18Z")

</div>

Marlon,

So far you are the only success story I’ve read about running a rails  
application on GoDaddy. I’ve followed your instructions below to the  
best of my ability and have made some success but I’ve yet to get my  
rails app up and running. Can you please provide me with a few more  
details.

Specifically:  
Step 5 changing permissions (how do I do that?)  
Can you provide a sample of your database.yml file (with the password  
omitted of course)?  
Step 1 & 4, provide a sample of the example of the rails app directory  
and symbolic link?

Thanks for your help.

Robert Hall  
removed\_email\_address@domain.invalid

Marlon M. wrote:

> I’ve been able to get simple apps to run on GoDaddy…read that as  
> “run” rather than perform. It usually takes up to 15 seconds for the  
> fcgi process to spawn, but once it does, it will run at a decent clip  
> for a while.
> 
> Steps I’ve taken.
> 
> 1. Set up the rails app directory in the cgi manager.
> 2. Freeze rails and any other gems. (I’ve used up to version 1.1.6 on  
> GoDaddy)
> 3. Upload the project into a subdirectory of the newly created rails  
> app directory
> 4. In the cgi manager, create the symbolic link to your newly uploaded  
> app.
> 5. Change permissions on /sitename/public/dispatch.\* to 755
> 6. make sure the first line of the dispatch.cgi and the dispatch.fcgi  
> is #!/usr/local/bin/ruby
> 7. Once it works in cgi, try fcgi by editing the .htaccess file again  
> and changing this line RewriteRule ^(._)$ dispatch.cgi [QSA,L] to  
> RewriteRule ^(._)$ dispatch.fcgi [QSA,L]
> 8. I’ve also been able to use a domain pointer to point directly at  
> the rails app. Just use the domain management control panel to point  
> your extra domain to the /rails\_apps/sitename/public directory.
> 
> Lest you think I’m full of BS :), this little test site is running on  
> fcgi on godaddy’s servers right now. Please be kind, it’s just a test  
> site 🙂
> 
> [http://www.moyerfamily.name/movies/](http://www.moyerfamily.name/movies/)
> 
> Another important note, is that with GoDaddy, when using a rails app  
> that’s not in the root directory, such as the one above, you have to  
> include the trailing slash in the address.
> 
> [http://www.moyerfamily.name/movies](http://www.moyerfamily.name/movies) (\<-- no slash) will through an error.

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [September 4, 2007, 9:23am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/12 "2007-09-04T09:23:13Z")

</div>

The CGI admin app will automatically throw an .htaccess file, is it  
needed to change in .htacess file while deploying rails application

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [August 23, 2010, 12:44am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/13 "2010-08-23T00:44:58Z")

</div>

Ranjan wrote:

> Hi All.  
> I am a developer working for Ruby On Rails project. I am trying to  
> deploy my ruby project on godaddy shared server, but i am unable to  
> browse the application and i am not getting any help from the support  
> team of hosting server. Can any one help me to solve the problem. It  
> would be grateful for me if anyone suggest me what to do.
> 
> Thanks in advance for your help

Hi Ranjan,

I think this article can help you solve your issues …

[http://www.bigbluebrains.com/index.php/2010/08/04/how-to-host-a-ruby-application-on-godaddy/](http://www.bigbluebrains.com/index.php/2010/08/04/how-to-host-a-ruby-application-on-godaddy/)

Hamaky

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [September 26, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/14 "2010-09-26T23:24:56Z")

</div>

I’ve to agree with John. Shared hosting is nothing but a headache, went  
through all that a while back.

A shameless plug, I wrote a script that makes Rails deployments a  
breeze. [http://ezror.com](http://ezror.com)

If you’re interested I can get your suited with some free licenses and  
point you toward some good,cheap web hosts. I don’t get referral fee or  
anything, just good karma I figured. And I use the personally.

-sunny

Ranjan wrote:

> Hi All.  
> I am a developer working for Ruby On Rails project. I am trying to  
> deploy my ruby project on godaddy shared server, but i am unable to  
> browse the application and i am not getting any help from the support  
> team of hosting server. Can any one help me to solve the problem. It  
> would be grateful for me if anyone suggest me what to do.
> 
> Thanks in advance for your help

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [February 10, 2011, 4:38am UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/15 "2011-02-10T04:38:20Z")

</div>

Step by step deploy a Ruby application on GoDaddy  
[http://wanghaiyang.me/archives/166](http://wanghaiyang.me/archives/166)

---

<div class="post-metadata">

**Author:** ![ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Post date:** [June 15, 2011, 2:09pm UTC](https://www.ruby-forum.com/t/how-to-host-ruby-application-on-godaddy-shared-server/91945/16 "2011-06-15T14:09:42Z")

</div>

[www.inebuy.net](http://www.inebuy.net)

windows 7  
office 2007  
office 2010  
office visio key  
windows visio key  
windows xp key

wholesale windows 7 key  
wholesale office 2007 key  
wholesale office 2010 key  
wholesale office visio key  
wholesale windows visio key  
wholesale windows xp key  
Cheap and easy to use

Do not miss passing through!  
Select only expensive non-election!

[www.inebuy.net](http://www.inebuy.net)
