httpd.confを修正する。
まず bugzilla のための Directory を設定する。
<Directory "/var/www/html/bugzilla">
Options ExecCGI FollowSymLinks <== CGIが実行できるように
AllowOverride Limit
DirectoryIndex index.cgi <== index.cgi が welcomeファイルになる
</Directory>
CGIが使えるように、MIMEタイプを追加する。
AddType application/x-httpd-cgi .cgi
AddType application/x-httpd-cgi .pl
同じく AddHandler に cgi-script を追加します。
AddHandler cgi-script .cgi .pl
再起動します。
# service httpd restart
httpd を停止中: [ OK ]
httpd を起動中: [ OK ]
ついでに自動起動するように設定します。
# chkconfig --level 35 httpd on
# chkconfig --list httpd
httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
以上でとりあえず動作するようになっているはずなので確認します。
http://ホスト/bugzilla/ にアクセスすると
無事表示されました。
最終更新:2008年01月16日 23:39