Redmine 2.1 stable on Windows 8 as a service

Adi asked:

Wamp Server:

Apache Version : 2.2.22
PHP Version : 5.4.3  
MySQL Version : 5.5.24  

Ruby:

ruby 1.8.7 (2012-06-29 patchlevel 370) [i386-mingw32]

Gem:

1.8.24

Gems:

actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
arel (3.0.2)
builder (3.0.4, 3.0.0)
bundler (1.2.1)
cgi_multipart_eof_fix (2.5.0)
coderay (1.0.8)
daemons (1.1.9)
erubis (2.7.0)
eventmachine (1.0.0 x86-mingw32)
fastercsv (1.5.5)
gem_plugin (0.2.3)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.0.3)
json (1.7.5)
mail (2.4.4)
metaclass (0.0.1)
mime-types (1.19)
mocha (0.12.3)
mongrel (1.1.5 x86-mingw32)
mongrel_service (0.4.0)
multi_json (1.3.6)
mysql (2.8.1 x86-mingw32)
net-ldap (0.3.1)
nokogiri (1.5.5 x86-mingw32)
pg (0.14.1 x86-mingw32)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.8)
railties (3.2.8)
rake (0.9.2.2)
rdoc (3.12)
redcarpet (2.2.2)
rmagick (2.13.1, 2.12.0 mswin32)
ruby-openid (2.1.8)
rubygems-update (1.8.0)
shoulda (2.11.3)
sprockets (2.1.3)
sqlite3 (1.3.6 x86-mingw32)
thin (1.5.0)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.12)
tzinfo (0.3.34)
webrick (1.3.1)
win32-api (1.4.8 x86-mingw32)
win32-service (0.7.2 x86-mingw32)
windows-api (0.4.2)
windows-pr (1.2.2)
yard (0.8.3)

How can I make Redmine run as a service? I have tried mongrel, win32 service + taskill and got no results.

I don’t understand what I’m doing wrong. Even more, redmine won’t start using thin or *mongrel_rails start -e production* but it will work as a charm with ruby script/rails server webrick -e production

I’m glad it works but I wish I could use it as a service and integrate it in Apache.

Any help would be appreciated


I answered:

You install a production-quality Rails server, such as Phusion Passenger. This plugs into Apache (or nginx) as a module, much like mod_php does for PHP. WEBrick is only really suitable for development since it can only handle one request at a time.

And, most likely, you use an operating system other than Windows.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.