# Windows/Apache2/MySql/RoR Help? (Plus rant!)

**URL:** <https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902>\
**Category:** Deployment\
**Created:** [September 18, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902 "2007-09-18T17:43:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [September 18, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/1 "2007-09-18T17:43:25Z")

</div>

I have a pre-existing installation of apache2.2/php/mysql on Windows  
Server 2003. I just want to install rails to work with it. Does anyone  
know of any decent information about how to do this?

It doesn't inspire confidence in Rails when I search the web for a way to get RoR working with a pre-existing installation of Apache and all I can find is a million people telling me to "go get InstantRails!" Instant Rails is, apparently, for people who don't already have a server and who just want to open a folder and be done with it... in other words, it is for unserious developers with no established business in web development. And apparently, these are the only people using Ruby.

As someone with no established business in web developent, I can say  
firsthand that this makes me question why “serious” people aren’t using  
Rails or asking questions about how to get it working with their php  
servers… why aren’t they migrating?

Okay… thanks for any info!

---

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [September 18, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/2 "2007-09-18T18:38:00Z")

</div>

Every one I know that’s doing this is running their installations on  
some iteration of linux, which is why you’re probably not finding a  
lot of Windows information.

–

Jesse P.  
Blue Box Group, LLC

p. +1.800.613.4305 x801  
e. removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [September 18, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/3 "2007-09-18T18:52:09Z")

</div>

I know this is Linux based, but it should help you. Same basic idea.  
Setup up Apache to be your proxy to mongrel which runs your rails web  
apps. I think you can install mongrel simply with “gem install  
mongrel”.

[http://mongrel.rubyforge.org/docs/apache.html](http://mongrel.rubyforge.org/docs/apache.html)

Hope this helps get you closer to where you need to go.

Josh

---

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/4 "2007-09-25T23:00:41Z")

</div>

and of course gem install capistrano -y

---

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [September 25, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/5 "2007-09-25T23:09:22Z")

</div>

I use rails on XP, Win2003 server, Ubuntu and Fedora.  
Some things are naturally Linux based but there is lot, or sufficient,  
information for windows deployment.

---

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [October 17, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/6 "2007-10-17T17:45:01Z")

</div>

Those instructions work great, but if you read the OP, you will see that  
he  
needs help with Windows. While helpful, those instructions do not work  
for  
Windows deployments because mongrel\_cluster doesn’t work.

starting port 3000  
c:/ruby/lib/ruby/gems/1.8/gems/mongrel\_cluster-1.0.2  
/lib/mongrel\_cluster/init.rb  
:95:in ``’: Exec format error - mongrel\_rails start -d -e development -p  
3000 -P  
tmp/pids/mongrel.3000.pid -l log/mongrel.3000.log (Errno::ENOEXEC)

---

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [September 20, 2007, 12:20am UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/7 "2007-09-20T00:20:36Z")

</div>

First install Ruby:

[http://rubyinstaller.rubyforge.org/wiki/wiki.pl](http://rubyinstaller.rubyforge.org/wiki/wiki.pl)

Then install Rails

gem install rails --include-dependencies

Then mongrel and mongrel\_cluster

gem install mongrel -y  
gem install mongrel\_cluster -y

create a rails app:

rails appname

type ruby script/server

bam it’s running.

Now configure Apache server with mod\_proxy

[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/)

All this was available with the help of google. 😉

If you need to know how to add gems, libraries, language syntax, etc -  
there is a wealth of information out there, plus books.

Robert

On Sep 18, 8:43 am, Dave S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![dnstevenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Post date:** [October 17, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902/8 "2007-10-17T17:47:22Z")

</div>

I wrote a chapter for “Deploying Rails Applications” that will help you  
out.  
It should be included in the beta book any time now. I also presented on  
this at RailsConf back in May. It’s surprisingly easier than you think  
it  
is. I actually published several articles on this but with the book  
pending  
I can’t update those.

You can contact me directly if you need some help though. I’m always  
willing  
to help out.
