[typo] Beginners Error help,
Tobias Luetke
tobias.luetke at gmail.com
Mon Jun 27 23:28:39 EDT 2005
Hehe,
thats no error, thats actually ruby code.
It looks like your apache doesn't have mod_fastcgi installed. If you
are on gentoo you need to add -D FASTCGI to the apacheopts.
On 6/27/05, Duran Goodyear <duran at alphex.com> wrote:
> This is my first post, so be kind.
>
> I received this error message while trying to get typo (latest stable) running
> on my dev laptop using apache 2 (latest stable).
>
> begin code---
>
> #!/usr/local/bin/ruby
>
> def dispatcher_error(path,e,msg="")
> error_message =
> "[#{Time.now}] Dispatcher failed to catch: #{e} (#{e.class})\n
> #{e.backtrace.join("\n ")}\n#{msg}"
> Logger.new(path).fatal(error_message)
> rescue Object => log_error
> STDERR << "Couldn't write to #{path} (#{e} [#{e.class}])\n" << error_message
> end
>
> begin
> require File.dirname(__FILE__) + "/../config/environment"
> require 'dispatcher'
> require 'fcgi'
>
> log_file_path = "#{RAILS_ROOT}/log/fastcgi.crash.log"
>
> FCGI.each_cgi do |cgi|
> begin
> Dispatcher.dispatch(cgi)
> rescue Object => rails_error
> dispatcher_error(log_file_path, rails_error)
> end
> end
> rescue Object => fcgi_error
> dispatcher_error(log_file_path, fcgi_error, "FCGI process #{$$} killed by
> this error\n")
> end
>
>
> end code--
>
> Any thoughts?
>
> Thanks!
>
> ___________________________________________
> duran.goodyear | duran at alphex.com | 267.978.2106
>
>
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>
--
Tobi
http://www.snowdevil.ca - Snowboards that don't suck
http://typo.leetsoft.com - Open source weblog engine
http://blog.leetsoft.com - Technical weblog
More information about the Typo-list
mailing list