• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

「WordPress のインストール」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(メタ編集のみ)
(途中まで訳)
1行目: 1行目:
 +
訳注: 一旦全部訳して、その後、日本語情報の追加や説明の構成を見直します。
 +
 
{{スタートガイド|インストール}}
 
{{スタートガイド|インストール}}
 
__TOC__
 
__TOC__
WordPress is well known for its ease of installation. Under most circumstances installing WordPress is a very simple process and takes less than five minutes to complete. The following installation guide will help you, whether you go for the ''Famous 5 Minute Installation'', or require the more detailed installation guide.
+
WordPress はインストールの簡単さで有名です。ほとんどの環境で、ごく単純な手順でインストールが済み、完了まで 5分もかかりません。「有名な 5分間インストール」も、詳細なインストール方法も、以下のインストールガイドで分かりますよ。
  
* [[#Things to Know Before You Begin|Things to Know Before You Begin Installing WordPress]]
+
* [[#Things to Know Before You Begin|WordPress をインストールする前に知っておくべきこと]]
* [[#Famous 5-Minute Install|The Famous 5-Minute Installation]]
+
* [[#Famous 5-Minute Install|5分間インストール]]<!-- 「minutes」じゃないので「分」ではないのかも? -->
* [[#Detailed Instructions|Detailed Installation Instructions]]
+
* [[#Detailed Instructions|インストール手順の詳細]]
* [[#Common_Installation_Problems|Common Installation Problems]]
+
* [[#Common_Installation_Problems|よくあるインストールトラブル]]
 
* [[WordPress in Your Language]]
 
* [[WordPress in Your Language]]
 
* [[Installing WordPress in Your Language]]
 
* [[Installing WordPress in Your Language]]
* [[#Installing_Multiple_Blogs|How to Install Multiple Blogs]]
+
* [[#Installing_Multiple_Blogs|複数ブログの設置方法]]
* [[#Installing_WordPress_Locally|How to Install WordPress Locally]]
+
* [[#Installing_WordPress_Locally|ローカル環境への設置方法]]
* [[Getting Started with WordPress|Getting Started with WordPress (much more installation info)]]
+
* [[:en:Getting Started with WordPress|Getting Started with WordPress (much more installation info)]]
  
== Things to Know Before You Begin==
+
<div id="Things_to_Know_Before_You_Begin">
Before you begin the install, there are few things you need to have and do.
+
== 始める前に知っておくべきこと ==
 +
</div>
 +
インストールを始める前に、ちょっとだけ必要なことがあります。
  
=== Things You Need For The Installation ===
+
<div id="Things_You_Need_For_The_Installation">
 +
=== 揃えておくもの ===
 +
</div>
 +
あなたのサイトとディレクトリへのアクセス権と、イントール作業を行なうソフトウェアが必要です。
  
You need access to your site and its directory and software to proceed with the installation. These are:
+
* [[用語集#Web server|ウェブサーバ]]へのアクセス権([[用語集#Shell|shell]] または [[用語集#FTP|FTP]] 経由)
 +
* [[用語集#Text editor|テキストエディタ]]
 +
* [[:en:FTP_Clients|FTP クライアント]](リモートサーバへインストールする場合)
 +
* お好みのウェブブラウザ
  
* Access to your [[Glossary#Web server|web server]] (via [[Glossary#Shell|shell]] or [[Glossary#FTP|FTP]])
+
<div id="Things_You_Need_to_Do_For_The_Installation">
* A [[Glossary#Text editor|text editor]]
+
=== インストール前に済ませておくこと ===
* An [[FTP_Clients|FTP Client]] (if you need to install WordPress on a remote server)
+
</div>
* Your web browser of choice
+
  
===Things You Need to Do For The Installation===
+
インストール前に:
  
Begin your installation by:
+
# あなたとあなたのウェブホスト(サーバ)が[http://wordpress.org/about/requirements/ 最小限の WordPress 動作要件]を満たしていることを確認
 +
# 最新版の WordPress を[http://wordpress.org/download/ ダウンロード]
 +
# ダウンロードしたファイルをあなたのコンピュータ上のフォルダに解凍
 +
# このページを印刷しておくと、インストールの間、手元に置けて便利です。
  
# Checking to ensure that you and your web host has the [http://wordpress.org/about/requirements/ minimum requirements to run WordPress].
+
<div id="Famous_5-Minute_Install">
# [http://wordpress.org/download/ Download] the latest release of WordPress.
+
== 5分間インストール ==
# Unzip the downloaded file to a folder on your hard drive.
+
</div>
# Print this page out so you have it handy during the installation.
+
  
== Famous 5-Minute Install ==
+
この作業手順は、インストールのような作業に慣れた人向けの簡略版です。もっと[[#Detailed_Instructions|詳しい手順はその下に]]あります。
  
Here's the quick version of the instructions, for those that are already comfortable with performing such installations. More [[#Detailed_Instructions|detailed instructions]] follow.
+
# WordPress パッケージをダウンロードして、解凍。(まだ済んでいなければ)
 +
# ウェブサーバ上に、WordPress 用のデータベースと、そのデータベースへの全アクセス権・編集権を持つ [[用語集#MySQL|MySQL]] ユーザを作成。
 +
# <code>wp-config-sample.php</code> ファイルを <code>wp-config.php</code> にリネーム。
 +
# [[用語集#Text editor|テキストエディタ]]で <code>wp-config.php</code> を開き、[[#Step_3:_Set_up_wp-config.php|データベース情報を記入]]。
 +
# ウェブサーバ上の希望の場所に、WordPress ファイルを設置。
 +
#* ドメインルート(例 <code><nowiki>http://example.com/</nowiki></code>)に WordPress を組み込みたいときは、ウェブサーバのルートディレクトリに 解凍した Wordpress ディレクトリ内の全ファイル(ディレクトリ自体は除く)を移動またはアップロードします。
 +
#* ウェブサイト上の WordPress 用サブディレクトリ(例 <code><nowiki>http://example.com/blog/</nowiki></code>に WordPress を設置したいときは、<code>wordpress</code> ディレクトリを好みのサブディレクトリ名にリネームして、ディレクトリごとウェブサーバに移動またはアップロードします。例えば、"blog" というサブディレクトリに WordPress を設置したければ、ディレクトリを "wordpress" から "blog" へリネームして、ウェブサーバのルートディレクトリにアップロードします。<p>'''ヒント''': FTP 転送が遅すぎるときは、[[#Step_1:_Download_and_Extract|手順 1: ダウンロード・解凍]]の FTPing の避け方をお読みください。</p>
 +
# お気に入りのウェブブラウザで <code>wp-admin/install.php</code> へアクセスして、WordPress インストールスクリプトを実行。
 +
#* WordPress をルートディレクトリに設置したなら: <code><nowiki>http://example.com/wp-admin/install.php</nowiki></code>
 +
#* 例えば <code>blog</code> という WordPress 用サブディレクトリに設置したなら: <code><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></code>
  
# Download and unzip the WordPress package, if you haven't already.
+
以上です!これで WordPress はインストールされたはずです。
# Create a database for WordPress on your web server, as well as a [[Glossary#MySQL|MySQL]] user who has all privileges for accessing and modifying it.
+
# Rename the <tt>wp-config-sample.php</tt> file to <tt>wp-config.php</tt>.
+
# Open <tt>wp-config.php</tt> in your favorite [[Glossary#Text editor|text editor]] and [[#Step_3:_Set_up_wp-config.php|fill in your database details]].
+
# Place the WordPress files in the desired location on your web server:
+
#* If you want to integrate WordPress into the root of your domain (e.g. <tt><nowiki>http://example.com/</nowiki></tt>), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
+
#* If you want to have your WordPress installation in its own subdirectory on your web site (e.g. <tt><nowiki>http://example.com/blog/</nowiki></tt>), rename the directory <tt>wordpress</tt> to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.<br><br>'''Hint''': If your FTP transfer is too slow read how to avoid FTPing at : [http://codex.wordpress.org/Installing_WordPress#Step_1:_Download_and_Extract Step 1: Download and Extract].
+
# Run the WordPress installation script by accessing <tt>wp-admin/install.php</tt> in your favorite web browser.
+
#* If you installed WordPress in the root directory, you should visit: <tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>
+
#* If you installed WordPress in its own subdirectory called <tt>blog</tt>, for example, you should visit: <tt><nowiki>http://example.com/blog/wp-admin/install.php</nowiki></tt>
+
 
+
That's it! WordPress should now be installed.
+
  
 
See also:
 
See also:
56行目: 65行目:
 
* [http://www.optiniche.com/blog/26/installing-wordpress-an-audio-visual-presentation/ Installing WordPress-An Audio-Visual Presentation]
 
* [http://www.optiniche.com/blog/26/installing-wordpress-an-audio-visual-presentation/ Installing WordPress-An Audio-Visual Presentation]
  
== Detailed Instructions ==
+
<div id="Detailed_Instructions">
 +
== インストール手順の詳細 ==
 +
</div>
  
=== Step 1: Download and Extract ===
+
<div id="Step_1:_Download_and_Extract">
 +
=== 手順 1: ダウンロード・解凍 ===
 +
</div>
  
Download and unzip the WordPress package from http://wordpress.org/download/.
+
http://wordpress.org/download/ から WordPress パッケージをダウンロードし、解凍。
* If you will be uploading WordPress to a remote web server, download the WordPress package to your computer with your favorite web browser and unzip the package.
+
* リモート・ウェブサーバへ WordPress をアップロードする場合、お好きなウェブブラウザであなたのコンピュータへ WordPress パッケージをダウンロードして、パッケージを解凍してください。
* If you have [[Glossary#Shell|shell]] access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your [[Glossary#Web server|web server]] using <tt>wget</tt> (or <tt>lynx</tt> or another console-based web browser) if you want to avoid [[Glossary#FTP|FTPing]]:
+
* [[用語集#Shell|shell]] でウェブサーバへアクセスできて、コンソールベースのツールに慣れている場合、[[用語集#FTP|FTPing]] を避けたいときは、<code>wget</code>(または <code>lynx</code> 等のコンソールベースのウェブブラウザ)を使って、あなたの[[用語集#Web server|ウェブサーバ]]へ直接 WordPress をダウンロードできます。
** <tt>wget <nowiki>http://wordpress.org/latest.tar.gz</nowiki></tt>
+
** <code>wget <nowiki>http://wordpress.org/latest.tar.gz</nowiki></code>
** Then unzip the package using: <br /> <tt>tar -xzvf latest.tar.gz </tt> <br><br>The WordPress package will extract into a folder called <tt>wordpress</tt> in the same directory that you downloaded <tt>latest.tar.gz</tt>.
+
** 次に、使用するパッケージを解凍: <br /> <code>tar -xzvf latest.tar.gz </code> <p>WordPress パッケージは、<code>latest.tar.gz</code> をダウンロードしたのと同じディレクトリ内の <code>wordpress</code> というフォルダの中に展開されます。</p>
  
* If you do '''not''' have [[Glossary#Shell|shell]] access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your [[Glossary#Web server|web server]] using [http://ftp-unzip.com/ZipDeploy/ ZipDeploy].
+
* ウェブサーバへの [[用語集#Shell|shell]] でのアクセス権が'''ない'''場合や、コンソールベースのツールに不慣れな場合、[http://ftp-unzip.com/ZipDeploy/ ZipDeploy] を使うと、あなたの[[用語集#Web server|ウェブサーバ]]に直接 WordPress を展開できます。
  
=== Step 2: Create the Database and a User ===
+
<div id="Step_2:_Create_the_Database_and_a_User">
 +
=== 手順 2: データベースとユーザの作成 ===
 +
</div>
  
If you are using a [[Glossary#Hosting provider|hosting provider]], you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider's support pages or your [[Using cPanel|control panel]] for clues about whether or not you'll need to create one manually.
+
If you are using a [[用語集#Hosting provider|hosting provider]], you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider's support pages or your [[:en:Using cPanel|control panel]] for clues about whether or not you'll need to create one manually.
  
If you determine that you'll need to create one manually, follow the instructions for [[WordPress_Backups#Accessing_phpMyAdmin|accessing phpMyAdmin on various servers]], or follow the instructions for [[#Using_cPanel|'''Using cPanel''']] or [[#Using phpMyAdmin|'''Using phpMyAdmin''']] below.
+
If you determine that you'll need to create one manually, follow the instructions for [[:en:WordPress_Backups#Accessing_phpMyAdmin|accessing phpMyAdmin on various servers]], or follow the instructions for [[#Using_cPanel|'''Using cPanel''']] or [[#Using phpMyAdmin|'''Using phpMyAdmin''']] below.
  
 
If you are installing WordPress on your own web server, follow the [[#Using phpMyAdmin|'''Using phpMyAdmin''']] or [[#Using the MySQL Client|'''Using the MySQL Client''']] instructions below to create your WordPress username and database.
 
If you are installing WordPress on your own web server, follow the [[#Using phpMyAdmin|'''Using phpMyAdmin''']] or [[#Using the MySQL Client|'''Using the MySQL Client''']] instructions below to create your WordPress username and database.
  
 +
<div id="Using cPanel">
 
==== Using cPanel ====
 
==== Using cPanel ====
 +
</div>
  
''Main article: [[Using cPanel]]''
+
''Main article: [[:en:Using cPanel]]''
  
If your hosting provider uses [[Glossary#cPanel|cPanel]], you may follow these instructions to create your WordPress username and database.
+
If your hosting provider uses [[用語集#cPanel|cPanel]], you may follow these instructions to create your WordPress username and database.
  
# Log in to your [[Glossary#cPanel|cPanel]].
+
# Log in to your [[用語集#cPanel|cPanel]].
 
# Click '''MySQL Databases'''.
 
# Click '''MySQL Databases'''.
 
# If a user relating to WordPress does not already exist under the '''Users''' section, create one:
 
# If a user relating to WordPress does not already exist under the '''Users''' section, create one:
92行目: 109行目:
 
## Choose a name for your WordPress database ('<tt>wordpress</tt>' or '<tt>blog</tt>' are good), enter it in the '''Db''' field, and click '''Add Db'''.
 
## Choose a name for your WordPress database ('<tt>wordpress</tt>' or '<tt>blog</tt>' are good), enter it in the '''Db''' field, and click '''Add Db'''.
 
# Under '''Databases''', select your WordPress username from the '''User''' dropdown, then select your WordPress database from the '''Db''' dropdown. Make sure '''All''' is checked under '''Privileges''', then click '''Add User to Db'''.
 
# Under '''Databases''', select your WordPress username from the '''User''' dropdown, then select your WordPress database from the '''Db''' dropdown. Make sure '''All''' is checked under '''Privileges''', then click '''Add User to Db'''.
# When you return to the main '''MySQL Account Maintenance''' screen, [[Glossary#cPanel|cPanel]] will list information about the database you just created. You should see the username you just added to the database (with <tt>ALL PRIVILEGES</tt>), as well as a few sample '''Connection Strings''' for you to use in [[Glossary#Perl|Perl]] or [[Glossary#PHP|PHP]] scripts to connect to the database. The PHP code will have the following format:
+
# When you return to the main '''MySQL Account Maintenance''' screen, [[用語集#cPanel|cPanel]] will list information about the database you just created. You should see the username you just added to the database (with <tt>ALL PRIVILEGES</tt>), as well as a few sample '''Connection Strings''' for you to use in [[用語集#Perl|Perl]] or [[用語集#PHP|PHP]] scripts to connect to the database. The PHP code will have the following format:
 
  $dbh = mysql_connect("''hostname''", "''username''", "<PASSWORD HERE>") or die ("''message''");
 
  $dbh = mysql_connect("''hostname''", "''username''", "<PASSWORD HERE>") or die ("''message''");
 
  mysql_select_db("''databasename''");
 
  mysql_select_db("''databasename''");
 
: Write down the values of ''hostname'', ''username'', ''databasename'', and the password you chose. (Note that ''hostname'' will usually be '''localhost'''.)
 
: Write down the values of ''hostname'', ''username'', ''databasename'', and the password you chose. (Note that ''hostname'' will usually be '''localhost'''.)
  
 +
<div id="Using_phpMyAdmin">
 
==== Using phpMyAdmin ====
 
==== Using phpMyAdmin ====
 +
</div>
  
If your web server has [[Glossary#phpMyAdmin|phpMyAdmin]] installed, you may follow these instructions to create your WordPress username and database.
+
If your web server has [[用語集#phpMyAdmin|phpMyAdmin]] installed, you may follow these instructions to create your WordPress username and database.
  
 
'''''Note:''' These instructions are written for phpMyAdmin 2.6.0; the phpMyAdmin user interface can vary slightly between versions.''
 
'''''Note:''' These instructions are written for phpMyAdmin 2.6.0; the phpMyAdmin user interface can vary slightly between versions.''
115行目: 134行目:
 
# On the resulting page, make note of the host name listed after '''Server:''' at the top of the page. (This will usually be '''localhost'''.)
 
# On the resulting page, make note of the host name listed after '''Server:''' at the top of the page. (This will usually be '''localhost'''.)
  
 +
<div id="Using_the_MySQL_Client">
 
==== Using the MySQL Client ====
 
==== Using the MySQL Client ====
 +
</div>
  
If you have [[Glossary#Shell|shell]] access to your web server, are comfortable with using the command line, and your MySQL user has the [[Glossary#Permissions|permissions]] to create MySQL users and databases, you may follow the example session below to create your WordPress username and database.
+
If you have [[用語集#Shell|shell]] access to your web server, are comfortable with using the command line, and your MySQL user has the [[用語集#Permissions|permissions]] to create MySQL users and databases, you may follow the example session below to create your WordPress username and database.
 
<pre>
 
<pre>
 
$ mysql -u adminusername -p
 
$ mysql -u adminusername -p
149行目: 170行目:
 
Write down the values you used for ''databasename'', ''wordpressusername'', ''hostname'', and ''password''.
 
Write down the values you used for ''databasename'', ''wordpressusername'', ''hostname'', and ''password''.
  
 +
<div id="Using_Plesk">
 
==== Using Plesk ====
 
==== Using Plesk ====
 +
</div>
 
See:
 
See:
 
*[http://www.tamba2.org.uk/wordpress/plesk/ Plesk 7 at tamba2.org]
 
*[http://www.tamba2.org.uk/wordpress/plesk/ Plesk 7 at tamba2.org]
  
=== Step 3: Set up wp-config.php ===
+
<div id="Step_3:_Set_up_wp-config.php">
 +
=== 手順 3: wp-config.php の設定 ===
 +
</div>
  
 
For the next part, the code you will be looking to change is as follows:
 
For the next part, the code you will be looking to change is as follows:
166行目: 191行目:
  
 
# Returning to where you extracted the WordPress package in '''Step 1''', rename the file <tt>wp-config-sample.php</tt> to <tt>wp-config.php</tt>.
 
# Returning to where you extracted the WordPress package in '''Step 1''', rename the file <tt>wp-config-sample.php</tt> to <tt>wp-config.php</tt>.
# Open the renamed <tt>wp-config.php</tt> file in your favorite [[Glossary#Text editor|text editor]] and fill in the following information, per the example above:
+
# Open the renamed <tt>wp-config.php</tt> file in your favorite [[用語集#Text editor|text editor]] and fill in the following information, per the example above:
 
#; '''DB_NAME''' : The name of the database you created for WordPress in '''Step 2''' .
 
#; '''DB_NAME''' : The name of the database you created for WordPress in '''Step 2''' .
 
#; '''DB_USER''' : The username you created for WordPress in '''Step 2'''.
 
#; '''DB_USER''' : The username you created for WordPress in '''Step 2'''.
 
#; '''DB_PASSWORD''' : The password you chose for the WordPress username in '''Step 2'''.
 
#; '''DB_PASSWORD''' : The password you chose for the WordPress username in '''Step 2'''.
 
#; '''DB_HOST''' : The hostname you determined in '''Step 2''' (usually <tt>localhost</tt>, but not always).
 
#; '''DB_HOST''' : The hostname you determined in '''Step 2''' (usually <tt>localhost</tt>, but not always).
#; '''DB_CHARSET''' : The database character set, normally should not be changed.  See ''[[Editing wp-config.php]]'' for details.
+
#; '''DB_CHARSET''' : The database character set, normally should not be changed.  See ''[[wp-config.php の編集|Editing wp-config.php]]'' for details.
#; '''DB_COLLATE''' : The database collation should normally be left blank.  See ''[[Editing wp-config.php]]'' for details.
+
#; '''DB_COLLATE''' : The database collation should normally be left blank.  See ''[[wp-config.php の編集|Editing wp-config.php]]'' for details.
 
# Save the file.
 
# Save the file.
  
For more extensive details, and step by step instruction for creating the configuration file, please refer to ''[[Editing wp-config.php]]''.
+
For more extensive details, and step by step instruction for creating the configuration file, please refer to ''[[wp-config.php の編集|Editing wp-config.php]]''.
  
=== Step 4: Place the files ===
+
<div id="Step_4:_Place_the_files">
 +
=== 手順 4: ファイルの設置 ===
 +
</div>
  
 
Now you will need to decide where on your web site you'd like your blog to appear:
 
Now you will need to decide where on your web site you'd like your blog to appear:
183行目: 210行目:
 
* In a subdirectory of your web site. (For example, <tt><nowiki>http://example.com/blog/</nowiki></tt>)
 
* In a subdirectory of your web site. (For example, <tt><nowiki>http://example.com/blog/</nowiki></tt>)
  
'''''Note:''' The location of your root web directory in the filesystem on your [[Glossary#Web server|web server]] will vary across hosting providers and operating systems. Check with your [[Glossary#Hosting provider|hosting provider]] or system administrator if you do not know where this is.''
+
'''''Note:''' The location of your root web directory in the filesystem on your [[用語集#Web server|web server]] will vary across hosting providers and operating systems. Check with your [[用語集#Hosting provider|hosting provider]] or system administrator if you do not know where this is.''
  
==== In the Root Directory ====
+
<div id="In_the_Root_Directory">
 +
==== ルートディレクトリの場合 ====
 +
</div>
  
* If you need to upload your files to your web server, use your favorite [[Glossary#FTP|FTP]] client to upload all the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
+
* If you need to upload your files to your web server, use your favorite [[用語集#FTP|FTP]] client to upload all the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
* If your files are already on your web server, and you are using [[Glossary#Shell|shell]] access to install WordPress, move all of the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
+
* If your files are already on your web server, and you are using [[用語集#Shell|shell]] access to install WordPress, move all of the ''contents'' of the <tt>wordpress</tt> directory (but not the directory itself) into the root directory of your web site.
  
==== In a Subdirectory ====
+
<div id="In_a_Subdirectory">
 +
==== サブディレクトリの場合 ====
 +
</div>
  
* If you need to upload your files to your web server, rename the <tt>wordpress</tt> directory to your desired name, then use your favorite [[Glossary#FTP|FTP]] client to upload the directory to your desired location within the root directory of your web site.
+
* If you need to upload your files to your web server, rename the <tt>wordpress</tt> directory to your desired name, then use your favorite [[用語集#FTP|FTP]] client to upload the directory to your desired location within the root directory of your web site.
* If your files are already on your web server, and you are using [[Glossary#Shell|shell]] access to install WordPress, move the <tt>wordpress</tt> directory to your desired location within the root directory of your web site, and rename the directory to your desired name.
+
* If your files are already on your web server, and you are using [[用語集#Shell|shell]] access to install WordPress, move the <tt>wordpress</tt> directory to your desired location within the root directory of your web site, and rename the directory to your desired name.
  
=== Step 5: Run the Install Script ===
+
<div id="Step_5:_Run_the_Install_Script">
 +
=== 手順 5: インストールスクリプトの実行 ===
 +
</div>
  
 
Using your favorite web browser, visit <tt>wp-admin/install.php</tt> within the directory into which you just installed WordPress on your web site.
 
Using your favorite web browser, visit <tt>wp-admin/install.php</tt> within the directory into which you just installed WordPress on your web site.
201行目: 234行目:
 
* If you installed into the root directory of your web site, you would visit <tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>.
 
* If you installed into the root directory of your web site, you would visit <tt><nowiki>http://example.com/wp-admin/install.php</nowiki></tt>.
  
The following screenshots show how the installation progresses.  Notice in the second screen, Entering the details, you enter your Weblog title and your e-mail address.  Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and Technorati.  Leave the box checked if you would like your blog to be visible to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors.  Note all this information can be changed later in your [[Administration_Panels|Administration Panels]].
+
The following screenshots show how the installation progresses.  Notice in the second screen, Entering the details, you enter your Weblog title and your e-mail address.  Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and Technorati.  Leave the box checked if you would like your blog to be visible to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors.  Note all this information can be changed later in your [[管理パネル|Administration Panels]].
  
 
<div>
 
<div>
214行目: 247行目:
 
</div>
 
</div>
  
==== Install Script Troubleshooting ====
+
<div id="Install_Script_Troubleshooting">
 +
</div>
 +
==== インストールスクリプトのトラブルシューティング ====
  
 
* If you get an error about the database when you run the install script:
 
* If you get an error about the database when you run the install script:
221行目: 256行目:
 
** Be sure the database server is running.
 
** Be sure the database server is running.
  
== Common Installation Problems ==
+
<div id="Common_Installation_Problems">
 +
== よくあるインストールトラブル ==
 +
</div>
  
The following are some of the most common installation problems.  For more information and troubleshooting for problems with your WordPress installation, check out [[FAQ Installation]] and [[FAQ Troubleshooting]].
+
The following are some of the most common installation problems.  For more information and troubleshooting for problems with your WordPress installation, check out [[:en:FAQ Installation]] and [[:en:FAQ Troubleshooting]].
  
 
; I see lots of <tt>Headers already sent</tt> errors. How do I fix this? : You probably introduced a syntax error in editing <tt>wp-config.php</tt>.
 
; I see lots of <tt>Headers already sent</tt> errors. How do I fix this? : You probably introduced a syntax error in editing <tt>wp-config.php</tt>.
:# Download <tt>wp-config.php</tt> (if you don't have [[Glossary#Shell|shell]] access).
+
:# Download <tt>wp-config.php</tt> (if you don't have [[用語集#Shell|shell]] access).
:# Open it in your favorite [[Glossary#Text editor|text editor]].
+
:# Open it in your favorite [[用語集#Text editor|text editor]].
 
:# Check that the first line contains nothing but <tt><?php</tt>, and that there is '''no''' text before it (not even whitespace).
 
:# Check that the first line contains nothing but <tt><?php</tt>, and that there is '''no''' text before it (not even whitespace).
 
:# Check that the last line contains nothing but <tt>?></tt>, and that there is '''no''' text after it (not even whitespace).
 
:# Check that the last line contains nothing but <tt>?></tt>, and that there is '''no''' text after it (not even whitespace).
 
:# Save the file, upload it again if necessary, and reload the page in your browser.
 
:# Save the file, upload it again if necessary, and reload the page in your browser.
  
; My page comes out gibberish. When I look at the source I see a lot of "<tt><?php ?></tt>" tags. : If the <tt><?php ?></tt> tags are being sent to the browser, it means your [[Glossary#PHP|PHP]] is not working properly. All PHP code is supposed to be executed ''before'' the server sends the resulting [[Glossary#HTML|HTML]] to your web browser. (That's why it's called a ''pre''processor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
+
; My page comes out gibberish. When I look at the source I see a lot of "<tt><?php ?></tt>" tags. : If the <tt><?php ?></tt> tags are being sent to the browser, it means your [[用語集#PHP|PHP]] is not working properly. All PHP code is supposed to be executed ''before'' the server sends the resulting [[用語集#HTML|HTML]] to your web browser. (That's why it's called a ''pre''processor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
  
 
; I keep getting an <tt>Error connecting to database</tt> message but I'm sure my configuration is correct. : Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
 
; I keep getting an <tt>Error connecting to database</tt> message but I'm sure my configuration is correct. : Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
242行目: 279行目:
 
; My image/MP3 uploads aren't working. : If you use the Rich Text Editor on a blog  that's installed in a subdirectory, and drag a newly uploaded image into  the editor  field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file  correctly. The solution is to  NOT drag uploaded images into the editor. Instead, click and  hold on the image and select "Send to Editor."
 
; My image/MP3 uploads aren't working. : If you use the Rich Text Editor on a blog  that's installed in a subdirectory, and drag a newly uploaded image into  the editor  field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file  correctly. The solution is to  NOT drag uploaded images into the editor. Instead, click and  hold on the image and select "Send to Editor."
  
== Installation Instructions in Other Languages ==
+
<div id="Installation_Instructions_in_Other_Languages">
 +
== 他言語でのインストール手順 ==
 +
</div>
  
 
For installation instructions in other languages, see [[WordPress in Your Language]].
 
For installation instructions in other languages, see [[WordPress in Your Language]].
259行目: 298行目:
 
* [http://www.blog.noclegi-lubuskie.pl/2007/03/15/instalacja/ Instalacja WordPress Polish]
 
* [http://www.blog.noclegi-lubuskie.pl/2007/03/15/instalacja/ Instalacja WordPress Polish]
  
== Installing Multiple Blogs ==
+
<div id="Installing_Multiple Blogs">
 +
== 複数ブログのインストール ==
 +
</div>
  
Detailed information about [[Installing Multiple Blogs]] is available.
+
Detailed information about [[:en:Installing Multiple Blogs]] is available.
  
== Installing WordPress Locally ==
+
<div id="Installing_WordPress_Locally">
 +
== ローカル環境へのインストール ==
 +
</div>
  
 
If you have a sufficiently powerful home computer and a sufficiently fast broadband connection, you may want to avoid certain hosting charges by using your own computer as a server.  The following tutorials will show you how to setup a server environment and install WordPress on your home computer.
 
If you have a sufficiently powerful home computer and a sufficiently fast broadband connection, you may want to avoid certain hosting charges by using your own computer as a server.  The following tutorials will show you how to setup a server environment and install WordPress on your home computer.
275行目: 318行目:
 
* [http://www.supriyadisw.net/2006/12/wordpress-installation-on-ubuntu-with-lamp Install WordPress Locally on Ubuntu Linux with LAMP (easy)]
 
* [http://www.supriyadisw.net/2006/12/wordpress-installation-on-ubuntu-with-lamp Install WordPress Locally on Ubuntu Linux with LAMP (easy)]
  
== Resources ==
+
<div id="Resources">
 +
== 外部資料 ==
 +
</div>
 
*[http://www.lucidgreen.net/wordpressGuides/everymansWPinstall.pdf Brandan Booth's Everyman's WordPress Installation Guide]
 
*[http://www.lucidgreen.net/wordpressGuides/everymansWPinstall.pdf Brandan Booth's Everyman's WordPress Installation Guide]
  

2007年9月24日 (月) 21:13時点における版

訳注: 一旦全部訳して、その後、日本語情報の追加や説明の構成を見直します。

WordPress はインストールの簡単さで有名です。ほとんどの環境で、ごく単純な手順でインストールが済み、完了まで 5分もかかりません。「有名な 5分間インストール」も、詳細なインストール方法も、以下のインストールガイドで分かりますよ。

始める前に知っておくべきこと

インストールを始める前に、ちょっとだけ必要なことがあります。

揃えておくもの

あなたのサイトとディレクトリへのアクセス権と、イントール作業を行なうソフトウェアが必要です。

インストール前に済ませておくこと

インストール前に:

  1. あなたとあなたのウェブホスト(サーバ)が最小限の WordPress 動作要件を満たしていることを確認
  2. 最新版の WordPress をダウンロード
  3. ダウンロードしたファイルをあなたのコンピュータ上のフォルダに解凍
  4. このページを印刷しておくと、インストールの間、手元に置けて便利です。

5分間インストール

この作業手順は、インストールのような作業に慣れた人向けの簡略版です。もっと詳しい手順はその下にあります。

  1. WordPress パッケージをダウンロードして、解凍。(まだ済んでいなければ)
  2. ウェブサーバ上に、WordPress 用のデータベースと、そのデータベースへの全アクセス権・編集権を持つ MySQL ユーザを作成。
  3. wp-config-sample.php ファイルを wp-config.php にリネーム。
  4. テキストエディタwp-config.php を開き、データベース情報を記入
  5. ウェブサーバ上の希望の場所に、WordPress ファイルを設置。
    • ドメインルート(例 http://example.com/)に WordPress を組み込みたいときは、ウェブサーバのルートディレクトリに 解凍した Wordpress ディレクトリ内の全ファイル(ディレクトリ自体は除く)を移動またはアップロードします。
    • ウェブサイト上の WordPress 用サブディレクトリ(例 http://example.com/blog/に WordPress を設置したいときは、wordpress ディレクトリを好みのサブディレクトリ名にリネームして、ディレクトリごとウェブサーバに移動またはアップロードします。例えば、"blog" というサブディレクトリに WordPress を設置したければ、ディレクトリを "wordpress" から "blog" へリネームして、ウェブサーバのルートディレクトリにアップロードします。

      ヒント: FTP 転送が遅すぎるときは、手順 1: ダウンロード・解凍の FTPing の避け方をお読みください。

  6. お気に入りのウェブブラウザで wp-admin/install.php へアクセスして、WordPress インストールスクリプトを実行。
    • WordPress をルートディレクトリに設置したなら: http://example.com/wp-admin/install.php
    • 例えば blog という WordPress 用サブディレクトリに設置したなら: http://example.com/blog/wp-admin/install.php

以上です!これで WordPress はインストールされたはずです。

See also:

インストール手順の詳細

手順 1: ダウンロード・解凍

http://wordpress.org/download/ から WordPress パッケージをダウンロードし、解凍。

  • リモート・ウェブサーバへ WordPress をアップロードする場合、お好きなウェブブラウザであなたのコンピュータへ WordPress パッケージをダウンロードして、パッケージを解凍してください。
  • shell でウェブサーバへアクセスできて、コンソールベースのツールに慣れている場合、FTPing を避けたいときは、wget(または lynx 等のコンソールベースのウェブブラウザ)を使って、あなたのウェブサーバへ直接 WordPress をダウンロードできます。
    • wget http://wordpress.org/latest.tar.gz
    • 次に、使用するパッケージを解凍:
      tar -xzvf latest.tar.gz

      WordPress パッケージは、latest.tar.gz をダウンロードしたのと同じディレクトリ内の wordpress というフォルダの中に展開されます。

  • ウェブサーバへの shell でのアクセス権がない場合や、コンソールベースのツールに不慣れな場合、ZipDeploy を使うと、あなたのウェブサーバに直接 WordPress を展開できます。

手順 2: データベースとユーザの作成

If you are using a hosting provider, you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider's support pages or your control panel for clues about whether or not you'll need to create one manually.

If you determine that you'll need to create one manually, follow the instructions for accessing phpMyAdmin on various servers, or follow the instructions for Using cPanel or Using phpMyAdmin below.

If you are installing WordPress on your own web server, follow the Using phpMyAdmin or Using the MySQL Client instructions below to create your WordPress username and database.

Using cPanel

Main article: en:Using cPanel

If your hosting provider uses cPanel, you may follow these instructions to create your WordPress username and database.

  1. Log in to your cPanel.
  2. Click MySQL Databases.
  3. If a user relating to WordPress does not already exist under the Users section, create one:
    1. Chose a username for WordPress ('wordpress' is good) and enter it in the UserName field.
    2. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field.
    3. Write down the username and password you chose.
    4. Click Add User.
  4. If a database relating to WordPress does not already exist under the Databases section, create one:
    1. Choose a name for your WordPress database ('wordpress' or 'blog' are good), enter it in the Db field, and click Add Db.
  5. Under Databases, select your WordPress username from the User dropdown, then select your WordPress database from the Db dropdown. Make sure All is checked under Privileges, then click Add User to Db.
  6. When you return to the main MySQL Account Maintenance screen, cPanel will list information about the database you just created. You should see the username you just added to the database (with ALL PRIVILEGES), as well as a few sample Connection Strings for you to use in Perl or PHP scripts to connect to the database. The PHP code will have the following format:
$dbh = mysql_connect("hostname", "username", "<PASSWORD HERE>") or die ("message");
mysql_select_db("databasename");
Write down the values of hostname, username, databasename, and the password you chose. (Note that hostname will usually be localhost.)

Using phpMyAdmin

If your web server has phpMyAdmin installed, you may follow these instructions to create your WordPress username and database.

Note: These instructions are written for phpMyAdmin 2.6.0; the phpMyAdmin user interface can vary slightly between versions.

  1. If a database relating to WordPress does not already exist in the Database dropdown on the left, create one:
    1. Choose a name for your WordPress database ('wordpress' or 'blog' are good), enter it in the Create new database field, and click Create.
  2. Click the Home icon in the upper left to return to the main page, then click Privileges. If a user relating to WordPress does not already exist in the list of users, create one:
    1. Click Add a new User.
    2. Chose a username for WordPress ('wordpress' is good) and enter it in the User name field. (Be sure Use text field: is selected from the dropdown.)
    3. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field. (Be sure Use text field: is selected from the dropdown.) Re-enter the password in the Re-type field.
    4. Write down the username and password you chose.
    5. Leave all options under Global privileges at their defaults.
    6. Click Go.
  3. Return to the Privileges screen and click the Check privileges icon on the user you've just created for WordPress. In the Database-specific privileges section, select the database you've just created for WordPress under the Add privileges to the following database dropdown. The page will refresh with privileges for that database. Click Check All to select all privileges, and click Go.
  4. On the resulting page, make note of the host name listed after Server: at the top of the page. (This will usually be localhost.)

Using the MySQL Client

If you have shell access to your web server, are comfortable with using the command line, and your MySQL user has the permissions to create MySQL users and databases, you may follow the example session below to create your WordPress username and database.

$ mysql -u adminusername -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54
 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
 
mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)
 
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
    -> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
  
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> EXIT
Bye
$ 

In the above:

  • adminusername will typically be root, unless you have another high-privileged account set up.
  • wordpress or blog are good values for databasename.
  • wordpress is a good value for wordpressusername.
  • hostname will usually be localhost. If you don't know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
  • password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.

Write down the values you used for databasename, wordpressusername, hostname, and password.

Using Plesk

See:

手順 3: wp-config.php の設定

For the next part, the code you will be looking to change is as follows:

// ** 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
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
  1. Returning to where you extracted the WordPress package in Step 1, rename the file wp-config-sample.php to wp-config.php.
  2. Open the renamed wp-config.php file in your favorite text editor and fill in the following information, per the example above:
    DB_NAME 
    The name of the database you created for WordPress in Step 2 .
    DB_USER 
    The username you created for WordPress in Step 2.
    DB_PASSWORD 
    The password you chose for the WordPress username in Step 2.
    DB_HOST 
    The hostname you determined in Step 2 (usually localhost, but not always).
    DB_CHARSET 
    The database character set, normally should not be changed. See Editing wp-config.php for details.
    DB_COLLATE 
    The database collation should normally be left blank. See Editing wp-config.php for details.
  3. Save the file.

For more extensive details, and step by step instruction for creating the configuration file, please refer to Editing wp-config.php.

手順 4: ファイルの設置

Now you will need to decide where on your web site you'd like your blog to appear:

  • In the root directory of your web site. (For example, http://example.com/)
  • In a subdirectory of your web site. (For example, http://example.com/blog/)

Note: The location of your root web directory in the filesystem on your web server will vary across hosting providers and operating systems. Check with your hosting provider or system administrator if you do not know where this is.

ルートディレクトリの場合

  • If you need to upload your files to your web server, use your favorite FTP client to upload all the contents of the wordpress directory (but not the directory itself) into the root directory of your web site.
  • If your files are already on your web server, and you are using shell access to install WordPress, move all of the contents of the wordpress directory (but not the directory itself) into the root directory of your web site.

サブディレクトリの場合

  • If you need to upload your files to your web server, rename the wordpress directory to your desired name, then use your favorite FTP client to upload the directory to your desired location within the root directory of your web site.
  • If your files are already on your web server, and you are using shell access to install WordPress, move the wordpress directory to your desired location within the root directory of your web site, and rename the directory to your desired name.

手順 5: インストールスクリプトの実行

Using your favorite web browser, visit wp-admin/install.php within the directory into which you just installed WordPress on your web site.

  • If you installed into a subdirectory called blog, you would visit http://example.com/blog/wp-admin/install.php.
  • If you installed into the root directory of your web site, you would visit http://example.com/wp-admin/install.php.

The following screenshots show how the installation progresses. Notice in the second screen, Entering the details, you enter your Weblog title and your e-mail address. Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and Technorati. Leave the box checked if you would like your blog to be visible to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors. Note all this information can be changed later in your Administration Panels.

ファイル:install21-step0-cropped.png
WordPress Version 2.1, Getting Started Screen
ファイル:install21-step1-cropped.png
WordPress Version 2.1, Entering details
ファイル:install21-step2-cropped.png
WordPress Version 2.1, All done!

インストールスクリプトのトラブルシューティング

  • If you get an error about the database when you run the install script:
    • Go back to Step 2 and Step 3, and be sure you got all the correct database information and that it was entered correctly into wp-config.php.
    • Be sure you granted your WordPress user permission to access your WordPress database in Step 3.
    • Be sure the database server is running.

よくあるインストールトラブル

The following are some of the most common installation problems. For more information and troubleshooting for problems with your WordPress installation, check out en:FAQ Installation and en:FAQ Troubleshooting.

I see lots of Headers already sent errors. How do I fix this? 
You probably introduced a syntax error in editing wp-config.php.
  1. Download wp-config.php (if you don't have shell access).
  2. Open it in your favorite text editor.
  3. Check that the first line contains nothing but <?php, and that there is no text before it (not even whitespace).
  4. Check that the last line contains nothing but ?>, and that there is no text after it (not even whitespace).
  5. Save the file, upload it again if necessary, and reload the page in your browser.
My page comes out gibberish. When I look at the source I see a lot of "<?php ?>" tags. 
If the <?php ?> tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That's why it's called a preprocessor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
I keep getting an Error connecting to database message but I'm sure my configuration is correct. 
Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
SET PASSWORD FOR 'wordpressusername'@'hostname' = OLD_PASSWORD('password');
If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host's control panel to reset the password for your database user.
My image/MP3 uploads aren't working. 
If you use the Rich Text Editor on a blog that's installed in a subdirectory, and drag a newly uploaded image into the editor field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select "Send to Editor."

他言語でのインストール手順

For installation instructions in other languages, see WordPress in Your Language.

複数ブログのインストール

Detailed information about en:Installing Multiple Blogs is available.

ローカル環境へのインストール

If you have a sufficiently powerful home computer and a sufficiently fast broadband connection, you may want to avoid certain hosting charges by using your own computer as a server. The following tutorials will show you how to setup a server environment and install WordPress on your home computer.

外部資料

最新英語版: WordPress Codex » Installing WordPress