WordPress.org

Ready to get started?Download WordPress

Forums

wp-config.php Confusion (edits not reflected) (10 posts)

  1. mindyb
    Member
    Posted 2 years ago #

    Hi, I'm experiencing some issues (I think) with the config file. Here's what I did and here's what has happened:
    I installed wordpress on an empty site. I then realized that I wanted to move my locally hosted wordpress site to the webspace, so I deleted the wordpress installation and started moving my wordpress files up. I created a new config file (distinct from my local host config file) however when I go to the wordpress site, it is still seeking my *old* username and password. When I look at the config file online (via ftp) it has the NEW username and password in the file. What have I done? I am also having issues with importing the database, but I'll not muddy the waters and sort this out first.

    Thanks in advance for any help.
    Mindy

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. mindyb
    Member
    Posted 2 years ago #

    Thanks for the link esmi. I went through the post and did what was suggested, but it still seeks my old password and username (and has broken links). The step that I hadn't performed was updating the site uri in wordpress before I uploaded. So I did that, re-uploaded and wrote over the existing content and it still asks for the old password and username. (I also updated the links in the database and uploaded that) Essentially, I'm in the same place when I started. I did try to double check that the .htaccess file was updated, but it appears that I don't have an .htaccess file (I know it's hidden on the server, I tried to find it via the shell and it doesn't exist). Could this have something to do with it? (It still shows the proper content in the wp-config file and I can see that the data exists in the database.)

    I'm wondering if I should just create a new database and get rid of the current wordpress install and start from scratch.

    Thanks for your help.
    Mindy

  4. Tim S
    Member
    Posted 2 years ago #

    The username and password in the wp-config.php file is for the database connection and not the admin password to the dashboard. If you deleted the old installation and removed the database there's no reason it would want those credentials. If you moved the files and database over from your local computer, you'll need to use that same password to log in with.

    I hope this helps!

  5. mindyb
    Member
    Posted 2 years ago #

    Ah! It does. Thanks, Tim. I wondered about that. The site seems to access the information for the home page, but other links are broken in spite of updating and uploading the database. Is this related, to the wp-config? or should I start a new topic? Essentially, I've got all of the elements online, but it's not establishing the link to any pages but the home page. Thanks for your help.

    Mindy

  6. Tim S
    Member
    Posted 2 years ago #

    Go into your dashboard and reset your permalinks. Also, you may need to update the site url and home if they are not configured correctly. Here's links to help you out:

    http://codex.wordpress.org/Changing_The_Site_URL

    http://wordpress.org/support/topic/permalinks-not-working-after-moving-wordpress?replies=10

    Let me know how it works out for you!

  7. mindyb
    Member
    Posted 2 years ago #

    Thank you TIm and esmi for your help. I think esmi's post which instructed to update the information (uri) in the WordPress Panel *as well as* the config file, was the answer. I think I continued to due to browser caching. That's all I can think of because I had to go away for the weekend without having a chance to investigate Tim's comments further and when I returned all was up and running properly (or is it possible that there's a time lag when adjusting that sort of thing?). Thank both for your help. All is well regarding this issue.

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    There shouldn't be any time lag. There certainly isn't at your site's end but I have known some hosts or ISPs operate web caches that do not update as frequently as they should do. One of my clients uses a host like this and it drives me up the wall! Perhaps this was an issue in your case. Either way, thanks for letting us know that your site is now back up & running.

  9. mindyb
    Member
    Posted 2 years ago #

    Well, that's good (?) to know. I'll look into that. Thanks, again.

  10. Tim S
    Member
    Posted 2 years ago #

    I've seen ISP caching take up to 48 hours to update. It's really a pain when you have to deal with it, and most tech support reps with the ISP's are clueless as to what you are talking about. But, I'm glad it's now resolved for you! Take Care!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.