DB_Host Value Is siteurl?
-
I tend to write too much, but I want to describe the problem. I’m fairly new to wordpress, although I’ve been with joomla and other CMS’s for a while, so I’m not really new to the whole thing. But I am impressed, nice piece of software.
I’m setting up a blog. I had it running on a local XAMPP server. Meaning that my siteurl was at localhost/word and my db_host was set to localhost. it worked great, I tweaked it, and it is now ready to go live.
I moved the files over, I moved over the database, and I changed the config file. As I would do with any other CMS. I did not change the db values like I was supposed to do. When I went to load the now online version of the website, it took me to localhost, not the my intended domain name.
I quickly remembered that there were database values, so I changed the siteurl to the site I wanted. https://trutennis.com And all associated site values. However, when I went back to the domain it still linked me right back to localhost. i thought that was odd.
Out of a hunch, I changed my db_host value to something bogus. When I went to trutennis.com it tried to send me to that bogus server. Now, like I said, I’m no expert… but the db_host value shouldn’t determine the site url path, right? It should determine the server to find the database connection, yeah?
I googled this much, but I kept coming up with threads on incorrect values. However, I know localhost is the right value because that’s how I have all my other CMS’s set. I can’t understand why the db_host variable would dicate the actual site url, rather than the siteurl in the db.
Any Ideas?
Thanks, I’ll check back tomorrow. Trutennis.com is currently at the values I think it should be set. If you go there, you’ll probably just get sent back to your localhost.
Thanks for your time again!
- The topic ‘DB_Host Value Is siteurl?’ is closed to new replies.