由於免費空間平台000webhost經常不定時更新造成同學們有臨時無法進行操作練習
基於這個原因設計了這次的達內報報,來解決000webhost維修時的空窗期
也讓同學了解之後可能會接觸到的資料庫設置。

※以下操作適用於所有CMS內容管理系統(content management system)操作。
安裝操作流程
1. 需先了解此CMS 所使用的PHP 版本為哪個版本,例如dedecms5.7使用的php版本為php version 5.5 版。
XAMPP下載安裝:先在瀏覽器上輸入xampp 5.5 進行搜索,找到標註為SourceForge.net 的連結,此為安裝檔及原碼下載的空間。

目前php5.5版本更新到5.5.38版本,可以點擊後進入下載畫面,依照作業系統需求進行下載,這邊以windows版本為例下載*.exe 安裝檔。

下載好後進入安裝畫面點選Next到軟體選項畫面,勾選Apache (網頁伺服器)、Mysql (資料庫伺服器)、FileZilla FTP Server、phpMyAdmin(資料庫圖形化介面)。

設定安裝路徑,預設為C:\xampp,後續Next按到底直到安裝結束。

選擇語言請務必選美國

上述動作都完成之後請務必先到網站根目錄xampp\ htdocs\底下將裡面原本預設的內容全選刪除來清空資料夾。
清空前

清空後

並且開啟xampp control panel

Apache、MySQL、FilleZilla伺服器需要開啟

正確開啟狀態如下

把CMS放到網站根目錄下(以DedeCMS為例)

2.資料庫可在瀏覽器上輸入http://localhost/phpmyadmin/進入圖形介面

點選新增開始建立資料庫

輸入資料庫名並選擇編碼類型,編碼類型請務必改為utf8_general_ci

完畢後進入使用者帳號建立密碼

點擊新增使用者帳號

填妥相對應欄位

MySQL權限勾選SELECT、INSERT、UPDATE、DELETE、FILE、CREATE、ALTER

同樣的步驟建立一個本機端(%為所有主機,localhost為本機)

完畢後回到使用者點擊編輯權限

再點擊資料庫

對兩個帳號分別進行資料庫權限設置

選好要設置的資料庫名按執行


選擇權限SELECT、INSERT、UPDATE、DELETE、CREATE、ALTER
完畢後按執行

#請務必確認% 跟localhost使用者都有設好資料庫權限,完畢後就能正式進入CMS安裝介面。
瀏覽器上輸入localhost進入CMS安裝畫面


#此步驟之後可參考課程dedeCMS安裝步驟進行;專題學員若使用的是wordpress,後續步驟亦類似操作。
Comments