Title: wp-config.php file??
Last modified: August 18, 2016

---

# wp-config.php file??

 *  [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/)
 * Hi, I’m new and trying to install wordpress. I’ve installed greymatter before
   but that was years ago and I’m a bit rusty.
 * Here’s my problem:
 * My website is [http://mandyanne.dkmhosting.com](http://mandyanne.dkmhosting.com)
   
   My wp-config.php file looks like this: define(‘DB_NAME’, ‘mandyannedkmhostingcom’);//
   The name of the database define(‘DB_USER’, ‘mandyannedkmhostingcom’); // Your
   MySQL username define(‘DB_PASSWORD’, ‘*****’); // …and password define(‘DB_HOST’,‘
   localhost’); // 99% chance you won’t need to change this value
 * That part could be wrong, but I’m not sure. Then I uploaded the entire wordpress
   folder onto my server space. I didn’t see a cgi file anywhere..
 * And when I go to [http://mandyanne.dkmhosting.com/wordpress/wp-admin/install.php](http://mandyanne.dkmhosting.com/wordpress/wp-admin/install.php)
   
   it says “there doesn’t seem to be a wp-config.php file”. What am I doing wrong,
   or did I do anything right? Please help – mandyanne.

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/wp-configphp-file-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-configphp-file-1/page/2/?output_format=md)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255816)
 * Is everything in one folder, or do you have 4 folders and some files in the WP
   directory on your server?
    (BTW, no cgi needed for WP) The DB name and DB user
   is probably wrong…
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255817)
 * > I didn’t see a cgi file anywhere..
 * WordPress is written in PHP. There will be no CGI files. 😉
 * As for your `config.php`, check that you really did upload it and put it in the
   right place:
 * [http://mandyanne.dkmhosting.com/wordpress/wp-config.php](http://mandyanne.dkmhosting.com/wordpress/wp-config.php)
 * ^^ That’s a 404.
 *  [oriecat](https://wordpress.org/support/users/oriecat/)
 * (@oriecat)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255818)
 * When you made the wp-config, I assume you used the sample, did you remember to
   rename it?
 * If the DB name or user was wrong, it would say that.
 *  Thread Starter [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255819)
 * Thanks for all the help! It’s still not working, but my dbuser name and such 
   was wrong, I went into cpanel and got that info, now it looks like this:
 * My wp-config.php file looks like this:
    define(‘DB_NAME’, ‘mandyannedkmhostingcom’);//
   The name of the database define(‘DB_USER’, ‘mandyannedkmhostingcom’); // Your
   MySQL username define(‘DB_PASSWORD’, ‘*****’); // …and password define(‘DB_HOST’,‘
   localhost’); // 99% chance you won’t need to change this value
 * Then I re-uploaded the file to my server. When I upload, there is a file already
   there called images, and then some other files like index.html. Those were already
   there, I did not create them. So right beside them is my wordpress folder with
   all the wordpress files in it.
 * Regarding the file itself, I did rename it, but I didn’t delete the old one. 
   So there is a wp-config-sample.php in the wp folder and then a wp-config.php 
   file (as it looks above) in the folder.
 * What else could I have done wrong?
 *  Thread Starter [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255820)
 * sorry, I forgot to paste the right one, my wp-config.php file looks like this:
 * My wp-config.php file looks like this:
    define(‘DB_NAME’, ‘mandyanne_dkmhosting_com’);//
   The name of the database define(‘DB_USER’, ‘mandyanne_dkmhosting_com’); // Your
   MySQL username define(‘DB_PASSWORD’, ‘*****’); // …and password define(‘DB_HOST’,‘
   localhost’); // 99% chance you won’t need to change this value
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255822)
 * _So right beside them is my wordpress folder with all the wordpress files in 
   it._
    That’s fine, but **inside** the wordpress folder are there 4 folders and
   some files?
 *  Thread Starter [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255823)
 * Yes, there is 4 folders and some files within my wordpress folder.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255824)
 * And the wp-config file is among those “some files”?
 *  Thread Starter [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255825)
 * Yes, definitely.
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255826)
 * Well you still don’t have it in the right place: [http://mandyanne.dkmhosting.com/wordpress/wp-config.php](http://mandyanne.dkmhosting.com/wordpress/wp-config.php)
 *  Thread Starter [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255827)
 * I know.. but it is in the place where you say it’s supposed to be. I don’t get
   it.
 *  Thread Starter [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255829)
 * I just re-uploaded it and it still isn’t working (404). Any ideas anyone?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255830)
 * Check the file name for typos, upper/lower case…
 *  Thread Starter [mandyanne](https://wordpress.org/support/users/mandyanne/)
 * (@mandyanne)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255831)
 * Oh my god. I feel so dumb. Because I edited the file I had a .txt extension on
   the file that I couldn’t see in my ftp! Ahh thanks for the help! Unfortunately,
   apparently my db info is wrong..
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/#post-255850)
 * Best to contact your host probably at this point.

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/wp-configphp-file-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-configphp-file-1/page/2/?output_format=md)

The topic ‘wp-config.php file??’ is closed to new replies.

## Tags

 * [installing](https://wordpress.org/support/topic-tag/installing/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 25 replies
 * 4 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [20 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-file-1/page/2/#post-256217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
