免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5360 | 回复: 5
打印 上一主题 下一主题

[Mail] 浏览器无法打开Openwebmail【已解决】 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-24 23:33 |显示全部楼层 |倒序浏览
安装 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已经安装,不清楚哪里出了问题,请求帮助!谢谢!

[ 本帖最后由 adisonray 于 2008-7-27 02:04 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-07-25 13:03 |显示全部楼层
原帖由 ruochen 于 2008-7-25 08:07 发表
用ip地址试下
检验cgi的执行权限

DocumentRoot 里面其他比如postfixadmin是可以访问到的。http://mail.xxx.com/postfixadmin

论坛徽章:
0
3 [报告]
发表于 2008-07-25 13:23 |显示全部楼层
原帖由 huzi1986 于 2008-7-25 13:06 发表
已经说了,not found 看看我的那个文章http://bbs.chinaunix.net/thread-1216700-1-1.html
,你要打开允许执行CGI,及加到对pl mime文件类型的支持,你应该看看日志,通常这些问题看日志可以解决问题!还有你的 ...


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,我的httpd.conf里面有您所说的那一段。

4,不知道启动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或者其它一些配置的问题上?

十分希望路过的朋友可以帮助我。谢谢!

[ 本帖最后由 adisonray 于 2008-7-25 15:12 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-07-26 04:04 |显示全部楼层
原帖由 huzi1986 于 2008-7-25 16:55 发表





第一,你在浏览器里面输入

http://youip/cgi-bin/openwebmail/openwebmail.pl

如果显示4.04 not found 错误,你要详细查看你的httpd.conf文件中的cgi-bin目录的地方。至于你的配置是怎么样的情 ...

谢谢您的帮助!

1,我的apache不在/var/www/cgi-bin目录下面,我的DocumentRoot 是 /usr/local/apache2/htdocs/

2,httpd.conf文件中的cgi-bin目录的地方我没有做过改动,有这么一段如您所说的:
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
</IfModule>

#
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache2/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

3,在浏览器中输入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
我的 openwebmail 放在 /usr/local/apache2/htdocs/ 里。

4,我的服务器DNS和MX都已经完成,并且通过 outlook express 可以正常收发信件。

[ 本帖最后由 adisonray 于 2008-7-26 23:34 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-07-26 23:35 |显示全部楼层

论坛徽章:
0
6 [报告]
发表于 2008-07-27 02:03 |显示全部楼层
终于解决了。
根据error_log把缺失的文件cp就ok了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP