# Using RoR w/ Apache/MySQL already installed

**URL:** <https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203>\
**Category:** Rails\
**Created:** [May 10, 2008, 12:21am UTC](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203 "2008-05-10T00:21:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![irksome](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@irksome](https://www.ruby-forum.com/u/irksome)\
**Post date:** [May 10, 2008, 12:21am UTC](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203/1 "2008-05-10T00:21:07Z")

</div>

Hi,

I already had the wamp server (Apache & php w/ mysql) installed and want  
to use RoR with it. I installed everything fine, but how do I get RoR  
to use the Apache server instead of starting the Webrick server that  
installed with it?

Also, is there any benefit to using sqlite over mysql in development  
since deployment will be using a mysql db? Seems like I’d have to go  
through a lot of trouble to migrate, so I should just develop in mysql.  
Correct?

Thanks!

Jay

p.s. If there’s a more appropriate forum, please let me know. thanks:)

---

<div class="post-metadata">

**Author:** ![irksome](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@irksome](https://www.ruby-forum.com/u/irksome)\
**Post date:** [May 10, 2008, 12:50am UTC](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203/2 "2008-05-10T00:50:10Z")

</div>

If you want to use Apache without having to install a proxy balancer  
such as mongrel or thin you can use mod\_rails, it works pretty well.  
Here’s the link [http://www.modrails.com/](http://www.modrails.com/)

–  
Thiago J.  
[http://www.railsfreaks.com](http://www.railsfreaks.com)

---

<div class="post-metadata">

**Author:** ![irksome](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@irksome](https://www.ruby-forum.com/u/irksome)\
**Post date:** [May 10, 2008, 8:54am UTC](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203/3 "2008-05-10T08:54:50Z")

</div>

Thiago J. wrote:

> If you want to use Apache without having to install a proxy balancer  
> such as mongrel or thin you can use mod\_rails, it works pretty well.  
> Here’s the link [http://www.modrails.com/](http://www.modrails.com/)
> 
> –  
> Thiago J.  
> [http://www.railsfreaks.com](http://www.railsfreaks.com)

Hi,

Thanks for the reply. Forgive my ignorance, but what is a “proxy  
balancer”?

So, I don’t know what mongrel is or what it means to proxy balance. Can  
you elaborate, or is there someplace that explains both what this means  
and how to do it?

I guess I don’t really care if I use apache or webrick on my development  
machine, except that if I need to use php, webrick isn’t going to cut  
it, is it? The production server is definitely Apache with mysql,  
though.

As I’ve never used RoR, I don’t know what the process is, so I’m just  
trying to save myself a lot of grief later on.

Thanks!

---

<div class="post-metadata">

**Author:** ![irksome](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@irksome](https://www.ruby-forum.com/u/irksome)\
**Post date:** [May 10, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203/4 "2008-05-10T13:07:59Z")

</div>

Mongrel is another web/application server that can be used as a  
platform for Rails applications. The quote-unquote best practice for  
a Rails deployment architecture using mongrel is one or more Apache  
servers accepting requests from the web and proxying them to one or  
more mongrel servers on the second tier. Check out  
[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/)  
for a good (albeit a little old) overview of this and other tools and  
their place within your environment.

On May 10, 8:54 am, Jay W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![irksome](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@irksome](https://www.ruby-forum.com/u/irksome)\
**Post date:** [May 10, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203/5 "2008-05-10T21:43:33Z")

</div>

Chris K. wrote:

> Mongrel is another web/application server that can be used as a  
> platform for Rails applications. The quote-unquote best practice for  
> a Rails deployment architecture using mongrel is one or more Apache  
> servers accepting requests from the web and proxying them to one or  
> more mongrel servers on the second tier. Check out  
> [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/)  
> for a good (albeit a little old) overview of this and other tools and  
> their place within your environment.
> 
> On May 10, 8:54ï¿½am, Jay W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Thanks for the replies. I will look these over and see what fits best.

Thanks again!

Jay
