How to restart Wordpress after hack?

by amunt
5 replies
I had to delete most of my site because it became infected with Malware. Unfortunately I didn't properly back up everything. All the mysql database is still there. I thought I could just reinstall wordpress pointing to the original database. It doesn't work - should I be doing something else?

Thanks for any help.
#hack #restart #wordpress
  • Profile picture of the author wizzlesticks
    Check the wp-config.php file, and make sure the following all match up correctly with your existing MySQL file:

    HTML Code:
    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name_here');
    
    /** MySQL database username */
    define('DB_USER', 'username_here');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password_here');
    {{ DiscussionBoard.errors[8206443].message }}
  • Profile picture of the author Valdor Kiebach
    It should work, what do you mean by 'It doesn't work'
    {{ DiscussionBoard.errors[8206762].message }}
  • Profile picture of the author Vincent Abrugar
    Yes It should work but if you also deleted your wp-content folder, then your images won't show up.

    If you can ask a backup from your host, then it would be easy to restore your site.
    {{ DiscussionBoard.errors[8209433].message }}
    • Profile picture of the author wizzlesticks
      Even if you've deleted your wp-content folder, it's not the end of the world. All of your published content is in the MySQL database... Seems like the OP isn't responding though, Maybe he found a solution.
      {{ DiscussionBoard.errors[8209887].message }}
  • Profile picture of the author dspa72
    I had a similar experience with my wordpress blog. I've used wordfence plugin (google it).
    Install it, and make a scan of your wordpress installation. It will find all the modified page so you can replace them.
    {{ DiscussionBoard.errors[8210929].message }}

Trending Topics