Where is my WordPress configuration file/wp-config.php and how can I edit it?

The configuration file of your WordPress script is located in the WordPress installation directory and its name is: wp-config.php.

You can edit it through cPanel --> File Manager. Find the file, click on it and from the top menu choose "Edit".

If you want a lightning-fast WordPress website, check out our free eBook WordPress Speed Optimization Ebook! In it you will find a variety of easy-to-follow tips to improve the speed of your site!

6 Comments

  1. Reply October 26, 2016 / 00:39 Stacie F BenefieldSiteGround Team

    Where is the cPanel!?

    • Reply October 27, 2016 / 08:41 Ivan StefanovSiteGround Team

      Stacie, you can access your cPanel from User Area -> My Accounts -> Login to cPanel button or directly by typing your domain.name/cpanel or domain.name:2083, where you should replace "domain.name" with your actual domain name, which should be pointed to SiteGround services, too.

  2. Reply March 3, 2017 / 02:17 JohnSiteGround Team

    Where exactly can I find the wp-config.php file? I'm in the cpanel, but don't know where to go from there.

    • Reply March 7, 2017 / 15:15 Ivan AtanasovSiteGround Team

      You can follow the steps below:

      1. Go to your cPanel
      2. Click on File Manager (tutorial)
      3. Navigate to the Directory Root folder of the domain you are referring to (the directory root folder is shown in cPanel -> Addon Domains for TLDs, and cPanel -> Subdomains for subdomains)
      4. The wp-config.php file is usually there

  3. Reply March 30, 2017 / 08:43 ChrisSiteGround Team

    How can I login to cpanel? should I create a new account or is it with my WP account username/password?

    • Reply March 30, 2017 / 14:01 Ivan AtanasovSiteGround Team

      You can access your cPanel from your User Area -> My Accounts -> Go to cPanel. You can also use yourdomain.com/cpanel. The login credentials should be different than the ones you used for your WordPress.

      The Username is shown in your User Area -> My Accounts -> Information & Settings, and the password can be reset from the same tab.

* (Required)