Strangley, if I run it from the command line, it seems to process it
[hazula][/var/www/tracks/public]$ ./dispatch.fcgi
Content-Type: text/html; charset=utf-8
Set-Cookie: _tracks_session_id=50e1d6ea2534cd0ea82e2fcfcfe3f704; path=/
Status: 302 Found
Location: http://:/login
X-Runtime: 1ms
Cache-Control: no-cache
Content-Length: 80
<html><body>You are being <a href="http://
:/login">redirected</a>.</body></html>
Then I modified dispatch.fcgi to read
----------------
require File.dirname(__FILE__) + "/../config/environment"
#require 'fcgi_handler'
require 'rubygems'
gem 'fcgi', '=0.8.7'
require 'fcgi'
--------------
running /var/www/tracks/public/dispatch.fcgi
/tracks-1.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:445:in
`load_missing_constant': uninitialized constant RailsFCGIHandler (NameError)
from
/root/usr/local/getontracks/tracks-1.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:77:in
`const_missing'
from
/root/usr/local/getontracks/tracks-1.7/vendor/rails/activesupport/lib/active_support/dependencies.rb:89:in
`const_missing'
from /var/www/tracks/public/dispatch.fcgi:30
Even if I use a script alias or no url rewriting it still goes to the 500
page and I can figure out how to print the stack trace.
-Benjamin
On Wed, May 6, 2009 at 2:42 PM, Benjamin Fleischer <[email protected]>wrote:
> I just tried again, if errors are being sent to a log, I'm not sure where.
> I don't see anything relevant in /path/to/tracks/log or in /var/log or
> where I specify in dispatch.fcgi
>
> Is it deprecated, perhaps?
>
> -Benjamin
>
>
> On Wed, May 6, 2009 at 1:59 PM, Reinier Balt <[email protected]> wrote:
>
>> No, I’m not using fcgi myself.
>>
>>
>>
>> If you see a 500 error, there should be an error trace in your tracks log
>> file in /path/to/tracks/log
>>
>> Perhaps that could give you a clue
>>
>>
>>
>> Reinier
>>
>>
>>
>> *Van:* [email protected] [mailto:
>> [email protected]] *Namens *Benjamin Fleischer
>> *Verzonden:* woensdag 6 mei 2009 20:42
>> *Aan:* track-discuss
>> *Onderwerp:* [Tracks-discuss] Re: tracks with fastcgi
>>
>>
>>
>> tried that as well, still goes to the 500 error page
>>
>> I also tried all sorts of options of commenting and uncommenting in the
>> htaccess, in httpd.conf and even cgi. No dice. Have you gotten it working
>> with fcgi?
>>
>> -Benjamin
>>
>> On Wed, May 6, 2009 at 1:35 PM, Reinier Balt <[email protected]> wrote:
>>
>> Shouldn’t you uncomment the AddHandler in .htaccess?
>>
>>
>>
>> Reinier
>>
>>
>>
>> *Van:* [email protected] [mailto:
>> [email protected]] *Namens *Benjamin Fleischer
>> *Verzonden:* dinsdag 5 mei 2009 0:21
>> *Aan:* track-discuss
>> *Onderwerp:* [Tracks-discuss] tracks with fastcgi
>>
>>
>>
>> I'm trying to minimize my memory footprint.
>> with webrick, mongrel, eventmachine, thin,
>> each takes about 55mb of ram
>> with mod_rails passenger it takes 80 or more.
>>
>> I wanted to try with fcgi but couldn't get it working
>> apache 2
>> ruby 1.8.6
>> gem rails
>> gem fcgi
>>
>> I tried it two ways:
>> In httpd.conf
>> Both)AddHandler fastcgi-script .fcgi
>> ln -s /var/www/tracks/public /var/www/html/publictracks
>> 1)
>> Alias /tracks /var/www/html/publictracks
>> 2)
>> Alias /tracks /var/www/html/publictracks
>> <Directory /var/www/html/publictracks>
>> RewriteEngine on
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteRule ^/(.*) dispatch.fcgi [QSA,L]
>> </Directory>
>>
>> And in /var/www/tracks/public
>> .htaccess
>> # AddHandler fcgid-script .fcgi
>> # AddHandler fastcgi-script .fcgi
>> # AddHandler cgi-script .cgi
>> Options +FollowSymLinks +ExecCGI
>> RewriteBase /tracks
>> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>>
>> any ideas?
>>
>> -Benjamin
>>
>>
>>
>
>
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss