# Debian Hosting Setup

**URL:** <https://www.ruby-forum.com/t/debian-hosting-setup/65932>\
**Category:** Rails\
**Created:** [August 22, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/debian-hosting-setup/65932 "2006-08-22T14:30:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![snowbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Post date:** [August 22, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/debian-hosting-setup/65932/1 "2006-08-22T14:30:00Z")

</div>

Friends,

I’m about to launch a little usergroup-type community site and have a  
VPS waiting with (what will be) a clean Debian Stable install.

The last time I installed this VPS box, I followed Ezra’s Debian guide  
to get up and running with hosting. It all worked very well (thanks,  
Ezra!).

I’m planning to run a little rails app as the ‘main’ site, _mostly_  
serving static pages. I’m also planning to install Mephisto and Beast  
at different subdomains for other features. My plan (as it has been  
with Typo) is to check these projects into my own SVN repo and deploy  
all the apps with Capistrano.

Given the the ‘state-of-the-art’ in Rails hosting has moved on from the  
Lighty+FCGI I had from Ezra’s tutorial, to mongrel\_cluster +  
(something-on-the-front), does anyone have any thoughts on how I might  
proceed ?

The current recommendation, as best I can tell, is for Apache2.2, but  
it’s only available in Debian testing, so I guess that means installing  
from source. Given source-build for the webserver and the notorious  
problems with ruby and Debian packaging, should I abandon Debian and apt  
entirely and go for a different distro (other distros available, see  
here: [http://www2.bytemark.co.uk/page/Live/hosting/distros/](http://www2.bytemark.co.uk/page/Live/hosting/distros/)) ? I’m a  
mac user, so not particularly invested in any particular linux (but I  
have used Debian on these VPSs for a couple of years now).

Any thoughts welcome. This is a completely greenfield VPS, so I have a  
chance to do it right. My only real constraint is that the  
infrastructure be cap deployable (ideally with the down-for-maintenance  
facilities)

Thanks in advance,

Alan

---

<div class="post-metadata">

**Author:** ![snowbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Post date:** [August 22, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/debian-hosting-setup/65932/2 "2006-08-22T14:58:11Z")

</div>

Alan,

I built Apache 2.2 from source on my VPS (rimuhosting) and it went  
smoother  
that I had expected. Later I found this post describing the process:

[http://forums.rimuhosting.com/forums/showthread.php?t=230](http://forums.rimuhosting.com/forums/showthread.php?t=230)

I’ve also got Capistrano running well with this setup. I found Coda  
Hale’s  
excellent article to be very useful as well:

[http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/](http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/)

Hammed

---

<div class="post-metadata">

**Author:** ![snowbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Post date:** [August 22, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/debian-hosting-setup/65932/3 "2006-08-22T15:01:20Z")

</div>

Hammed M. wrote:

> Alan,
> 
> I built Apache 2.2 from source on my VPS (rimuhosting) and it went  
> smoother that I had expected. Later I found this post describing  
> the process:

Hi Hammed,

Thanks for that. Is it Debian you run on rimu ?

A.

---

<div class="post-metadata">

**Author:** ![snowbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Post date:** [August 22, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/debian-hosting-setup/65932/4 "2006-08-22T15:04:00Z")

</div>

Alan F. wrote:

> Hi Hammed,
> 
> Thanks for that. Is it Debian you run on rimu ?
> 
> A.

Just scanned the rimu article and it looks like debian to me 🙂

A.

---

<div class="post-metadata">

**Author:** ![snowbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Post date:** [August 22, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/debian-hosting-setup/65932/5 "2006-08-22T15:06:15Z")

</div>

apache 2.2 isnt even in testing (at least not in mine) but it works  
great  
when compiled from source. i did it too and its great. i cant give you a  
link since im not at home, but google for “time for a grown up server  
apache  
mongrel\_cluster capistrano” or sth thats like the tutorial is called.  
just  
follow it and youve got a nice box

2006/8/22, Alan F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> chance to do it right. My only real constraint is that the
> 
> >

–  
Michael S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

[www.siebert-wd.de](http://www.siebert-wd.de) - Gedanken lesen  
[www.stellar-legends.de](http://www.stellar-legends.de) - Weltraum-Browsergame im Alpha-Stadium

---

<div class="post-metadata">

**Author:** ![snowbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Post date:** [August 22, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/debian-hosting-setup/65932/6 "2006-08-22T16:17:58Z")

</div>

I’m underway installing Apache2.2…but…

My default mysql installation seems to kick off 10 mysqld instances when  
the mysqld\_safe script is invoked. That’s ridiculous for the traffic  
I’m expecting. I’m having enormous difficulty tracking down where this  
setting is. Nothing obvious in my.cnf or even inside the mysqld\_safe  
script.

All my googling takes me to mysqld\_multi, which I don’t think I’m using.

Again, any help appreciated.

A.
