That pretty much looks like it’s the answer.  I took the advice in the link in 
your original email about rebuilding pycrypto using MinGW, and so far it all 
works perfectly.  I guess mod_fastcgi and mod_fcgid are no longer viable 
options on windows.  Thanks for your help!

From: chip...@gmail.com [mailto:chip...@gmail.com] On Behalf Of Christian 
Hammond
Sent: Friday, February 18, 2011 6:30 PM
To: Bragg Nate
Subject: Re: CGI troubles

So it seems fastcgi on Windows works differently. Just found this Django 
ticket, which could be relevant:

http://code.djangoproject.com/ticket/8742

Ideally, you'd go back to mod_wsgi, as it'll be better supported in general. 
What broke with Python 2.7?

Christian

--
Christian Hammond - chip...@chipx86.com<mailto:chip...@chipx86.com>
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

On Fri, Feb 18, 2011 at 1:37 PM, Bragg Nate 
<nate.br...@adb-air.com<mailto:nate.br...@adb-air.com>> wrote:
Here is my apache-fastcgi.conf.  The only changes shown here are in the 
Directory section.  Also, I tried switching all of the slashes to no avail 
(even switching them to double backslashes).  I get the same error.


<IfModule mod_fcgid.c>
      AddHandler fcgid-script .fcgi
</IfModule>

<IfModule mod_fastcgi.c>
      AddHandler fastcgi-script .fcgi

      FastCGIServer "C:/mars/reviews/htdocs/reviewboard.fcgi" -socket 
"C:/mars/reviews/tmp/fastcgi.sock"
</IfModule>

<VirtualHost *:80>
      ServerName localhost
      DocumentRoot "C:/mars/reviews/htdocs"

      # Alias static media requests to filesystem
      Alias /media "C:/mars/reviews/htdocs/media"
      Alias /errordocs "C:/mars/reviews/htdocs/errordocs"

      # Error handlers
      ErrorDocument 500 /errordocs/500.html

      <Directory "C:/mars/reviews/htdocs">
            Options +ExecCGI
            AllowOverride All
            Order allow,deny
            Allow from all
      </Directory>

      # Direct all other requests to the fastcgi server
      RewriteEngine on
      <IfModule mod_fcgid.c>
            RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
            RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]
      </IfModule>
      <IfModule mod_fastcgi.c>
            RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
            RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]
      </IfModule>
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^/(.*)$ /reviewboard.fcgi/$1 [QSA,L]
</VirtualHost>

From: chip...@gmail.com<mailto:chip...@gmail.com> 
[mailto:chip...@gmail.com<mailto:chip...@gmail.com>] On Behalf Of Christian 
Hammond
Sent: Friday, February 18, 2011 4:02 PM
To: reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>
Cc: Bragg Nate
Subject: Re: CGI troubles

Hi Nate,

I can't say I have any experience with mod_fcgid on Windows, so I may not be 
much help. Shame you can't use Linux (in a VM or something) instead, but I get 
that some places are strict about OS choice for servers.

So the latter error looks to be a file path formatting issue. Can you show me 
the config file? Is it using "/" or "\"? It could be that it's generated wrong 
(I've seen Python do that on Windows when part of cygwin, though it could be 
our fault).

People have posted about the "DLL load failed" error on Windows. You may want 
to read through the other posts:

http://groups.google.com/group/reviewboard/search?group=reviewboard&q=dll+load+failed&qt_g=Search+this+group

Christian

--
Christian Hammond - chip...@chipx86.com<mailto:chip...@chipx86.com>
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com
On Fri, Feb 18, 2011 at 10:30 AM, Nate 
<nate.br...@adb-air.com<mailto:nate.br...@adb-air.com>> wrote:
Hi!  I am attempting a clean install of the latest reviewboard on
Apache 2.2 on Windows XP (sadly, I have no choice over the operating
system).

In the past, we had no trouble using python 2.6 and wsgi, but we are
trying to upgrade everything to python 2.7, and for some reason wsgi
stopped working.  Naturally, I decided to try both mod_fcgid AND
mod_fastcgi, but I can't seem to get either of those working either,
and I was hoping that you might be able to help me out.  These are the
versions of EVERYTHING that I have installed:
-----------------------
httpd-2.2.17-win32-x86-openssl-0.9.8o.msi

sqlite-dll-win32-x86-3070500.zip
sqlite-shell-win32-x86-3070500.zip

diffutils-2.8.7-1.exe
patch-2.5.9-7-setup.exe

memcached-1.2.6-win32-bin.zip

mod_fcgid-2.3.6-win32-x86.zip
mod_fastcgi-2.4.6-AP22.dll
mod_wsgi-win32-ap22py27-3.3.so<http://mod_wsgi-win32-ap22py27-3.3.so>

python-2.7.1.msi
setuptools-0.6c11.win32-py2.7.exe
PIL-1.1.7.win32-py2.7.exe
py27-pysvn-svn1612-1.7.4-1321.exe
pycrypto-2.3.win32-py2.7.zip
(and through easy_install, python-memcached, and of course,
reviewboard ;)
-----------------------

>From the command line, I run:

rb-site install C:\mars\reviews

And then I modify my default httpd.conf, adding the line:

LoadModule fcgid_module modules/mod_fcgid.so
(or LoadModule fastcgi_module modules/mod_fastcgi.dll)
(or LoadModule wsgi_module modules/mod_wsgi.so)

all the way at the bottom, I add the line:

Include C:\mars\reviews\conf\apache-fastcgi.conf
(or Include C:\mars\reviews\conf\apache-wsgi.conf)

THE ONLY CHANGE I make to this reviewboard conf file is to add "Order
allow, deny" and "Allow from all" commands under the "<Directory>"

The wsgi fails with the thorny error:
ImproperlyConfigured: Error importing middleware
reviewboard.admin.middleware: "DLL load failed: The specified module
could not be found."
Reviewboard claims to be sleeping, which, by the way, made coffee
shoot from my nose.

The fcgid fails silently... it just refuses to serve anything but 403.

FastCGI fails more violently:
[crit] (OS 123)The filename, directory name, or volume label syntax is
incorrect.  : FastCGI: can't exec server "C:/mars/reviews/htdocs/
reviewboard.fcgi", CreateNamedPipe() failed
[crit] (OS 123)The filename, directory name, or volume label syntax is
incorrect.  : FastCGI: can't start server "C:/mars/reviews/htdocs/
reviewboard.fcgi": spawn_fs_process() failed
This did *not* make coffee shoot from my nose.

I am pretty much at a loss here, and I'm hoping there's something that
can be done to help me.  Pretty please!

--
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com<mailto:reviewboard%2bunsubscr...@googlegroups.com>
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to