<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
请问有什么问题吗???
我在该目录下放一个.cgi的文件,为什么老是出下面的错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
[root@lzw root]# rpm -qi perl
Name : perl Relocations: (not relocateable)
Version : 5.8.0 Vendor: Red Hat, Inc.
Release : 55 Build Date: 2002年09月02日 星期一 12时16分38秒
Install date: 2003年03月05日 星期三 17时51分03秒 Build Host: daffy.perf.redhat.com
Group : Development/Languages Source RPM: perl-5.8.0-55.src.rpm
Size : 32905016 License: Artistic
Signature : DSA/SHA1, 2002年09月04日 星期三 05时33分34秒, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : The Perl programming language.
Description :
Perl is a high-level programming language with roots in C, sed, awk
and shell scripting. Perl is good at handling processes and files,
and is especially good at handling text. Perl's hallmarks are
practicality and efficiency. While it is used to do a lot of
different things, Perl's most common applications are system
administration utilities and web programming. A large proportion of
the CGI scripts on the web are written in Perl. You need the perl
package installed on your system so that your system can handle Perl
scripts.
Install this package if you want to program in Perl or enable your
system to handle Perl scripts.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.40 Server at _default_ Port 80
[root@lzw cgi-bin]# pwd
/var/www/cgi-bin
[root@lzw cgi-bin]# ls -sl
total 4
4 -rwxr-xr-x 1 nobody nobody 18 2月 13 12:06 test.cgi
test.cgi
#!/usr/bin/perl --
结果呢??
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.40 Server at _default_ Port 80