# Which server should i use for RAILs on my VPS

**URL:** <https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619>\
**Category:** Deployment\
**Created:** [October 29, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619 "2007-10-29T15:37:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 29, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/1 "2007-10-29T15:37:51Z")

</div>

Hi guys,  
I have a linux VPS. I was wondering which is the best way to run rails  
on my server. Should I use:  
Webbricks  
Apache  
Apache+mongrel  
LiteSpeed - [http://litespeedtech.com](http://litespeedtech.com)

waiting for some nice suggestions

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 29, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/2 "2007-10-29T15:45:37Z")

</div>

I’d like to say RubyWorks Production Stack. Check it out at  
[http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)

Basically you’re gonna need applicaiton server cluster plus load  
balancing plus (optional) services monitoring. RubyWorks provides the  
whole thing.

On 10/29/07, Vinay B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Jeff X.  
Software Journeyman - [http://gigix.thoughtworkers.org](http://gigix.thoughtworkers.org)  
Open Source Contributor - [http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)  
Technical Evangelist - [http://www.infoq.com/cn/](http://www.infoq.com/cn/)

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 29, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/3 "2007-10-29T15:57:44Z")

</div>

Jeff X. wrote:

> I’d like to say RubyWorks Production Stack. Check it out at  
> [http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)
> 
> Basically you’re gonna need applicaiton server cluster plus load  
> balancing plus (optional) services monitoring. RubyWorks provides the  
> whole thing.
> 
> On 10/29/07, Vinay B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > –  
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –  
> Jeff X.  
> Software Journeyman - [http://gigix.thoughtworkers.org](http://gigix.thoughtworkers.org)  
> Open Source Contributor - [http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)  
> Technical Evangelist - [http://www.infoq.com/cn/](http://www.infoq.com/cn/)

hey jeff,  
what about the performance issues… what about requests per second?? and  
have u used it?? also i already have apache on my server… would i need  
to remove it??  
I would really appreciate it if you could help me out with these  
questions… thnx a million

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 29, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/4 "2007-10-29T22:35:21Z")

</div>

On 10/29/07, Vinay B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> nginx + mongrel?

Regards,  
Isak

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 29, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/5 "2007-10-29T23:39:28Z")

</div>

Isak H. wrote:

> On 10/29/07, Vinay B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > –  
> > nginx + mongrel?
> 
> Regards,  
> Isak

sorry please ignore my last post … i was trying to install litespeed  
server

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 29, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/6 "2007-10-29T22:06:21Z")

</div>

Vinay B. wrote:

> hey jeff,  
> what about the performance issues… what about requests per second?? and  
> have u used it?? also i already have apache on my server… would i need  
> to remove it??  
> I would really appreciate it if you could help me out with these  
> questions… thnx a million

Hey jeff,  
i tried to install litespeed on my ubuntu 7.04 machine  
and i got this error

root@localhost:~# gem install ruby-lsapi  
Building native extensions. This could take a while…  
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)  
ERROR: Failed to build gem native extension.

ruby extconf.rb install ruby-lsapi  
extconf.rb:1:in `require’: no such file to load – mkmf (LoadError)  
from extconf.rb:1

Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/ruby-lsapi-2.7 for inspection.  
Results logged to  
/usr/lib/ruby/gems/1.8/gems/ruby-lsapi-2.7/ext/lsapi/gem\_make.out

can u please help me out here…

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 30, 2007, 8:19pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/7 "2007-10-30T20:19:34Z")

</div>

Vinay B. escribiÃ³:

> Hey jeff,  
> from extconf.rb:1
> 
> Gem files will remain installed in  
> /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-2.7 for inspection.  
> Results logged to  
> /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-2.7/ext/lsapi/gem\_make.out
> 
> can u please help me out here…

You need install / ruby1.8-dev package.

Regards!  
/

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 30, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/8 "2007-10-30T20:18:24Z")

</div>

Vinay B. escribiÃ³:

> Hi guys,  
> I have a linux VPS. I was wondering which is the best way to run rails  
> on my server. Should I use:  
> Webbricks  
> Apache  
> Apache+mongrel  
> LiteSpeed - [http://litespeedtech.com](http://litespeedtech.com)
> 
> waiting for some nice suggestions

We’re using apache+mongrel.

If you only run rails applications you can try nginx+mongrel, but if you  
need another things apache+mongrel (I read it in some places). In my  
todo list have “Try apache+nginx”.

Regards

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 30, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/9 "2007-10-30T20:51:44Z")

</div>

Rafael,

It is not a webserver for rails. It is a repository with binary RPMs  
for several commonly used apps in a neatly packaged stack. If you  
follow their documentation it tells you that they use HAProxy, Monit,  
Mongrel and Runit. I prefer Nginx + Mongrel these days but I copied  
their Runit + Monit scripts. Runit is really nice.

AEM

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [October 30, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619/10 "2007-10-30T20:40:14Z")

</div>

Rafael GarcÃ­a wrote:

> Vinay B. escribiÃ³:
> 
> > Hey jeff,  
> > from extconf.rb:1
> > 
> > Gem files will remain installed in  
> > /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-2.7 for inspection.  
> > Results logged to  
> > /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-2.7/ext/lsapi/gem\_make.out
> > 
> > can u please help me out here…
> 
> You need install / ruby1.8-dev package.
> 
> Regards!  
> /

well, i have the latest version installed.  
ohh BTW has anyone here used RubyWorks [http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)  
its a webserver for rails.
