開放原碼軟體社群討論區
新聞: QA問答中心裡頭 的LINUX版本 是Fedora Core4
使用者若有發生相關問題 請至此區反應 謝謝
 
*
歡迎光臨, 訪客. 請先 登入註冊一個帳號. 五月 19, 2012, 12:38:36 am


請輸入帳號, 密碼以及預計登入時間


頁: [1]   向下
  列印  
作者 主題: 安裝完openwebmail出現這樣訊息  (閱讀 14328 次)
0 會員 以及 2 訪客 正在閱讀本篇主題.
jou
Newbie
*

Karma: +0/-0
離線 離線

文章: 2

開放原碼軟體社群討論區


檢視個人資料 電子郵件
« 於: 四月 26, 2006, 03:07:24 am »


都依正常程序安裝
webmin收發信都正常

但用網頁登入
出現以下訊息

請幫我解決
please


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.0 (Fedora) Server at mail.pcmaster.com.tw Port 80
« 最後編輯時間: 一月 01, 1970, 08:00:00 am 由 NULL » 已記錄
jou
Newbie
*

Karma: +0/-0
離線 離線

文章: 2

開放原碼軟體社群討論區


檢視個人資料 電子郵件
« 回覆文章 #1 於: 四月 26, 2006, 03:25:47 am »

我查完apache log

發現以下訊息
不知如何解決
[Wed Apr 26 03:13:39 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
[Wed Apr 26 03:13:40 2006] [error] [client 61.230.221.179] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
[Wed Apr 26 03:13:40 2006] [error] [client 61.230.221.179] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!
[Wed Apr 26 03:13:40 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
[Wed Apr 26 03:13:41 2006] [error] [client 61.230.221.179] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
[Wed Apr 26 03:13:41 2006] [error] [client 61.230.221.179] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!
[Wed Apr 26 03:13:41 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
[Wed Apr 26 03:13:41 2006] [error] [client 61.230.221.179] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
[Wed Apr 26 03:13:41 2006] [error] [client 61.230.221.179] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!
[Wed Apr 26 03:13:41 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
[Wed Apr 26 03:16:15 2006] [error] [client 61.230.221.179] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
[Wed Apr 26 03:16:15 2006] [error] [client 61.230.221.179] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!
[Wed Apr 26 03:16:15 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
[Wed Apr 26 03:16:19 2006] [error] [client 61.230.221.179] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
[Wed Apr 26 03:16:19 2006] [error] [client 61.230.221.179] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!
[Wed Apr 26 03:16:19 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
[Wed Apr 26 03:16:30 2006] [error] [client 61.230.221.179] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
[Wed Apr 26 03:16:30 2006] [error] [client 61.230.221.179] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!
[Wed Apr 26 03:16:30 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
[Wed Apr 26 03:24:45 2006] [error] [client 61.230.221.179] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
[Wed Apr 26 03:24:45 2006] [error] [client 61.230.221.179] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!
[Wed Apr 26 03:24:45 2006] [error] [client 61.230.221.179] Premature end of script headers: openwebmail.pl
« 最後編輯時間: 一月 01, 1970, 08:00:00 am 由 NULL » 已記錄
james
Newbie
*

Karma: +0/-0
離線 離線

文章: 11


阿俊

jiunliu@msn.com
檢視個人資料 個人網站 電子郵件
« 回覆文章 #2 於: 五月 14, 2006, 09:02:15 am »

Hello, I got the response on OpenWebMail FAQ on http://openwebmail.org/openwebmail/doc/faq.txt

3. The suid support of your perl may be not correctly enabled.

      a. su to a regular user, then run openwebmail.pl form command line.
      b. if it shows 'Can't do setuid', su to root,
         have suidperl owner=root, node=4555, then try step a again
      c. if it shows the following WARNING, su to root,
         have suidperl owner=root, mode=555, then try step a again

         YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!
         FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!

      d. if it shows a long html text content, which means the suid
         support of your suidperl is enabled.
      e. if step b or c doesn't help, please goto step 4

   ps: If you are using Suse Linux 9.0 Professional, please note that the
       permissions of suidperl is changed at each time SuSEconfig is run.
       To avoid having to change these permissions manually each time,
       please modify /etc/permissions.easy (or what permissions file used ever)
       to set the proper permissions.
       (thanks to dialsc.AT.t-online.de, Schaefer, Dirk Alexander)

   4. if executing openwebmail.pl with regular user always complains
      'Can't do suid' or 'YOU HAVEN'T DISABLE SET-ID SCRIPTS IN THE KERNEL..'
      then your perl executable was compiled without SUID support

      Here are the steps to recompile your perl with suid enabled:

      a. grab the perl source tar ball
      b. sh Configure -de (de means default perl config)
      c. edit config.sh and set this :
         d_dosuid='define'
         d_suidsafe='undef'

      ps: If you run './Configure' to configure the perl interactively,
          then don't forget to answer 'yes' for question
          "Do you want to do setuid/setgid emulation? "
          Or you won't be able to execute openwebmail

      d. then make, make install (make suidperl if needed)
      e. if you have compiled suidperl, then chmod 4555 suidperl
         if you don't have suidperl, change #!/usr/bin/suidperl to
         the path of your perl
         (thanks to Nemo Kaiser, nemoo.AT.users.sourceforge.net)

      ps: If you are using FreeBSD and your perl is compiled from port,
          then please note that the SUID support is disabled by default
          since the port for perl 5.8.1

          You need to do 'make -DENABLE_SUIDPERL' in making port

      ps: If you don't want to recompile perl, you choose to may use
          misc/tools/suidwrap.pl to generate C wrappers for all suid scripts.

          However, this is not recommended at all, as you will not be able
          to use SpeedyCGI with the openwebmail system.

          Here are the steps:
          1. cd cgi-bin/openwebmail
          2. perl misc/tool/wrapsuid/wrapsuid.pl /fullpath/cgi-bin/openwebmail
          3. change #!/usr/bin/suidperl to the path of your perl

          All suid scripts will be renamed to .scriptname.pl and
          the C wrapper will be generated and named as script.pl
          (thanks to Chris Heegard, heegard.AT.NativeI.com)

          The spellcheck may not work on Solaris when using C wrappers.
          (thanks to Isam Ishaq, isam.AT.planet.edu)
« 最後編輯時間: 一月 01, 1970, 08:00:00 am 由 NULL » 已記錄

歡迎來阿俊的站逛逛
http://www.jamesliu.idv.tw
james
Newbie
*

Karma: +0/-0
離線 離線

文章: 11


阿俊

jiunliu@msn.com
檢視個人資料 個人網站 電子郵件
« 回覆文章 #3 於: 五月 14, 2006, 09:27:34 am »

編輯 /var/www/cgi-bin/openwebmail/etc/defaults/suid.conf

has_savedsuid_support yes
改成

has_savedsuid_support no

然後

chomd 4555 /usr/bin/perl

若還是不行 這通常都是perl版本與Openwebmail 衝突所致
請移除perl openwebmail
在重裝即可
« 最後編輯時間: 一月 01, 1970, 08:00:00 am 由 NULL » 已記錄

歡迎來阿俊的站逛逛
http://www.jamesliu.idv.tw
hzstella
Newbie
*

Karma: +0/-0
離線 離線

文章: 4

開放原碼軟體社群討論區


檢視個人資料 電子郵件
« 回覆文章 #4 於: 七月 24, 2006, 02:24:03 pm »

你好!阿俊
     我想問一下
 1)編輯 /var/www/cgi-bin/openwebmail/etc/defaults/suid.conf

has_savedsuid_support yes
改成

has_savedsuid_support no
這個地方關閉了沒什麼影響嗎?
2)chomd 4555 /usr/bin/perl
沒有這個目錄?COSA版主提供的是chmod 4555 /usr/bin/suidperl

用chmod 4555更改文件權限,WEBMAIL就不可以用了,改回777權限就可以了。
謝謝你的幫忙!
« 最後編輯時間: 一月 01, 1970, 08:00:00 am 由 NULL » 已記錄
頁: [1]   向上
  列印  
 
前往:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM