登入WordPress,一直看到提示有新版,就想更新,
1.先取得最新版。 wget -c http://wordpress.org/latest.tar.gz
2. 解至 ~/public_html 。
cd ~/public_html
tar zxf ~/blog/wordpress/latest.tar.gz
mv wordpress wp
cd ~/public_html/wordpress_old
3.拷貝原先設定檔
cp ./wp-config.php ../wp
4.改 chown
sudo chown www-data:www-data ../wp/wp-config.php
5.建目錄
mkdir ../wp/wp-content/uploads
mkdir ../wp/wp-content/languages
6.uploads改權限
chmod 777 ../wp/wp-content/uploads
7.拷貝中文語系
cp ./wp-content/languages/zh_TW.mo ../wp/wp-content/languages/
8.拷貝 plugins,在 wp-content/plugins/
cp -r ./wp-content/plugins/nggallery ../wp/wp-content/plugins/
cp ./wp-content/plugins/wp-plugins-tracker.php ../wp/wp-content/plugins/
9.拷貝 themes,在 wp-content/themes/
cp -r ./wp-content/themes/magazine-10 ../wp/wp-content/themes/
原本是想用aptitude install wordpress來安裝 (我的系統是Debian Testing),弄了很久搞不定,以前的文章在現在的環境不適用,沒辦法只好又裝在user的 ~/public_html下,再建個 link 到 www。
暫時先用,等以後有空再仔細研究。
先記錄一下目前的作法:
1.先取得最新版。 wget -c http://wordpress.org/latest.tar.gz
2. 解至 ~/public_html 。
cd ~/public_html
tar zxf ~/blog/wordpress/latest.tar.gz
mv wordpress wp
cd ~/public_html/wordpress_old
3.拷貝原先設定檔
cp ./wp-config.php ../wp
4.改 chown
sudo chown www-data:www-data ../wp/wp-config.php
5.建目錄
mkdir ../wp/wp-content/uploads
mkdir ../wp/wp-content/languages
6.uploads改權限
chmod 777 ../wp/wp-content/uploads
7.拷貝中文語系
cp ./wp-content/languages/zh_TW.mo ../wp/wp-content/languages/
8.拷貝 plugins,在 wp-content/plugins/
cp -r ./wp-content/plugins/nggallery ../wp/wp-content/plugins/
cp ./wp-content/plugins/wp-plugins-tracker.php ../wp/wp-content/plugins/
9.拷貝 themes,在 wp-content/themes/
cp -r ./wp-content/themes/magazine-10 ../wp/wp-content/themes/
10.在 www 下建 link。
cd /var/www/
sudo ln -s ~/public_html/wp /var/www/wp
這樣就完成了,到網頁登入,發表文章。
沒有留言:
張貼留言