# Mongrel\_rails\_service is not recognized command error

**URL:** <https://www.ruby-forum.com/t/mongrel-rails-service-is-not-recognized-command-error/120193>\
**Category:** Rails\
**Created:** [November 14, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/mongrel-rails-service-is-not-recognized-command-error/120193 "2007-11-14T17:56:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![backz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@backz](https://www.ruby-forum.com/u/backz)\
**Post date:** [November 14, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/mongrel-rails-service-is-not-recognized-command-error/120193/1 "2007-11-14T17:56:39Z")

</div>

Hi,

I am trying to deploy RoR web app on windows server by using apache http  
server and mongrel (by Brian H.). Mongrel runs ok, but when I was  
trying to install mongrel as a windows service, I couldn’t execute  
‘mongrel\_rails\_service’ command. (I need to execute  
‘mongrel\_rails\_service install -n rails\_app2 -p 4001’)

I tried all possible gem install commands(gem install win32-service, gem  
install mongrel\_service, gem install mongrel, etc…) , but only  
installed mongrel\_rails and mongrel\_rails.cmd in ruby\bin directory.

Am I missing anything?

thx,

---

<div class="post-metadata">

**Author:** ![backz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@backz](https://www.ruby-forum.com/u/backz)\
**Post date:** [November 14, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/mongrel-rails-service-is-not-recognized-command-error/120193/2 "2007-11-14T21:33:32Z")

</div>

On Nov 14, 2007 11:56 AM, Daniel K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi,
> 
> I am trying to deploy RoR web app on windows server by using apache http  
> server and mongrel (by Brian H.). Mongrel runs ok, but when I was  
> trying to install mongrel as a windows service, I couldn’t execute  
> ‘mongrel\_rails\_service’ command. (I need to execute  
> ‘mongrel\_rails\_service install -n rails\_app2 -p 4001’)

The format is:

mongrel\_rails service::install -N rails\_app2 -p 4001

(note space between mongrel\_rails and service, and double-colon  
between service and install)

Documented here: [http://mongrel.rubyforge.org/docs/win32.html](http://mongrel.rubyforge.org/docs/win32.html)

HTH

---

<div class="post-metadata">

**Author:** ![backz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@backz](https://www.ruby-forum.com/u/backz)\
**Post date:** [November 15, 2007, 1:21am UTC](https://www.ruby-forum.com/t/mongrel-rails-service-is-not-recognized-command-error/120193/3 "2007-11-15T01:21:43Z")

</div>

Hi!

Those articles are woefully out of date because they’ve been rolled into  
“Deploying Rails Applications”. See  
[Pragmatic Bookshelf: By Developers, For Developers](http://www.pragprog.com/titles/fr_deployfor) details.

Most of those approaches aren’t really recommended anymore… Instead,  
you  
should consider Apache 2.2 + mod\_proxy\_balance, behind IIS if possible.  
Exact details are in the book, or you can contact me for specific help.

---

<div class="post-metadata">

**Author:** ![backz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@backz](https://www.ruby-forum.com/u/backz)\
**Post date:** [November 15, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/mongrel-rails-service-is-not-recognized-command-error/120193/4 "2007-11-15T19:06:34Z")

</div>

Thank you for your info. I just ordered the book. I used apache http  
server and mongrel and it seems to work for now. There are not many  
users for this project, so probably I will stay with this way for a  
while.

Brian H. wrote:

> Hi!
> 
> Those articles are woefully out of date because they’ve been rolled into  
> “Deploying Rails Applications”. See  
> [Pragmatic Bookshelf: By Developers, For Developers](http://www.pragprog.com/titles/fr_deployfor) details.
> 
> Most of those approaches aren’t really recommended anymore… Instead,  
> you  
> should consider Apache 2.2 + mod\_proxy\_balance, behind IIS if possible.  
> Exact details are in the book, or you can contact me for specific help.
