linux图形登陆报拒绝权限,linux – (13)权限被拒绝:访问/cgi-bin/test.cgi被拒绝

我第一次尝试CGI脚本,但没有成功.我已经阅读了很多教程,并且可能会在不同的论坛上发帖,但是我无法使其工作.

我在Fedora 10机器上使用appache web服务器.

我总是有问题

[Wed Oct 21 20:47:36 2009] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0

[Wed Oct 21 20:47:36 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Wed Oct 21 20:47:36 2009] [notice] Digest: generating secret for digest authentication ...

[Wed Oct 21 20:47:36 2009] [notice] Digest: done

[Wed Oct 21 20:47:36 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9 mod_ssl/2.2.11 OpenSSL/0.9.8g configured -- resuming normal operations

我需要帮助.

这就是我的环境.

uname -a

Linux localhost.localdomain 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 i686 i386 GNU/Linux

ls -l /var/www/cgi-bin/

total 36

-rwxrwxrwx 1 root root 106 2009-10-21 18:29 index.html

-rwxr-xr-x 1 root root 11089 2009-02-24 20:11 squidGuard.cgi

-rwxr-xr-x 1 root root 5720 2009-02-24 20:11 squidGuard-simple.cgi

-rwxr-xr-x 1 root root 5945 2009-02-24 20:11 squidGuard-simple-de.cgi

-rwxrwxrwx 1 root root 110 2009-10-21 17:38 test.cgi

apachectl -v

Server version: Apache/2.2.11 (Unix)

Server built: Mar 6 2009 09:12:25

perl -version

This is perl,v5.10.0 built for i386-linux-thread-multi

Copyright 1987-2007,Larry Wall

我的脚本

cat test.cgi

#!/usr/bin/perl

print "Content-Type: text/html\n\n";

print "Hello,world!\n";

[Wed Oct 21 21:00:27 2009] [error] [client 192.168.50.69] (13)Permission denied: access to /cgi-bin/test.cgi denied

我已经添加了一行:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

到/etc/httpd/conf/httpd.conf

我只是不能让它工作.

有人可以帮我吗

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值