[求助]linux下apache运行perl出错

[求助]linux下apache运行perl出错

[求助]linux下apache运行perl出错
apache的配置是:
1、DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options FollowSymLinks [color=red]ExecCGI[/color]
AllowOverride None
Order allow,deny
Allow from all
</Directory>
2、DirectoryIndex index.html index.html.var[color=red] index.pl [/color] index.htm index.cgi
3、[color=red]AddHandler cgi-script .pl[/color]
注:红色的为配置部分

源文件在:/var/www/html/index/index.pl

元程序为:
#!/usr/bin/perl
use CGI;
use DBI;
my $cgi=new CGI;
print $cgi->header();
print "记录条数是:";
my $dbh=DBI->connect('dbi:mysql:mysql','root',,);
my $sth=$dbh->prepare("select count(*) from user");
$sth->execute;
my $row=$sth->fetchrow_array;
print "$row\n";
其中:CGI DBI模块都已经安装了

IE页面显示:
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: index.pl

If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.0.52 (Fedora)


错误日志:
[Mon Apr 03 16:45:18 2006] [error] [client 127.0.0.1] (2)No such file or
directory: exec of '/var/www/html/index/index.pl' failed
[Mon Apr 03 16:45:18 2006] [error] [client 127.0.0.1] Premature end of
script headers: index.pl
[Mon Apr 03 16:45:18 2006] [error] [client 127.0.0.1] File does not exist:
/var/www/html/favicon.ico

希望高手指点,谢谢!

谢谢2楼,
我执行了你的提示:出现下面的日志
[Mon Apr 03 21:48:56 2006] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
[Mon Apr 03 21:48:57 2006] [error] [client 127.0.0.1] Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBI/DBI.so: failed to map segment from shared object: Permission denied at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
[Mon Apr 03 21:48:57 2006] [error] [client 127.0.0.1] at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DBI.pm line 258
[Mon Apr 03 21:48:57 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DBI.pm line 258.
[Mon Apr 03 21:48:57 2006] [error] [client 127.0.0.1] Compilation failed in require at /var/www/html/index/index.pl line 3.
[Mon Apr 03 21:48:57 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /var/www/html/index/index.pl line 3.
[Mon Apr 03 21:48:57 2006] [error] [client 127.0.0.1] Premature end of script headers: index.pl
[Mon Apr 03 21:48:58 2006] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Apr 03 21:48:59 2006] [error] [client 127.0.0.1] Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBI/DBI.so: failed to map segment from shared object: Permission denied at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
[Mon Apr 03 21:48:59 2006] [error] [client 127.0.0.1] at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DBI.pm line 258
[Mon Apr 03 21:48:59 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DBI.pm line 258.
[Mon Apr 03 21:48:59 2006] [error] [client 127.0.0.1] Compilation failed in require at /var/www/html/index/index.pl line 3.
[Mon Apr 03 21:48:59 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /var/www/html/index/index.pl line 3.
[Mon Apr 03 21:48:59 2006] [error] [client 127.0.0.1] Premature end of script headers: index.pl
[Mon Apr 03 21:49:00 2006] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico

我的apache配置有问题吗?