rails:991
From: "NK" <nk@n...>
Date: Sat, 11 Mar 2006 20:27:14 +0900 (JST)
Subject: [rails:991] Re: typoが動作しない
自己レスです。
質問させていただいたFreeBSD5.4Rの環境では、何をしても
進展がなかったので、FreeBSD 6.0Rの環境にRoR環境を作成
し、いろいろテストを行ってみたところ、以下の環境&設定で
動作しました。(構築したRubyそのものに問題があるのかも・・)
moroさんのブログも参考にしてみましたが、私の構築した
FreeBSD 6.0環境では動作しませんでした。
どなたか、FreeBSD系のOSでうまく動作している方、の環境
および設定ファイル等提示していただけると幸いです。
以下、動作したFreeBSD6.0R環境と設定内容を記します。
●環境:
FreeBSD 6.0R
ruby 1.8.4 (2005-12-24) [i386-freebsd6]
通常版をportsでコンパイル&インストール
mysql-ruby-2.7
ruby-fcgi-0.8.6
rubygems-0.8.11
MySQL 4.1.18 および 4.0.26
rails 1.0.0
●設定ファル(抜粋)
"check-local" => "disable" が今回のポイントになりました。
ですが、マニュアルに書かれている内容と動作がどうも違う気が
してなりません。
########################################################################
# typo
########################################################################
$HTTP["url"] =~ "^/typo/" {
#url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
fastcgi.debug = 0
server.document-root = "/usr/local/www/typo/public"
alias.url = ("/typo/" => "/usr/local/www/typo/public/")
server.indexfiles = ( "dispatch.fcgi" )
server.error-handler-404 = "/typo/dispatch.fcgi"
accesslog.filename = "/usr/local/www/typo/log/access_log"
fastcgi.server = (
"/typo/dispatch.fcgi" => ((
#"/typo/" => ((
"check-local" => "disable",
"bin-path" => "/usr/local/www/typo/public/dispatch.fcgi",
"socket" => "/tmp/rails-typo.socket",
#"strip-request-uri" => "/typo/",
"min-procs" => 2,
"max-procs" => 2,
#"bin-environment" => ( "RAILS_ENV" => "production" )
"bin-environment" => ( "RAILS_ENV" => "development" )
))
)
}
> NKと申します。
> railsの勉強がてら、typoをインストールしてみたのですが、
> 行き詰まっております。どうか、ご教示お願いします。
>
> 現象:
> http://localhost/typo/admin/sidebar と
> http://localhost/typo/
> にアクセスすると、「500 - Internal Server Error」が表示される(500.html)。
> その他は動作します。
> エラーログは以下をはいております。
> (mod_fastcgi.c.2263) unexpected end-of-file (perhaps the fastcgi process
> died): pid: 5300 fcgi-fd: 9 remote-fd: 8
> 2006-03-09 21:00:58: (mod_fastcgi.c.3021) child signaled: 4
> 2006-03-09 21:00:58: (mod_fastcgi.c.3064) response not sent, request sent:
> 892 connection-fd: 8 fcgi-fd: 9
>
>
> 環境:
> freebsd 54.R
> lighttpd 1.4.10
> ruby 1.8.4 (2005-12-24) [i386-freebsd5]
> rails (1.0.0)
> mysql 4.0.26
> typoのインストール先: /usr/local/www/data/typo
>
> 設定内容 (lighttpd.conf)
>
> server.modules = (
> "mod_rewrite",
> "mod_alias",
> "mod_access",
> "mod_auth",
> "mod_fastcgi",
> "mod_cgi",
> "mod_webdav",
> "mod_accesslog" )
>
> server.document-root = "/usr/local/www/data/"
> server.errorlog = "/var/log/lighttpd/lighttpd.error.log"
> accesslog.filename = "|/usr/local/sbin/cronolog
> /var/log/lighttpd/access_log_L.%Y%m%d"
> server.pid-file = "/var/run/lighttpd.pid"
>
> fastcgi.server = (
> ".php" => ((
> "bin-path" => "/usr/local/bin/php",
> "socket" => "/tmp/php.socket",
> "max-procs" => 2,
> "bin-environment" => (
> "PHP_FCGI_CHILDREN" => "3",
> "PHP_FCGI_MAX_REQUESTS" => "500"
> ),
> "bin-copy-environment" => (
> "PATH", "SHELL", "USER"
> ),
> "broken-scriptfilename" => "enable"
> )),
> "/typo/dispatch.fcgi" => ((
> "socket" => "/tmp/rails-typo.socket",
> "bin-path" => "/usr/local/www/data/typo/public/dispatch.fcgi",
> #"strip-request-uri" => "/typo/",
> "min-procs" => 2,
> "max-procs" => 4,
> "bin-environment" => ( "RAILS_ENV" => "production" )
> ))
> )
>
> #fastcgi.debug = 0
> #url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
>
> alias.url = ("/typo" => "/usr/local/www/data/typo/public")
> $HTTP["url"] =~ "^/typo/" {
> server.indexfiles = ( "index.html", "dispatch.fcgi" )
> server.error-handler-404 = "/typo/dispatch.fcgi"
> accesslog.filename = "|/usr/local/sbin/cronolog
> /usr/local/www/data/typo/log/access_log_L.%Y%m%d"
> server.errorlog = "/usr/local/www/data/typo/log/error.log"
> }
>
>
>
>
>
> --
> ML: rails@r...
> 使い方: http://QuickML.com/
>
--
ML: rails@r...
使い方: http://QuickML.com/
987 2006-03-09 13:35 [nk@n... ] typoが動作しない -> 991 2006-03-11 12:27 ┗[nk@n... ] 992 2006-03-11 12:41 ┗[nk@n... ] 994 2006-03-12 05:30 ┗[don@n... ] 995 2006-03-12 10:36 ┗[nk@n... ] 996 2006-03-12 16:16 ┗[kazuhiko@f... ] 997 2006-03-12 16:48 ┗[nk@n... ]