wp-config.php Sample File

This is a sample wp-config.php file which is included when you download WordPress manually or install WordPress using a software script.

Your wp-config.php file will be automatically edited with your new database access details when you install WordPress automatically using a one click installation script in cPanel provided by the best web hosts.

If you are installing WordPress manually, you’ll need to edit the wp-config.php sample file manually.

Most of the time you will only need to edit the following access details in Bold including:

  1. Database Name – Database Name used by WordPress
  2. Database Username – Username used to access Database
  3. Database Password – Password used by Username to access Database
  4. Database Host – The hostname of your Database Server

You’ll create these details when you create a database using the MYSQL Database Wizard in the databases section in your cPanel web hosting account.

2 responses to “wp-config.php Sample File”

  1. Hi, can I open the wp-config.php file from the DASHBOARD? I ask because I opened the editor, and saw many files, but not the wp-config file. Thanks for your consideration.

    1. Brad Dalton Avatar
      Brad Dalton

      no. you’ll need ftp. why do u need to access it?

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.