RHELでWebサーバーを構成する

RHELでWebサーバーを構成する

RHEL 5.6システムにリクエストトラッカーをインストールしました。 RTインストールが正常に完了し、リクエスト追跡ツールを実行するために必要なApache Webサーバー、mysql、phpmyadminもインストールしました。しかし、最後のステップでRTを開くにはhttp://serveripaddress/rt

私のシステムにApache Webサーバーがインストールされています。だから私はhttp://localhost/rtシステムに入力しました。ただし、404ページが見つからないというエラーが発生します。

私はこれが以下に関連していると信じています。rt_siteconfig.pm文書。ファイルの内容は次のとおりです。

# Any configuration directives you include  here will override
# RT's default configuration file, RT_Config.pm
#
# To include a directive here, just copy the equivalent statement
# from RT_Config.pm and change the value. We've included a single
# sample value below.
#
# This file is actually a perl module, so you can include valid
# perl code, as well.
#
# The converse is also true, if this file isn't valid perl, you're
# going to run into trouble. To check your SiteConfig file, use
# this comamnd:
#
#   perl -c /path/to/your/etc/RT_SiteConfig.pm

Set($rtname , 'test');

Set($Organization , "www.uta.edu");
Set($Timezone , 'US/Central');


Set($WebPath , "/rt");
Set($WebPort , 80);# + ($< * 7274) % 32766 + ($< && 1024));

Set($DatabaseUser , 'rtuser');
Set($DatabasePassword , 'rtuser');
Set($DatabaseName , 'rtdb');


1;

webPathパラメータを変更する必要があるようです。しかし、そこで何を編集するのかわかりません。誰かが私に正しい方向を教えてもらえますか?

修正する:

のファイルがありますrt.conf次のように、このファイルにRTスクリプトパスを設定します。

AddDefaultCharset UTF-8
Alias /rt/NoAuth/images /usr/local/rt/share/html/NoAuth/images/
ScriptAlias /rt /usr/local/rt/sbin/rt-server.fcgi/

DocumentRoot /usr/local/rt/share/html
<location /rt>
       Order allow,deny
       Allow from all
       Options +ExecCGI
       AddHandler fcgid-script fcgi
</Location>

実行したばかりのlocalhostテストページを正常に取得し、次のように指定しました。Welcome.confテストページが必要ない場合は、ファイルを無効にする必要があります。これWelcome.conf上記と同じパスにファイルが存在します。rt.conf文書。パスは/etc/httpd/conf.d/

アップデート2:

これエラー履歴ファイルには/var/log/httpd次の行が含まれています。

[error] [client 127.0.0.1] File does not exist: /usr/local/rt/sbin/rt-server.fcgi/

ただし、上記のパスにrt-server.fcgiファイルがあります。

アップデート3:

rt.confファイルは、以下のようにRTを起動するための設定ファイルです。

AddDefaultCharset UTF-8
#Alias /rt/NoAuth/images /usr/local/rt/share/html/NoAuth/images/
ScriptAlias /rt /usr/local/rt/sbin/rt-server.fcgi/

DocumentRoot "/usr/local/rt/share/html"
<Location /rt>
       Order allow,deny
       Allow from all
       Options +ExecCGI
       AddHandler fcgid-script fcgi
</Location>

ベストアンサー1

access_logApacheとerror_logログファイルを見てください/var/log/httpd/。これは、発生したエラーに関する追加情報を表示するのに役立ちます。

デフォルトのApache設定ファイルで、/etc/httpd/conf/httpd.confApacheがサーバーから404をリッスンしているため、ポート80でリッスンしていることを確認してください。

Apacheでこの変数を設定する必要があるかもしれません。

#ServerName www.example.com:80

最後に、ファイルの文字列をrt_siteconfig.pmlocalhostに変更しました。

Set($Organization , "localhost");

始まったばかり。動作しているように見える場合は、その値とApache値を同じに調整してください。

おすすめ記事