• Resolved MrAnnex

    (@mrannex)


    Hi all.

    I’m having a bit of a meltdown. I have a site with a client that was not getting backed up fully. Everything except the DB. Something happened, hacked and site was taken down. I have all the files but HOW to I restore the site with this?

    I looked into the database and it’s still there. It exists. What can I do to restore this site?

    I’m not extremely savvy with editing the sql / or php files however, if there is a way can someone lead me to a solution?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator James Huff

    (@macmanx)

    If the database still exists, just make sure that the wp-config.php file is set to connect to it, and especially double-check the set table prefix.

    https://codex.www.ads-software.com/Editing_wp-config.php

    Thread Starter MrAnnex

    (@mrannex)

    Thanks James, so let me ask if I have this right.

    I did a full clean install of WP. Then, I changed out my wp-config to point to the original DB. I then, change out my core files. Would that bring me up to speed?

    Also, I’ll look at the table prefix and such to make sure things are in order.

    Moderator James Huff

    (@macmanx)

    Yes, it should. Basically, if the wp-config.php file is pointing at the right database and right table prefix, it will pull in the right information.

    Thread Starter MrAnnex

    (@mrannex)

    Ok so I went through it, not sure what I’m missing. The site pops up… however, everything is 404 from the main page. Any suggestions? I know I’m missing something, I guess the good sign is that this shows up.

    https://thegranddistortion.com

    Thread Starter MrAnnex

    (@mrannex)

    I can’t even log into my dashboard now. I only changed out the wp-content, includes, and admin folders… I saw some recommendation to do that. I’m not sure if that helped me or hurt me.

    Moderator James Huff

    (@macmanx)

    The links are not 404ing for me anymore. Are you able to access your Dashboard now too?

    If not, try manually resetting your plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter MrAnnex

    (@mrannex)

    Hey James!

    Looks like I got it all squared away. I had replaced the includes and admin, I put back the updated folders and viola! All worked. Then I had to refresh the permalinks. Then everything worked perfect. I ran through and checked everything to make sure nothing was broken / ran a few updates that popped up.

    Thank you for your insight! It really helped out.

    Moderator James Huff

    (@macmanx)

    You’re welcome! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How can I restore this site?’ is closed to new replies.