dsc-stats-presenter: Apache2 403 禁止

dsc-stats-presenter: Apache2 403 禁止

Debianサーバーにdsc-statistics-presenterというパッケージを再インストールしました。以前のインストールではうまくいきましたが、今は動作しません。エラー403、アクセスが禁止されました。では、いくつかの詳細をお知らせします。

から/var/log/

[Sun Nov 27 17:34:09.186447 2016] [authz_core:error] [pid 26682:tid 140497263544064] [client 192.168.1.32:44134] AH01630: client denied by server configuration: /usr/lib/cgi-bin/dsc-statistics/dsc-grapher

パスから:

root@UKLNDLABDMZ:~# cat /usr/lib/cgi-bin/dsc-statistics/dsc-grapher 
#!/usr/bin/perl -w

use strict;
use warnings;
use CGI;

use DSC::grapher;
my $grapher = DSC::grapher->new;
$grapher->cgi(new CGI);
$grapher->run();

ファイル権限を確認するには:

root@UKLNDLABDMZ:~# ls -l /usr/lib/cgi-bin/dsc-statistics/dsc-grapher 
-rwxr-xr-x 1 root root 148 Dec 15  2012 /usr/lib/cgi-bin/dsc-statistics/dsc-grapher

apt-get でのみインストールされたこのパッケージの Apache conf は次のようになります。

root@UKLNDLABDMZ:~# cat /etc/apache2/conf-available/dsc-statistics-presenter.conf 
Alias /dsc /usr/share/dsc-statistics-presenter/html
ScriptAlias /cgi-bin/dsc-statistics /usr/lib/cgi-bin/dsc-statistics


root@UKLNDLABDMZ:~# ls -ld /usr/lib/cgi-bin/dsc-statistics
drwxr-xr-x 2 root root 4096 Nov 27 18:41 /usr/lib/cgi-bin/dsc-statistics

http://192.168.99.10/cgi-bin/dsc-statistics/dsc-grapher

修正する:

apt-get install libapache2-mod-perl2

そして

a2enmod cgi

エラーが403から500に変更されました。

ベストアンサー1

おすすめ記事