FastCGI problem

FastCGI problem

Posted by: bdevos
Posted on: 2005-08-09 07:18:00

Hi,

I'm trying to install Typo 2.5.2, the latest version of the Rails powered weblog engine, all is fine with "./script -e production -p 9696", but when I'm trying to access the homepage, I just get the listing of my "public" directory that I set up in my subdomain details as explained here, instead of my my Typo default homepage ...

I guess this is related to FastCGI, it doesn't recognize dispatch.fcgi or something like that, but I don't know how to set that up correctly.
Do I have to modify a .htaccess file ? Do I have to change dispatch.fcgi (I already copied the latest version created from DH server) ?

Any help would be greatly appreciated,

B. Devos

Re: FastCGI problem

Posted by: twilcoxen
Posted on: 2005-08-10 00:55:00

Here's some notes on my setup of typo:

http://convergentarts.com/articles/2005/06/20/typo-on-dh

I didn't use the script you mention (9696) so can't be much use there.

-Tom


-Tom Wilcoxen
http://convergentarts.com
http://www.dreamhost.com/r.cgi?twilcoxen

Re: FastCGI problem

Posted by: bdevos
Posted on: 2005-08-10 01:53:00

Great, I was on your blog at this moment :)
I had not .htaccess file, now it contains :

RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
RewriteEngine On


BUT, as you're here ;) you could maybe help me with another error. I get a lot of routing errors. I saw your post about that but it didn't help.

ActionController::RoutingError (Recognition failed for "/images/powered.gif"):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in `recognition_failed'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in `recognize!'
/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request'

also for /stylesheets/... and /javascript/...

My routes.rb file is the default from Typo 2.5.2 with

  map.connect '/stylesheets/theme/:filename',
:controller => 'theme', :action => 'stylesheets'
map.connect '/javascript/theme/:filename',
:controller => 'theme', :action => 'javascript'
map.connect '/images/theme/:filename',
:controller => 'theme', :action => 'images'

What do I have to change ? Is it in routes.rb or in Typo's code ?

Edited by bdevos on 08/10/05 01:55 AM (server time).

Re: FastCGI problem

Posted by: twilcoxen
Posted on: 2005-08-17 21:14:00

Sorry I didn't see this til now. Are you still having trouble? I see with the example that there isn't a route that would serve powered.gif. The images route below is assuming all images are served from a 'theme' directory:

map.connect '/images/theme/:filename'

Your request should be '/images/azure/powered.gif' (assuming you're using that theme) OR you could add a route like the other but without the 'theme' part.

Is this a clean install of Typo? When I changed to the current version is when I first saw the themes directory. Could you have any old files around that wasn't using that directory?

-Tom

-Tom Wilcoxen
convergent arts

Re: FastCGI problem

Posted by: bdevos
Posted on: 2005-08-19 09:09:00

It's OK with typo 2.5.4 now, thanks ;)

Tags: fcgitypodispatchhtaccess filepublic directorysubdomainappreciatedrecognizeweblogguess