更新st學生主機到Mdk2006
1.將舊資料plog的sql,plog的網頁目錄備份到/backup。
拿一顆新硬碟,使用學務系統mdk2006還原片製作系統。
重新mount /backup另一個硬碟的磁區。
拿一顆新硬碟,使用學務系統mdk2006還原片製作系統。
重新mount /backup另一個硬碟的磁區。
2.把學務系統刪除,把plog的sql和網頁備份回去
系統已有weba**的使用者,mysql要新增一個使用者weba**
3.在apache中的/etc/httpd/conf/vhosts.d,加入一個vhosts.conf
********************************
NameVirtualHost *:80
<VirtualHost *:80>
ServerName st.hhjh.chc.edu.tw
DocumentRoot /home/*****
</VirtualHost>
<VirtualHost *:80>
ServerName blog.hhjh.chc.edu.tw
DirectoryIndex summary.php index.php
DocumentRoot /home/*****/*****
</VirtualHost>
********************************
在vhosts.conf中,加入DirectoryIndex,使summary.php成為首頁。
相關問題討論:
關於Apache的虛擬主機設定
請問一個網頁預設檔名順序
4.系統的php5.04,mysql4.1.12,lifetype出現部份的字元變亂碼。是mysql4.**utf-8的問題
解決方案:
分享MySQL和php採用UTF8的詳細方法
MySQL升級5.0與UTF-8之相關解決方法
Mysql轉換時出現亂碼
留言
張貼留言