• Hi everyone, I have an issue with my site I’ve been trying to fix, I have Bluehost and had it use an existing domain name, cdl.me and so it installed wordpress and the site in a temp folder which was: https://box5543.temp.domains/~cdlme. When I went to cdl.me it would show the webpage but the addresses were all screwed up and showed the address above. I went into WordPress settings and changed WordPress Address and Site Address from https://box5543.temp.domains/~cdlme to https://cdl.me but now the page doesnt show the theme anymore and I can’t access the wordpress dashboard for the site anymore or get to where I can login, it says
    “Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.”

    I’m trying to figure out how to fix this and get back in the dashboard and get the site to show right at cdl.me. I’m thinking I need to use File Manager or myphpadmin but I’ve been trying to figure out what to do for the last 5 hours or so. Thanks so much in advance if anyone can help.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Looks like everything is 404ing because the directory is all out of wack. Your site could be in a very fragile state right now.

    After looking at the site it looks like you have “public_html” prefixing all of your urls.

    Your resources are trying to load from cdl.me/public_html/wp-content/whatever_path

    They should be loading from cdl.me/wp-content/whatever_path

    I would do a search and replace

    https://www.ads-software.com/plugins/search-and-replace/

    This is one of a few plugins you could use for this. Replace /public_html/ with /

    Let me know if you need any more help!

    Sorry, rereading this. You’re going to have to check your wp-config.php file which is in the root of your WordPress install to diagnose your database issue.

    If you don’t know how to ftp into your site you could use the file manager.

    Now check phpmyadmin in your cPanel to see if the database credentials match with your mysql database. (Plenty of documentation a Google away)

    I would download the entire site through ftp and save a backup. Then I would try to do a search and replace on the entire thing using vscode or whatever IDE you choose.

    When you’re done, get the site fired up locally with MAMP, WAMP or whatever locally development tool works for your computer.

    You should be able to login to WordPress locally at this point. Now, do what I mentioned above. Most likely you’ll have the wrong url in your database wp_options.

    Thread Starter garretbohl

    (@garretbohl)

    Thanks so much for your help!! I don’t understand how but all of a sudden it seems to be working fine now, I’m not sure if maybe it’s something Bluehost updated automatically because it was not working at all last night, but it seems to be fixed now and the domain address is right too now at cdl.me. I’m so glad, I’m pretty new at this so I was trying to learn everything you were saying but it seems to be good now. Thanks again for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Installed in Temp Folder with Bluehost, Change to Domain’ is closed to new replies.