> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# What is the wp-config.php file?

## The Wordpress wp-config.php configuration file

wp-config.php is a [PHP](https://help.ex2.com/en/article/what-is-php-and-what-is-it-used-for-x4xvdq/?bust=1784054117446) file located in the root directory (public_html) of a Wordpress site. It contains all the configuration details of the website. These include the database name, host, username and password.

When you download WordPress, the wp-config.php file is not yet included. You must provide some information during the installation process for WordPress to create a wp-config.php file.

If you create a new wp-config.php file, WordPress includes a template in the root folder, already containing the necessary codes. Improper configuration of this file can cause major problems on a website. Most website owners never venture to modify it.

If necessary, you can locate the wp-config.php file via an FTP client or the cPanel File Manager. You will simply find it in the public_html root folder of your site.