LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 716|回复: 2

请教openwebmail的问题

[复制链接]
发表于 2003-9-29 19:30:58 | 显示全部楼层 |阅读模式
刚刚装了一个openwebmail的rpm包
可是浏览/cgi/openwebmail/openwebmal.pl
就出现perl代码了,不知道是什么问题
怀疑apache 是不是没有perl模块
就在httpd.conf加了一句
LoadModule perl_module modules/mod_perl.so
在/usr/lib/httpd/modules 也有mod_perl.so这个文件
可是启动httpd总是出这一句话
启动 httpd:[Mon Sep 29 19:09:48 2003] [warn] module perl_module is already loaded, skipping
[ 确定 ]

在浏览网页还是出现代码
那位知道这是什么问题啊,多谢了
发表于 2003-9-30 16:55:51 | 显示全部楼层
你的perl模块可能已经在文件的其他地方加载过了,这个不成问题。
perl不是光光加载模块就可以的,比如像我的情况:

<IfModule mod_perl.c>
Alias /perl/ va/r/www/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>
这样在执行/var/www/perl中的文件时就会将其视为perl脚本,同样的还有cgi脚本:
<Directory /var/www/cgi-bin/>
Options ExecCgi
AddHandler cgi-script .cgi .pl
</Directory>
在/var/www/cgi-bin/下的文件就会以cgi脚本的形式运行。
发表于 2003-11-28 04:43:43 | 显示全部楼层
wangguoqin1001兄,你好,我在/var/www/下建了个目录perlexample,并在/etc/httpd/conf/httpd.conf作了如下设置:
<IfModule mod_perl.c>
Alias /perlexample/ var/www/perlexample/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>
可在mozilla中输入192.168.1.6/perlexample/(其中192.168.1.6为我本机的ip地址)时显示如下
Access forbidden!

    You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

    If you think this is a server error, please contact the webmaster

Error 403

    192.168.1.6
    2003年11月28日 星期五 12时07分10秒
    Apache/2.0.40 (Red Hat Linux)
提示没权限,我又把用chmod +711 perlexample,可还是不能正常显perl文本
烦请各位大哥多多帮帮我,谢谢:help
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表