Project

General

Profile

Redmine + IIS : headache ! Cannot switch to production environment ?

Added by Arnaud Lesauvage about 16 years ago

Hi all !
I am looking for the perfect issue tracker for a very long time now, and Redmine seems to be just what I need !
Great, but the problem is that we are running a 100% windows environment, and RoR / IIS is not the perfect couple...

I followed all the how-to's I found, but I am stuck with a problem.
I am familiar with IIS, but not at all with Ruby.

I think I installed everything ruby and redmine related fine : I can run redmine perfectly with the webrick server (very nice).
Now, I'm trying to setup IIS (on windows 2003, so this is IIS 6.0) to serve my redmine app.
I already have a lot of sites on this server, some of them running php with fastcgi (fastcgi works fine for them).

I just created a new website, I pointed its root to D:\wwwroot\redmine\public, I added the wildcard mapping in this site for fcgiext.dll, and modified my fcgiext.ini to look like this (1929311814 is my redmine web site) :

[Types]
php=PHP
fcgi=MAPSERVER
*:1929311814=RUBY
fcgi:1929311814=RUBY

[PHP]
ExePath=C:\PHP\php-cgi.exe
ActivityTimeout=180

[MAPSERVER]
ExePath=D:\wwwroot\MapServer\cgi-bin\mapserv.exe

[RUBY]
ExePath=C:\Ruby\bin\ruby.exe
Arguments=D:\wwwroot\redmine\public\dispatch.fcgi
;EnvironmentVars=RAILS_ENV:"production" 
IgnoreDirectories=0
IgnoreExistingFiles=1
QueueLength=1000
MaxInstances=4
InstanceTimeout=30
InstanceMaxRequests=200

If I call this web site (let's say its url is redmine.intranet.domain.com, so I call http://redmine.intranet.domain.com/projects, I have a "directory listing denied" error if I try to access the root, which seems logical), I have an error "acces denied for user 'root@localhost'".
I found out that redmine was running under development environment, "ruby script/about" returned :


About your application's environment
Ruby version              1.8.6 (i386-mswin32)
RubyGems version          1.3.1
Rails version             2.1.2
Active Record version     2.1.2
Action Pack version       2.1.2
Active Resource version   2.1.2
Action Mailer version     2.1.2
Active Support version    2.1.2
Application root          D:/wwwroot/redmine
Environment               development
Database adapter          mysql

I first tried to change this in fcgiext.dll (you can see the commented line above : ;EnvironmentVars=RAILS_ENV:"production"), and this gave me an error 500 (0x80004005).

I then tried to specify this in environment.rb, as described by some how-to's (uncommented the line "ENV['RAILS_ENV'] ||= 'production'"), and I got the same error.

Now, If I try to set the environment in environment.rb and call dispatch.fcgi from command-line, (just typing "ruby dispatch.fcgi") it works ! I do have a correct output !

What's wrong with my configuration ?

Any help would be very appreciated !

Regards
Arnaud


Replies (1)

RE: Redmine + IIS : headache ! Cannot switch to production environment ? - Added by Arnaud Lesauvage about 16 years ago

Lo, it works !
I don't understand where the problem was...

Is it possible that deleting a 'delete.me' file within the 'log' folder unlocked my redmine ?
I can't see anything else that I did...

    (1-1/1)