2007年7月7日

新しいサイト”わーどぷれすっ!”をオープンしました。

今後はWordPress関連の話題は全部このサイトに投稿していきます。プラグイン一覧もこの新サイトに移しましたので、ドウゾよろしくお願いします。

WordPressのアップグレードを簡単に:EasyWPUpdateの巻

Registry First Aid will find these invalid entries and remove them from your registry. With Registry First Aid, your Windows registry will be always clean and correct, helping your programs load faster and speeding up your computer. Fast, easy to use, PC speed testing and benchmarking. PassMark PerformanceTest allows you to objectively benchmark a x blades keygen PC using a variety of different speed tests and compare the results to other computers. Twenty-eight standard benchmark tests are available in six test suites plus there are seven advanced testing windows for custom benchmarking. In addition to the standard tests, there are 7 summary results plus the overall PassMark Rating result. The benchmark results are xilisoft keygen presented as easy to read bar charts so that you dont need to spend hours studying the number to know the result. Timing for the tests is done using high resolution timers, which are accurate to approximately 1 millionth of a second on most PCs. Create professional-quality advertising, sophisticated print designs and electronic documents with PagePlus sims 2 keygen X5, the best-in-class desktop publisher.

EasyWPUpdateより、WordPressを簡単にアップグレードするためのシェルスクリプトをご紹介。

このスクリプトをサーバー上で実行させると、データベースとWP本体のバックアップ、そしてWP本体のアップグレードを実施します。

以前にも一度紹介しましたが、私自身これまで2回使用してまったく問題なかったのと本当に簡単にアップグレードできるので、とりあえず使い方だけ説明します。以下、自分の使用しているDeramHostを例に説明しますが、Telnetでbashが使用できればたぶんどのサーバーでもオッケーでしょう。 私の環境:実行時は適宜ご自分の環境に読み換えてください。

  • ホスティングサービス:DreamHost(sshアカウントを作成)
  • ローカル:Mac OSX 10.4
  • WPがインストールしてあるディレクトリ:/hogehoge.com/st/
  • ブログのURL:http://www.hogehoge.com/st/

(注記:DreamHostのデフォルトでは、ユーザーのルートディレクトリの直下にドメイン名と同じディレクトリが作成され、そのディレクトリがウェブサイトのルートディレクトリになる)

vi等のエディターを使用できる方はスクリプトを直接サーバにコピーして必要な箇所を記入したほうが簡単だと思いますが、ここでは一旦スクリプトをローカルで編集してからサーバにアップします。

  1. EasyWPUpdateより、「You can peruse the text version, EasyWPUpdate.txt, here: link」のリンク先を保存。ここでは仮にファイル名を「EasyWPUpdate」として保存する
  2. 保存したファイルをテキストエディタで開き
    BlogDir[1]='site1dir'
    BlogURL[1]='www.example.com'

    を探して自分の環境に合わせて変更。上記私の環境を例にとると
    BlogDir[1]='hogehoge/st'
    BlogURL[1]='www.hogehoge.com/st'

    に変更(末尾にスラッシュ(/)はいらない)
  3. アップグレードが一つだけならBlogDir[2]、BlogURL[2]、BlogDir[3]、BlogURL[3]、をコメントアウト。複数ある場合はそれぞれ記入(いくつでも増やせるとのこと)
  4. FTPプログラムでサーバの自分のユーザディレクトリのルート(/)にスクリプトをアップロード
  5. OSXのターミナルを起動し、sshでサーバにログイン(ssh -l ログイン名 ホスト名)
  6. . EasyWPUpdate」と入力してEnter
  7. 自動的にデータベースとWordPressファイルのバックアップが作成され(デフォルトではアップグレードスクリプトと同じディレクトリに作成)、WordPress本体がアップグレードされる
  8. 成功すれば勝手にサーバからログアウトする(失敗すれば何らかのエラーメッセージが表示されるはず)
  9. アップグレードの詳細を知りたければ、htmlファイルで作成されるログを参照(デフォルトではアップグレードスクリプトと同じ場所に作成)

2回目からはsshでログインしてスクリプトを実行するだけ。簡単でしょ。 :lol:

This entry was posted in WordPress, WP ヒント. Bookmark the permalink.

4 Responses to WordPressのアップグレードを簡単に:EasyWPUpdateの巻

  1. Pingback: MetaLoop » WordPressのプラグイン/ウィジェット

  2. funkanoll says:

    はじめまして!
    最近、毎日のようにお邪魔しています。
    WPのプラグイン情報が豊富で、初心者の私にはとてもありがたいです。
    2.1が出たという事で、こちらの記事を参考にアップグレードしてみようと思っています :grin:

  3. たい says:

    funkanollさん、はじめまして。
    お返事が遅くなってしまいすみません。 :oops:

    このスクリプトは、WordPressの本家版を使っていてお使いのサーバーで シェルスクリプトが実行できるのなら本当にお勧めですよ!私も先日このスクリプトで2.1.1にアップグレードしましたが無問題でした。 :mrgreen:

  4. Pingback: わーどぷれすっ! » アップグレードをどうするか?

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>