目前的計畫是: 安裝Drupal於測試網址 --> 把舊網站資料搬移過來(手動,預計要數星期) --> 備份舊網站並刪除 --> 把Drupal網站搬到正式網址。 測試網址與正式網址是在同一個虛擬主機上。這樣的流程會有問題嗎? 我已經嘗試安裝一個新的Drupal網站於A網址,然後直接 mv 到B網址。似乎沒有產生問題,資料庫似乎也不需要任何修改。 但擔心若網站經過增加內容/模組/修改設定後再行搬遷,會產生不良後果。 有沒有人有類似經驗,可以提供參考? 系統安裝、設定、調整6.x 發表回應前,請先登入或註冊 Re: 更改網域名稱/搬移網站 會產生問題嗎? http://drupal.org/node/3366Copy Files Copy the files of your Drupal installation from the old directory to your new directory. Make sure you include .htaccess. Change Path In your new directory, open the file (4.5 or earlier) includes/conf.php or (4.6) sites/default/settings.php Look for a line that begins with "$base_url = ", update this so that $base_url equals the path to your new directory. Save the file and close it. You might need to modify the .htaccess file as well. Update Cron If you set up Cron on your old installation, make sure you update it to point to your new installation. Delete Old Directory Test that everything is working in your new installation. If so, it is now safe to delete the files in your old Drupal directory. --------------------------------- 網絡賺錢訊息、Blog、討論區and Drupalhttp://www.MakeMoneyOK.com 發表回應前,請先登入或註冊 Re: 更改網域名稱/搬移網站 會產生問題嗎? 十分感謝,如此就安心了。 發表回應前,請先登入或註冊 Re: 更改網域名稱/搬移網站 會產生問題嗎? database會變嗎? 會的話要注意用phpmyadmin的匯出,或mysqldump來做 不要只拷貝資料夾 -- from open mind to open source~ 發表回應前,請先登入或註冊 Re: 更改網域名稱/搬移網站 會產生問題嗎? 之前用mysql 4 => 5 有吃到一點"連線校對的苦頭" 後來全面改用utf8_unicode_ci才一路順暢 另外,也要注意一下"簡潔網址"設定 發表回應前,請先登入或註冊
Re: 更改網域名稱/搬移網站 會產生問題嗎? http://drupal.org/node/3366Copy Files Copy the files of your Drupal installation from the old directory to your new directory. Make sure you include .htaccess. Change Path In your new directory, open the file (4.5 or earlier) includes/conf.php or (4.6) sites/default/settings.php Look for a line that begins with "$base_url = ", update this so that $base_url equals the path to your new directory. Save the file and close it. You might need to modify the .htaccess file as well. Update Cron If you set up Cron on your old installation, make sure you update it to point to your new installation. Delete Old Directory Test that everything is working in your new installation. If so, it is now safe to delete the files in your old Drupal directory. --------------------------------- 網絡賺錢訊息、Blog、討論區and Drupalhttp://www.MakeMoneyOK.com 發表回應前,請先登入或註冊
Re: 更改網域名稱/搬移網站 會產生問題嗎? database會變嗎? 會的話要注意用phpmyadmin的匯出,或mysqldump來做 不要只拷貝資料夾 -- from open mind to open source~ 發表回應前,請先登入或註冊
Re: 更改網域名稱/搬移網站 會產生問題嗎? 之前用mysql 4 => 5 有吃到一點"連線校對的苦頭" 後來全面改用utf8_unicode_ci才一路順暢 另外,也要注意一下"簡潔網址"設定 發表回應前,請先登入或註冊
Re: 更改網域名稱/搬移網站 會產生問題嗎?
http://drupal.org/node/3366
Copy Files
Copy the files of your Drupal installation from the old directory to your new directory. Make sure you include .htaccess.
Change Path
In your new directory, open the file (4.5 or earlier) includes/conf.php or (4.6) sites/default/settings.php
Look for a line that begins with "$base_url = ", update this so that $base_url equals the path to your new directory. Save the file and close it.
You might need to modify the .htaccess file as well.
Update Cron
If you set up Cron on your old installation, make sure you update it to point to your new installation.
Delete Old Directory
Test that everything is working in your new installation. If so, it is now safe to delete the files in your old Drupal directory.
---------------------------------
網絡賺錢訊息、Blog、討論區and Drupal
http://www.MakeMoneyOK.com
Re: 更改網域名稱/搬移網站 會產生問題嗎?
十分感謝,如此就安心了。
Re: 更改網域名稱/搬移網站 會產生問題嗎?
database會變嗎?
會的話要注意用phpmyadmin的匯出,或mysqldump來做
不要只拷貝資料夾
--
from open mind to open source~
Re: 更改網域名稱/搬移網站 會產生問題嗎?
之前用mysql 4 => 5 有吃到一點"連線校對的苦頭"
後來全面改用utf8_unicode_ci才一路順暢
另外,也要注意一下"簡潔網址"設定