dsc-statistics-presenter: Apache2 403 Proibido

0

Eu reinstalei um pacote chamado dsc-statistics-presenter no meu servidor Debian. Funcionou bem com a minha instalação anterior, mas agora não consigo fazer funcionar. Erro 403, acesso proibido. Então, deixe-me dar alguns detalhes.

De /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

Do caminho:

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();

Se você quiser ver a permissão do arquivo:

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

Somente o Apache conf instalado a partir do apt-get sobre esse pacote é o seguinte

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

Atualização:

apt-get install libapache2-mod-perl2

e

a2enmod cgi

O erro foi alterado de 403 para 500

    
por Federi 27.11.2016 / 19:20

0 respostas