このガイドの目的は、WebデザイナーにWordPress [1](バージョン2.8以降)をローカルコンピュータにインストールし、それを使用してWordPressテーマを設計およびテストする方法を教えることです。 WordPress を使用するには、Web サーバー (Apache、Litespeed、IIS など)、PHP 4.3 以上、MySQL 4.0 以上がコンピューターにインストールされている必要があります。 XAMPP [1] これは、上記のすべてのコンポーネントが含まれた、簡単にインストールできる Web サーバー環境です。以下のすべての手順では、ローカル マシンに XAMPP がすでにインストールされていることを前提としています。このチュートリアルでは、XAMPP のインストールについては説明しません。 XAMPPの詳細については、XAMPPの公式ウェブサイト( [2] をご覧ください。 )。 ステップ- 1次のリンクからWordPressの最新バージョンをダウンロードして保存します。 [3]
- 2手順 1 でダウンロードした ZIP ファイル「wordpress.zip」を XAMPP ディレクトリの htdocs フォルダに解凍します。 ZIP ファイルを正しく解凍すると、\xampp\htdocs ディレクトリに新しい「wordpress」ディレクトリが作成されます。 次の手順に進む前に、Web サイトのサーバー環境が正常に動作していることを確認してください。
- 3ブラウザを開き、次のURLを入力してXAMPPのホームページにアクセスします。 [4]
- 4メニューの左下にある「phpMyAdmin」リンクを選択するか、次のURLを入力します。 [5] 。
- {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/3\/36\/Install-Wordpress-on-XAMPP-Step-5-Version-3.jpg\/v4-460px-Install-Wordpress-on-XAMPP-Step-5-Version-3.jpg","bigUrl":"https:\/\/www.wikihow.com\/images\/thumb\/3\/36\/Install-Wordpress-on-XAMPP-Step-5-Version-3.jpg\/v4-728px-Install-Wordpress-on-XAMPP-Step-5-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":" class=\"mw-parser-output\"><\/div>"} 5phpMyAdmin のメイン ページの画面中央に、「MySQL localhost」という領域があります。ここで、WordPress インストール用の新しいデータベースが作成されます。
- 「新しいデータベースの作成」入力フィールドに「wordpress」という名前を入力します。 「文字エンコーディング」というドロップダウンメニューで「utf8_unicode_ci」を選択します。次に、「作成」ボタンを押します。
- データベースが正常に作成されると、「データベースが正常に作成されました」と表示されます。
- {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/2f\/Install-Wordpress-on-XAMPP-Step-6-Version-3.jpg\/v4-460px-Install-Wordpress-on-XAMPP-Step-6-Version-3.jpg","bigUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/2f\/Install-Wordpress-on-XAMPP-Step-6-Version-3.jpg\/v4-728px-Install-Wordpress-on-XAMPP-Step-6-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":" class=\"mw-parser-output\"><\/div>"} 6 Windows エクスプローラーを使用して、xampp\htdocs\wordpress ディレクトリに入ります。 wordpress ディレクトリ内の「wp-config-sample.php」ファイルを開きます。
- 7ファイルが開いたら、次の行を編集します: /** WordPress のデータベース名 */define('DB_NAME', 'putyourdbnamehere'); ==> 'putyourdbnamehere' を 'wordpress' に変更します /** MySQL データベースのユーザー名 */define('DB_USER', 'usernamehere'); ==> 'usernamehere' を 'root' に変更します /** MySQL データベースのパスワード */define('DB_PASSWORD', 'yourpasswordhere'); ==> 'yourpasswordhere' を ' ' に変更します (空白のままにします)
- {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/2b\/Install-Wordpress-on-XAMPP-Step-8-Version-3.jpg\/v4-460px-Install-Wordpress-on-XAMPP-Step-8-Version-3.jpg","bigUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/2b\/Install-Wordpress-on-XAMPP-Step-8-Version-3.jpg\/v4-728px-Install-Wordpress-on-XAMPP-Step-8-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":" class=\"mw-parser-output\"><\/div>"} 8前の手順で説明したようにファイルを編集した後、ファイル「wp-config.php」のコピーを wordpress ディレクトリに保存し、ファイルを閉じます。
- 9ブラウザを開き、次のURLを入力してWordPressのインストールページにアクセスします。 [6] 。
- {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/a\/a3\/Install-Wordpress-on-XAMPP-Step-10-Version-3.jpg\/v4-460px-Install-Wordpress-on-XAMPP-Step-10-Version-3.jpg","bigUrl":"https:\/\/www.wikihow.com\/images\/thumb\/a\/a3\/Install-Wordpress-on-XAMPP-Step-10-Version-3.jpg\/v4-728px-Install-Wordpress-on-XAMPP-Step-10-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":" class=\"mw-parser-output\"><\/div>"} 10 「ブログタイトル」欄にブログタイトルを入力します。 「あなたのメールアドレス」欄にメールアドレスを入力してください。次に、「WordPress をインストール」ボタンを押します。
- {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/9\/92\/Install-Wordpress-on-XAMPP-Step-11-Version-3.jpg\/v4-460px-Install-Wordpress-on-XAMPP-Step-11-Version-3.jpg","bigUrl":"https:\/\/www.wikihow.com\/images\/thumb\/9\/92\/Install-Wordpress-on-XAMPP-Step-11-Version-3.jpg\/v4-728px-Install-Wordpress-on-XAMPP-Step-11-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":" class=\"mw-parser-output\"><\/div>"} 11前の手順で正しい情報を入力した場合、画面に「成功しました!」と表示されます。画面には「admin」というユーザー名と一時パスワードが表示されます。これはランダムに生成されたパスワードなので、新しいパスワードができるまで書き留めておいてください。 「ログイン」ボタンを押してください。
- {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/4\/4a\/Install-Wordpress-on-XAMPP-Step-12-Version-3.jpg\/v4-460px-Install-Wordpress-on-XAMPP-Step-12-Version-3.jpg","bigUrl":"https:\/\/www.wikihow.com\/images\/thumb\/4\/4a\/Install-Wordpress-on-XAMPP-Step-12-Version-3.jpg\/v4-728px-Install-Wordpress-on-XAMPP-Step-12-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":" class=\"mw-parser-output\"><\/div>"} 12ログイン画面で、「ユーザー名」フィールドに「Admin」と入力し、「パスワード」フィールドに前の手順で作成した一時パスワードを入力します。 「ログイン」ボタンを押してください。
- {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/a\/a9\/Install-Wordpress-on-XAMPP-Step-13-Version-3.jpg\/v4-460px-Install-Wordpress-on-XAMPP-Step-13-Version-3.jpg","bigUrl":"https:\/\/www.wikihow.com\/images\/thumb\/a\/a9\/Install-Wordpress-on-XAMPP-Step-13-Version-3.jpg\/v4-728px-Install-Wordpress-on-XAMPP-Step-13-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":" class=\"mw-parser-output\"><\/div>"} 13ログインに成功すると、WordPressコントロールパネルが表示されます。同時に、自動生成されたパスワードが現在使用されていることを示すプロンプトが表示され、ユーザーは覚えやすい新しいパスワードに変更する必要があります。一時パスワードを変更するには、「はい。プロフィールページに進みます」リンクを選択します。パスワードを変更したら、ブログのコンテンツとテーマの編集を開始できます。 広告する
ヒント- パスワードを書き留めるのは良い考えではありません。
広告する |