はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 当サイト情報 >> スレッド

????????????????????¨????°???¨??§????????°???????¨??????¬???????????°?????±??????????????§??????

このスレッドはクローズされています。記事の閲覧のみとなります。

 MTの導入について。
????????? 2006/03/17 04:51
????????? daisuke   <lupin_ac@yahoo.co.jp>

?不明点・障害内容:MT導入のトラブル


こんにちは。いつも御世話になってます。
こちらのHPでのMT導入のガイドラインに沿ってインストールを
進めていたのですが、初期ログイン時の項目で止まってしまいました。

内容はhttp://サーバーのアドレス/cgi-bin/mt.cgiにアクセスして
インストールボタンを押してもなにも反応がなくさきに進めなくなって
おります。

また、全てこちらのHPのガイドラインに沿って作業していたのですが
cgiの実行される場所がwww/cgi-bin/となってしまってます。
説明上ではwww/html/cgi-bin/と進んでいるのですが・・・
mt-check.cgiの項目にある画像を拡大して調べてみても
www/html/cgi-binとなってます。自分の場所を確認してもwww/cgi-bin/
でした。ここの設定が違うとMTのインストールの設定も変わって
うまくいっていないのではないか?っと思ってしまいまして・・・

くだらない質問ですがどうかよろしくお願いいたします><

■ コンテンツ関連情報

 Re: MTの導入について。 ( No.1 )
????????? 2006/03/16 10:07
????????? 管理者

daisukeさん、こんにちは。

だいぶ混乱されてしまっている様なので、整理しながら説明させて頂きます。

【当サイトの構築】
 ・CGI(Perl)の実行場所
   「/var/www/html/cgi-bin/」
 ・Movable Typeの設置場所
   上記「/var/www/html/cgi-bin/」


まず、Webサーバ(apache)にCGIを実行させる場所を明記します。
以下の場所がデフォルトで指定されているCGIの場所になります
「/etc/httpd/conf/httpd.conf」
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
  AllowOverride None
  Options None
  Order allow,deny
  Allow from all
</Directory>


ScriptAliasはその名の通り「別名」ですのでURLに「・・・/cgi-bin/」と指定されると「/var/www/cgi-bin/」を見に行きます。
ディレクティブ「<Directory> 〜 </Directory>」がそのパスに対してどのような動作をapacheにさせるか明記します。


daisukeさんの場合、「/var/www/cgi-bin」になってしまうという事なので、上記の設定になっているはずです。


当サイトの様に構築するならば以下の様に変更してください。
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
#ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
     ↑
コメントアウト

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/html/cgi-bin">
  AllowOverride All
  Options Includes ExecCGI FollowSymLinks
  Order allow,deny
  Allow from all
</Directory>

※:上記は「/var/www/html/cgi-bin」以下に対して「SSI」「CGI」の実行を許可しています
  また、「AllowOverride」を「All」にする事により「.htaccess」の組み込みを可能にさせます。
  (単純にCGIだけを許可させたいなら「Options ExecCGI」で良いでしょう。)


変更を加えたらapacheを再起動してください。(再起動しないと設定変更が有効になりません。)


後は、当サイトで紹介している通り、「/var/www/html/cgi-bin」配下にMTを配置すれば動作するはずです。
 Re: MTの導入について。 ( No.2 )
????????? 2006/03/17 04:51
????????? daisuke   <lupin_ac@yahoo.co.jp>

いつもお手数おかけしてもうしわけありません。
おかげさまで無事導入することができました。
これからいろいろ調べてMTを勉強して行こうと思います。

いろいろありがとうございました^^

■ その他

ページ先頭へ


Copyright(©)2004-2018 First home server construction. All Right Reserved.