歡迎您光臨本站 註冊首頁

瀏覽器無法打開Openwebmail【已解決】

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

瀏覽器無法打開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已經安裝,不清楚哪裡出了問題,請求幫助!謝謝!

[ 本帖最後由 adisonray 於 2008-7-27 02:04 編輯 ]
《解決方案》

用ip地址試下
檢驗cgi的執行許可權
《解決方案》

原帖由 ruochen 於 2008-7-25 08:07 發表 http://bbs.chinaunix.net/images/common/back.gif
用ip地址試下
檢驗cgi的執行許可權
DocumentRoot 裡面其他比如postfixadmin是可以訪問到的。http://mail.xxx.com/postfixadmin
《解決方案》

已經說了,not found 看看我的那個文章http://bbs.chinaunix.net/thread-1216700-1-1.html
,你要打開允許執行CGI,及加到對pl mime文件類型的支持,你應該看看日誌,通常這些問題看日誌可以解決問題!還有你的httpd.conf 文件是怎麼配置的呢。有以下類似的選項嗎?

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>
《解決方案》

原帖由 huzi1986 於 2008-7-25 13:06 發表 http://bbs.chinaunix.net/images/common/back.gif
已經說了,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: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Jul 24 23:17:34 mail postfix/smtpd: connect from localhost.localdomain
Jul 24 23:17:34 mail postfix/smtpd: 08C80126E04: client=localhost.localdomain
Jul 24 23:17:34 mail postfix/cleanup: 08C80126E04: message-id=<20080724151734.M76852@mail.xxx.com>
Jul 24 23:17:34 mail postfix/qmgr: 08C80126E04: from=<root@mail.xxx.com>, size=632, nrcpt=1 (queue active)
Jul 24 23:17:34 mail postfix/smtpd: disconnect from localhost.localdomain
Jul 24 23:17:44 mail postfix/smtp: 08C80126E04: to=<stats@openwebmail.acatysmoof.com>, relay=openwebmail.acatysmoof.com, delay=10, status=sent (250 2.0.0 m6OFHZNX010017 Message accepted for delivery)
   
openwebmail.log:
Thu Jul 24 21:54:28 2008 - (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 - (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 編輯 ]
《解決方案》

原帖由 adisonray 於 2008-7-25 13:23 發表 http://bbs.chinaunix.net/images/common/back.gif


1,perl-CGI-SpeedyCGI , perl 已經安裝了。

2,webmail的日誌是在maillog裡面的嗎?如果是,有這麼一段不知道有何幫助
Jul 24 23:17:34 mail postfix/smtpd: warning: dict_nis_init: NIS domain ...




第一,你在瀏覽器裡面輸入

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

如果顯示4.04 not found 錯誤,你要詳細查看你的httpd.conf文件中的cgi-bin目錄的地方。至於你的配置是怎麼樣的情況

rpm包安裝的apache 在/var/www/cgi-bin目錄下面

openwebmail安裝后的位置在/var/www/cgi-bin/openwebmail 下面,你輸入
http://youip/cgi-bin/openwebmail/openwebmail.pl如果不出意外 的話應該是可以訪問的,可能會說permision deny 之類的。那是應該許可權問題,如果404 not found ,你得看日誌,把apache的日誌發上來,而且這個問題也很好解決。sendmail無法發送郵件,DNS有做嗎?最好做一下。不做也可以,直接發送給本機測試


echo "this is a test mail" |  mail -s "test mail"      root@localhost




如果做DNS,記得要做MX記錄!
《解決方案》

原帖由 huzi1986 於 2008-7-25 16:55 發表 http://bbs.chinaunix.net/images/common/back.gif





第一,你在瀏覽器裡面輸入

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如下:
script not found or unable to stat: /usr/local/apache2/cgi-bin/openwebmail
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 編輯 ]
《解決方案》

:em14: :em14: :em14:
《解決方案》

終於解決了。
根據error_log把缺失的文件cp就ok了。
《解決方案》

LOG很重要

[火星人 ] 瀏覽器無法打開Openwebmail【已解決】已經有1187次圍觀

http://coctec.com/docs/service/show-post-28742.html