Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

What is: wp-config.php

wp-config.phpはWordPressのコアファイルの1つです。名前、ホスティングサービス(通常はlocalhost)、ユーザー名、パスワードなど、データベースに関する情報が含まれています。この情報により、WordPressはデータベースと通信し、データ(投稿、ユーザー、設定など)を保存したり取得したりすることができます。このファイルは、WordPressの高度なオプションを設定するためにも使用されます。

wp-config.phpファイルはWordPressの初期設定ダウンロードパッケージには含まれていません。代わりに、wp-config-sample.phpというファイルが含まれています。このファイルをリネームしてwp-config.phpとして使用することで、WordPressをインストールして使用することができます。

以下は、wp-configファイルの最も重要なセクションです:

[cbk1]

以下に示すwp-configファイルの残りの部分には、他のデータベース要素、WordPressインストールのセキュリティキー、開発者オプションを設定するための高度な設定もあります。新規:WordPress APIサイトにアクセスすることで、新しいセキュリティキーのセットを自動的に生成することができます。

[cbk2]

Additional Reading

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!