浏览器无法打开Openwebmail【已解决】

浏览器无法打开Openwebmail【已解决】

安装 Openwebmail
# /usr/local/apache2/htdocs/cgi-bin/openwebmail/openwebmail-tool.pl --init
Creating UTF-8 locales...
langconv ar_AE.CP1256 -> ar_AE.UTF-8
langconv ar_AE.ISO8859-6 -> ar_AE.UTF-8
langconv bg_BG.CP1251 -> bg_BG.UTF-8
langconv ca_ES.ISO8859-1 -> ca_ES.UTF-8
langconv cs_CZ.ISO8859-2 -> cs_CZ.UTF-8
langconv da_DK.ISO8859-1 -> da_DK.UTF-8
langconv de_DE.ISO8859-1 -> de_DE.UTF-8
langconv el_GR.ISO8859-7 -> el_GR.UTF-8
langconv en_US.ISO8859-1 -> en_US.UTF-8
langconv es_AR.ISO8859-1 -> es_AR.UTF-8
langconv fi_FI.ISO8859-1 -> fi_FI.UTF-8
langconv fr_FR.ISO8859-1 -> fr_FR.UTF-8
langconv he_IL.CP1255 -> he_IL.UTF-8
langconv hr_HR.ISO8859-2 -> hr_HR.UTF-8
langconv hu_HU.ISO8859-2 -> hu_HU.UTF-8
langconv id_ID.ISO8859-1 -> id_ID.UTF-8
langconv it_IT.ISO8859-1 -> it_IT.UTF-8
langconv ko_KR.eucKR -> ko_KR.UTF-8
langconv lt_LT.CP1257 -> lt_LT.UTF-8
langconv nl_NL.ISO8859-1 -> nl_NL.UTF-8
langconv no_NO.ISO8859-1 -> no_NO.UTF-8
langconv pl_PL.ISO8859-2 -> pl_PL.UTF-8
langconv pt_BR.ISO8859-1 -> pt_BR.UTF-8
langconv pt_PT.ISO8859-1 -> pt_PT.UTF-8
langconv ro_RO.ISO8859-2 -> ro_RO.UTF-8
langconv ru_RU.KOI8-R -> ru_RU.UTF-8
langconv sk_SK.ISO8859-2 -> sk_SK.UTF-8
langconv sl_SI.CP1250 -> sl_SI.UTF-8
langconv sr_CS.ISO8859-2 -> sr_CS.UTF-8
langconv sv_SE.ISO8859-1 -> sv_SE.UTF-8
langconv th_TH.TIS-620 -> th_TH.UTF-8
langconv tr_TR.ISO8859-9 -> tr_TR.UTF-8
langconv uk_UA.KOI8-U -> uk_UA.UTF-8
...done.

Welcome to the OpenWebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: Linux 2.6.18-8.el5xen x86_64
Perl: 5.008008
WebMail: OpenWebMail 2.53 20080123

Send the site report?(Y/n)
sending report...

Thank you.

浏览器输入
http://xxx.xxx.com/cgi-bin/openwebmail/openwebmail.pl
返回
HTTP 404 Not Found

服务器PHP已经安装,不清楚哪里出了问题,请求帮助!谢谢!

      
需要确认一下openwebmail 的目录权限是否正常, 如果不确定,可以用755 试试      
引用:
原帖由 Roc.Ken 于 2008-7-25 09:34 发表
需要确认一下openwebmail 的目录权限是否正常, 如果不确定,可以用755 试试
DocumentRoot 里面其他比如postfixadmin是可以访问到的。http://mail.xxx.com/postfixadmin      
1,perl-CGI-SpeedyCGI , perl 已经安装了。

2,webmail的日志是在maillog里面的吗?如果是,有这么一段不知道有何帮助
Jul 24 23:17:34 mail postfix/smtpd[25170]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Jul 24 23:17:34 mail postfix/smtpd[25170]: connect from localhost.localdomain[127.0.0.1]
Jul 24 23:17:34 mail postfix/smtpd[25170]: 08C80126E04: client=localhost.localdomain[127.0.0.1]
Jul 24 23:17:34 mail postfix/cleanup[25172]: 08C80126E04: message-id=<20080724151734.M76852@mail.xxx.com>
Jul 24 23:17:34 mail postfix/qmgr[11792]: 08C80126E04: from=<root@mail.xxx.com>, size=632, nrcpt=1 (queue active)
Jul 24 23:17:34 mail postfix/smtpd[25170]: disconnect from localhost.localdomain[127.0.0.1]
Jul 24 23:17:44 mail postfix/smtp[25174]: 08C80126E04: to=<stats@openwebmail.acatysmoof.com>, relay=openwebmail.acatysmoof.com[24.205.1    41.134], delay=10, status=sent (250 2.0.0 m6OFHZNX010017 Message accepted for delivery)
   
openwebmail.log:
Thu Jul 24 21:54:28 2008 - [20588] (127.0.0.1) UNKNOWNUSER - send message - trying to connect to smtp server 127.0.0.1:25
Thu Jul 24 21:54:28 2008 - [20588] (127.0.0.1) UNKNOWNUSER - send message - connected to smtp server 127.0.0.1:25

3,不知道启动openwebmail (# /usr/local/apache2/htdocs/cgi-bin/openwebmail/openwebmail-tool.pl --init)之后出现
...done.

Welcome to the OpenWebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: Linux 2.6.18-8.el5xen x86_64
Perl: 5.008008
WebMail: OpenWebMail 2.53 20080123

Send the site report?(Y/n)
sending report...

Thank you.
之后,是不是说明openwebmail以及它的套件比如Compress-Zlib,CGI-SpeedyCGI,suidperl,Text-Iconv等都已经安装成功?
现在的问题是不是出在apache或者其它一些配置的问题上?

十分希望路过的朋友可以帮助我。谢谢!      
用#ls -Z看看是不是SELinux权限问题。      
引用:
原帖由 bwb 于 2008-7-25 16:17 发表
用#ls -Z看看是不是SELinux权限问题。
1,我不太明白你的意思。能否再说详细一些?

2,输入http://myip/cgi-bin/openwebmail/openwebmail.pl以后,依然返回HTTP 404 Not Found,error_log如下:
[Sat Jul 26 03:54:35 2008] [error] [client xxx.xxx.xxx.xxx] script not found or unable to stat: /usr/local/apache2/cgi-bin/openwebmail
[Sat Jul 26 03:54:35 2008] [error] [client xxx.xxx.xxx.xxx] File does not exist: /usr/local/apache2/htdocs/favicon.ico
能否帮忙分析这段log?      
用的哪种发行版?
如果是RH的话可能是SELinux打开了,可以参考:http://blog.linuxeden.com/index. ... ewspace-itemid-6205      
引用:
原帖由 bwb 于 2008-7-27 00:20 发表
用的哪种发行版?
如果是RH的话可能是SELinux打开了,可以参考:http://blog.linuxeden.com/index.php?uid-3367-action-viewspace-itemid-6205
rhel5

从error_log 以及返回 HTTP 404 Not Found 而不是 permision deny 之类的,我推测不应该是权限的问题。你的意思是关闭 SElinux 吗?      
终于解决了。
根据error_log把缺失的文件cp就ok了。