Apache2.2にアップグレードできない場合の対策
Leopard Serverの売りの一つがApache2対応.「サーバ管理」からボタン一つでアップグレードできるはずなのだけれども….
CANNOT_TRANSLATE_ERR
などいうダイアログ.ツレナイ返事.
サポートフォーラムの書き込みとは仔細が違うけれど,たぶん似たようなもんだいだろう.
bash-3.2# /System/Library/SErverSetup/translateApache.rb Exception `NoMethodError' at /System/Library/SErverSetup/translateApache.rb:145 - undefined method `[]' for nil:NilClass /System/Library/SErverSetup/translateApache.rb:145:in `xlate_and_copy': undefined method `[]' for nil:NilClass (NoMethodError) from /System/Library/SErverSetup/translateApache.rb:69:in `each' from /System/Library/SErverSetup/translateApache.rb:69:in `xlate_and_copy' from /System/Library/SErverSetup/translateApache.rb:1251 from /System/Library/SErverSetup/translateApache.rb:1246:in `each' from /System/Library/SErverSetup/translateApache.rb:1246
で,translateApache.rbを見る.Rubyの文法が解らないなりに読んでも,errordocument周りが怪しいことは解る.
bash-3.2# grep -i errordocument /etc/httpd/sites/* /etc/httpd/sites/0000_any_80_.conf: ErrorDocument 404 /error.html /etc/httpd/sites/0000_any_80_.conf.default: ErrorDocument 404 /error.html /etc/httpd/sites/0001_192.168.0.150_80_download.pizzafactory.jp.conf: ErrorDocument 404 /etc/httpd/sites/0003_192.168.0.150_80_www.pizzafactory.jp.conf: ErrorDocument 404 /error.html /etc/httpd/sites/0004_192.168.0.150_443_purchase.pizzafactory.jp.conf: ErrorDocument 404 /error.html /etc/httpd/sites/0005_192.168.0.150_80_www.monami-software.com.conf: ErrorDocument 404 /error.html
download.pizzafactory.jp.conf が怪しい.編集.
bash-3.2# /System/Library/SErverSetup/translateApache.rb bash-3.2#
エラーが出なくなった.
で,改めて,サーバ管理.app から,アップグレード.無事終了.
全ての情報を引き継げない?
会社の環境では,+ExecCGI を引き継げなかったようで,Joomlaが立ち上がらず一瞬ヒヤリとしました.
confファイルの全文チェックは欠かせないみたい.