wordpress:upgrade
這是本文件的舊版!
更新 Wordpress 版本
備份檔案
# tar -cvvf wordpress_backup_[date].tar public_html # mv public_html wordpress_old_[version]
備份資料庫
用 phpmyadmin or mysqldump 等等
下載新版本
解開
# tar -zxvf [filename].tar
更改資料夾名稱及存放路徑
# mv wordpress [自定]
修改設定檔
wp-config.php
// ** MySQL settings ** //
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp__'; // Only numbers, letters, and underscores please!
讓網頁自動更新
http://[DN or IP]/[path to wordpress]/wp-admin/upgrade.php
將 theme 複製回去
將 theme 和 plug-in 複製回去,以及將 mail 到 news 的程式碼複製回去
完成
算蠻容易的~
wordpress/upgrade.1170738990.txt.gz · 上一次變更: (外部編輯)
