Forums

wp-config.php file?? (26 posts)

  1. mandyanne
    Member
    Posted 4 years ago #

    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
    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
    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.

  2. moshu
    Member
    Posted 4 years ago #

    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...

  3. Viper007Bond
    Member
    Posted 4 years ago #

    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

    ^^ That's a 404.

  4. oriecat
    Member
    Posted 4 years ago #

    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.

  5. mandyanne
    Member
    Posted 4 years ago #

    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?

  6. mandyanne
    Member
    Posted 4 years ago #

    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

  7. moshu
    Member
    Posted 4 years ago #

    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?

  8. mandyanne
    Member
    Posted 4 years ago #

    Yes, there is 4 folders and some files within my wordpress folder.

  9. moshu
    Member
    Posted 4 years ago #

    And the wp-config file is among those "some files"?

  10. mandyanne
    Member
    Posted 4 years ago #

    Yes, definitely.

  11. Viper007Bond
    Member
    Posted 4 years ago #

    Well you still don't have it in the right place: http://mandyanne.dkmhosting.com/wordpress/wp-config.php

  12. mandyanne
    Member
    Posted 4 years ago #

    I know.. but it is in the place where you say it's supposed to be. I don't get it.

  13. mandyanne
    Member
    Posted 4 years ago #

    I just re-uploaded it and it still isn't working (404). Any ideas anyone?

  14. moshu
    Member
    Posted 4 years ago #

    Check the file name for typos, upper/lower case...

  15. mandyanne
    Member
    Posted 4 years ago #

    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..

  16. Viper007Bond
    Member
    Posted 4 years ago #

    Best to contact your host probably at this point.

  17. moshu
    Member
    Posted 4 years ago #

    Shouldn't this
    mandyanne_dkmhosting_com
    be rather something like:
    mandyanne_dkmhosting.com ?

    Edit. or just mandyanne_dkmhosting ?

  18. mandyanne
    Member
    Posted 4 years ago #

    I tried all of those versions moshu. Still not working. I'm waiting for my host to get back to me, they are taking forever!

  19. moshu
    Member
    Posted 4 years ago #

    Earlier you mentioned cPanel. Did you add the user to the DB? Using_cPanel see the Really Important Bit

  20. mandyanne
    Member
    Posted 4 years ago #

    ooo I have to add the user? I don't think I've done that. I'll go try to figure that out. Thanks!

  21. mandyanne
    Member
    Posted 4 years ago #

    moshu, you are a genius. It worked! I'm currently installing..

  22. moshu
    Member
    Posted 4 years ago #

    LOL, not at all. Just made the same mistake a year ago :) - and learned the lesson.

  23. mandyanne
    Member
    Posted 4 years ago #

    Ok, installation went really well. But now I have a question (I know I ask so many). =)

    My blog is currently located at http://mandyanne.dkmhosting.com/wordpress but I would like it to just be located at http://mandyanne.dkmhosting.com

    So, can I do this by taking all the files out of the wordpress folder and putting them outside it, or do I have to reinstall? And if so, does my config file remain the same?

    Thanks for all your help guys, I couldn't of done this without you. =)

    -mandyanne

  24. moshu
    Member
    Posted 4 years ago #

    Wait! First let's make it work from where it is now. When I go to your blog all I get is a blank page. You can search for blank index et al.; but you also can check whether the default theme is in the proper folder: sometimes it gets like /themes/default/default/ and it has to be moved in the first "default" directory.

  25. mandyanne
    Member
    Posted 4 years ago #

    I can't even find the themes folder. Exactly where is it located?

    Edit. Found the folder on my hard drive, now uploading it.

    Now it works, I didn't realize my page wasn't supposed to be blank =P. Thanks again moshu. Anything else I'm missing?

  26. moshu
    Member
    Posted 4 years ago #

    Now it's fine. I am glad it works.
    And for moving, please, read in the Codex this article:
    http://codex.wordpress.org/Moving_WordPress
    Try to follow carefully every step. If you have problems, post back.

Topic Closed

This topic has been closed to new replies.

About this Topic