はじめての自宅サーバ構築 - Fedora/CentOS - Last Update 2008/12/01
It opened to 2004/09/19. Visitors
Pageviews
Today(IP/PV)
3,607,266
14,149,267
284/1,161
このページは表示専用です。新規投稿・レスや最新情報はこちらです。

このスレッドはクローズされています。記事の閲覧のみとなります。
UserDirでcgiが動くようになったのですが、条件付きで?
日時: 2006/07/13 00:27
名前: Asps

先日は、もう一つの掲示板でお世話になりました。
fc5を入れ直しを何度か試みてみました。それと、都合によりPC本体が変更になり、今までインテル系のCPUでしたが、現在は、AMD系の64bitのCPUのPCです。
折角、64bitCPUなので、FC5__X64を入れてみました。状況は以下の通りです。

Document rootは問題なし。UserDirでcgiを動かす場合、UserDir直下ではInternal Server Error500になってしまいますが、サブディレクトリを作成して、そこで実行すると、正常にcgiが動きます。cgi以外は、UserDir直下でも問題なく動作します。
http://192.168.1.1?/*.cgi はOK。
http://192.168.1.1?/~linux/*/*.cgi はOK。
http://192.168.1.1?/~linux/*.cgi は動作しない。
この様な状況です。
httpdのUserDirの部分を以下に記述しておきます。
あと一つですが、シャットダウンするときに、エラーが出ます。
これも、記述しておきますので、ご指導よろしくお願いします。

httpd.conf:
<IfModule mod_userdir.c>
  #
  # UserDir is disabled by default since it can confirm the presence
  # of a username on the system (depending on home directory
  # permissions).
  #
  UserDir disable root webadmin system

  #
  # To enable requests to /~user/ to serve the user's public_html
  # directory, remove the "UserDir disable" line above, and uncomment
  # the following line instead:
  #
  UserDir public_html

</IfModule>

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
#  AllowOverride FileInfo AuthConfig Limit
#  Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
   Options Includes ExecCGI FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
#  <Limit GET POST OPTIONS>
#    Order allow,deny
#    Allow from all
#  </Limit>
#  <LimitExcept GET POST OPTIONS>
#    Order deny,allow
#    Deny from all
#  </LimitExcept>
</Directory>

シャットダウン時のエラーメッセージ:
Stopping system message bus : setitimer : hcid (pid = 1568) provided invalid timeval it_value: tv_sec =0 tv_usec = 5000000
setitimer: hcid (pid = 1568) provided invalid timeval it_interval: tv_sec = 0 tv_usec = 5000000

hcid[1568]: segfault at 0000000000000030 rip 00002aaaaabebf18 rsp 00007fff36e5b870 error 4

以上です。
お手数をおかけしますが、よろしくお願いします。
Re: UserDirでcgiが動くようになったのですが、条件付きで? ( No.1 )
日時: 2006/07/13 21:35
名前: ひで

httpd.conf:
<IfModule mod_userdir.c>
  #
  # UserDir is disabled by default since it can confirm the presence
  # of a username on the system (depending on home directory
  # permissions).
  #
  UserDir disable root webadmin system

  #
  # To enable requests to /~user/ to serve the user's public_html
  # directory, remove the "UserDir disable" line above, and uncomment
  # the following line instead:
  #
  UserDir .

</IfModule>

<Directory /home/*>

上記ではどうでしょう?
Re: UserDirでcgiが動くようになったのですが、条件付きで? ( No.2 )
日時: 2006/07/15 01:10
名前: Asps

ひで様
早速のレスポンスありがとうございました。
上記の様に、http.confを変更してみましたが、UserDir直下のファイルがクライアントからアクセス出来なくなる様です。
もう少し、色々試してみようと思います。
それと、シャットダウン時のエラー
Stopping system message bus : setitimer : hcid (pid = 1568) provided invalid timeval it_value: tv_sec =0 tv_usec = 5000000
setitimer: hcid (pid = 1568) provided invalid timeval it_interval: tv_sec = 0 tv_usec = 5000000
hcid[1568]: segfault at 0000000000000030 rip 00002aaaaabebf18 rsp 00007fff36e5b870 error 4
は、Bluetoothのサービスを停止すれば、出なくなりました。この件は、これで解決出来たと思います。
あと、MTU値を変更するために、"/etc/sysconfig/network-scripts/ifcfg-eth0"にMTU=XXXXを追加することで
再起動後も、MTU値が希望の値にありますが、この方法で良かったでしょうか?
よろしくお願いします。
Re: UserDirでcgiが動くようになったのですが、条件付きで? ( No.3 )
日時: 2006/07/17 17:22
名前: ひで

UserDir ./

ではどうでしょうか?

MTUはお書きになった通りで大丈夫だと思います。

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