在 Linux Fedora Core 5 中安裝 openwebmail 2.52版完成後,在 IE或 firefox要第一次要進入openwebmail的登入畫面之前就會出現下列的錯誤訊息的網頁,而不能正常的進入openwebmail。
<DOCTYPE>
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>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.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache/2.2.0 (Fedora) Server at xxx.com Port 80<address>
此時工頭是用利用 yum update 這個指令,為自己的電腦下載及安裝修補更新程式之後,再進入 openwebmail 即可正常出現登入畫面。
另一個方法是安裝 perl-suidperl 這個套件後即可正常出現 openwebmail 登入畫面。(此方法是由別人的網站得知的。)
當工頭將 openwebmail,由openwebmail 2.51版昇級至 2.52版後,在使用openwebmail時經常會出現惱人的 Internal Server Error 網頁,尤其是在登入後讀取信件時.雖然只要按 IE或 firefox的重新載入就可以恢復正常,不過出現這個網頁總是十分礙眼。 

今天(2006-07-30)在酷學園中看到了解決的方法,經工頭實際測試下是可行的.解決的方法如下:
可以用 VI或 gedit去開啟在 /var/www/cgi-bin/openwebmail/etc 資料夾內的opennwebmail.conf 檔案,修改下列這一行文字:
enable_viruscheck yes
更改成
enable_viruscheck no

存檔之後下指令啟動它,如此就可以解決在openwebmail中出現惱人的 Internal Server Error網頁了。
cd /var/www/cgi-bin/openwebmail
./openwebmail-tool.pl --init
openwebmail2.51版自2005年2月28日發表至今己經一年多了,終於在2005年5月02日才又發表了 openwebmail 2.52版.以下介紹如何在 Linux Fedora Core 4 中去將openwebmail 2.51版昇級至 2.52版的方法.

STEP 1: 先由下列網址中下載目前最新版本的openwebmail 2.52版
http://openwebmail.org/openwebmail/download/redhat/rpm/release/
STEP 2: 再來把 openwebmail.conf這一個設定檔案備份.
cd /var/www/cgi-bin/openwebmail/etc
cp openwebmail.conf openwebmail.conf.bak
STEP 3: 在終端機模式中輸入下列指令去昇級 openwebmail.
rpm -Uvh openwebmail-2.52-1.i386.rpm

STEP 4: 昇級完成後將己經備份的openwebmail.conf.bak 還原.
cd /var/www/cgi-bin/openwebmail/etc
cp openwebmail.conf.bak openwebmail.conf
STEP 5: 再執行下列命令讓己經被還原的 openwebmail.conf生效.
cd /var/www/cgi-bin/openwebmail
./openwebmail-tool.pl --init
經過以五個步驟,經可將 openwebmail 2.51版昇級至openwebmail 2.52版了.
昨天(2006-07-25)晚上工頭一時手賤,將linux fedora 4中 mysql的資料庫檔案搬來移去,沒有事先將 mysql的服務停止.一開始還沒問題,但最後結果 mysql的服務不能重新啟動了,就連將它停止也不行.我試著將電腦關機再啟動也是不行,這在猶豫著是不是要重新安裝 linux時,突然想到可以試著只將 mysql移除,再重裝 mysql.於是工頭就利用 yum 來處理這個移除及安裝的任務.
STEP 1: 在終端機模式中輸入下列指令,去移除目前的 mysql:
yum remove mysql
在這裏yum 會告訴你一共要移除 11個程式(要移除多少個程式每台電腦不同.),但為了能順利移除 mysql 也只能硬著頭皮答應它了.在這個步驟最重要的是將下圖示中那個 yum要移除的程式的表格抄記下來,因為移除之後還要再重新安裝上去呢.

STEP 2: 移除之後,輸入下列指令重新開機.
reboot
STEP 3: 重新開機之後,輸入下列指令安裝 mysql 及之前移除的程式.
yum install mysql
yum install 之前移除的程式名稱
STEP 4: 安裝完成之後,輸入下列指令重新開機.
reboot
STEP 5: 重新開機之後,輸入下列指令重新啟動 mysql.如此 mysql就能恢復正常工作了.
service mysqld start
phpMyAdmin 是一個網頁介面的 MySQL 資料庫管理工具,它可以讓資料庫管理工作可以在圖形化介面更方便進行而不必去執行SQL指令。在這裏要介紹的是 phpMyAdmin的 2.8.2版要安裝在 Linux Fedora Core 5 中的方法:

STEP 1:先到 phpMyAdmin的官方網站上去下載最近的 phpMyAdmin程式。
STEP 2:下載到目前最新的 phpMyAdmin-2.8.2.tar.gz 檔案,則以下列指令解壓縮它成為一個名為 phpMyAdmin-2.8.2的資料夾。
tar -zxvf phpMyAdmin-2.8.2.tar.gz
STEP 3:將phpMyAdmin-2.8.2的資料夾改名為 phpMyAdmin。
mv phpMyAdmin-2.8.2 phpMyAdmin
STEP 4:將資料夾 phpMyAdmin複製到網頁的根目錄 /var/www/html下。
cp phpMyAdmin /var/www/html
STEP 5:將config.default.php 改名為 config.inc.php,並且複製到/var/www/html/phpMyAdmin 目錄中。
cd /var/www/html/phpMyAdmin/libraries
cp config.default.php /var/www/html/phpMyAdmin/config.inc.php
STEP 6:用文字編輯器 vi 修改 config.inc.php檔案的內容。
輸入 MYSQL使用者名稱及密碼及phpMyAdmin的認證登入方法後,將 config.inc.php檔案存檔。
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';更改成
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '1234567';
$cfg['Servers'][$i]['auth_type'] = 'http';
STEP 7:使用 firefox 或 IE網路瀏覽器中輸入下列網址去使用 phpMyAdmin。
http://www.yourwebsite.com.tw/phpMyAdmin
說真的,其實工頭實在不是很喜歡這個軟體,所以並不推薦給初學者使用它,因為它太方便了,方便到會令你的學習產生誤導而不知道真正LINUX的操作流程是什麼,不過它是一個方便的輔助工具,在你的伺服器上沒裝 XWINDOW,又不想用文字介面去作設定操作時,我們就可以使用這個在瀏覽器中執行的 Webmin。以下內容就是說明如何能在Linux Fedora Core 5 中安裝 Webmin 1.29的方法。
STEP 1:先到 Webmin的官方網站上去下載最近的 Webmin程式。
STEP 2:下載到目前最新的 webmin-1.290-1.noarch.rpm 程式,則以下列指令安裝它。
rpm -ivh webmin-1.290-1.noarch.rpm
STEP 3:安裝完成後,輸入下列指令去啟動這個服務吧!
service webmin start

STEP 4:使用 firefox 或 IE網路瀏覽器中輸入下列網址去 Webmin 的登入畫面,使用者名稱為root。
https://www.yourwebsite.com.tw:10000/
注意:這裏是輸入的是 https而不是 http。

如此就算安裝完成了,可以享受 Webmin所提供的便利功能了。

為了讓公司網站能讓網頁能上傳到網站伺服器上,所以我必須要架設在 Linux Fedora Core 4 中架設FTP伺服器,讓公司的網頁設計人員能夠自行透夠FTP伺服器上傳網頁資料到伺服器上.在這裏可以使用 vsftp 這個軟體來架設FTP伺服器.
STEP 1 :當我們在安裝 Linux Fedora Core 4 時,若選擇完整安裝時,那 vsftp這個軟體也會一起安裝好.若是安裝 Linux Fedora Core 4 時沒有選到 FTP伺服器這個選項,可以拿出 Fedora Core 4 的光碟片再將 vsftp這個軟體安裝好.
STEP 2 :啟動vsftp指令:
# /etc/rc.d/init.d/vsftpd start
STEP 3 :修改防火牆的設定: 我們使用Fedora Core 4中視窗模示下附的"安全等級"此功能,(如下圖示),其中有"FTP"此項目可勾選用以開放port 20,就可以了.

STEP 4: 輸入下列指令來修改vsftpd.conf設定檔:
# vi /etc/vsftpd/vsftpd.conf
下列是工頭認為比較重要的設定:
anonymous_enable=NO 此設定可以不讓使用者以 anonymous 登入我們的 vsftpd 主機!
chroot_local_user=Yes 此設定可以讓使用者登入後只能在預設的使用者的家目錄中瀏覽及存取.
完成以上設定後,我們可以開一個新的帳號 test 給網頁設計人員,讓他們利用這個 test 帳號去經由 FTP伺服器來上傳網頁資料,在此必須要將此帳號的家目錄設定在 WWW伺服器的 /var/www/html目錄之中.

一個與您分享Linux經驗的地方.
本站目前共有 740 篇文章。
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | Current | > >> | ||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 | |||||