With every step of success also increase problems which make you unsuccessful in minutes if you not face them smartly. This happen to me in some days back. My blog start getting good attraction helping peoples with my easy to read articles but someone hack by blog. He delete all my data including my blog files,images,etc. In this post i am going to tell you some simple steps that How To Recover WordPress Blog.
In 22 jan at 3:00 am my blog hacked by some internet user i dont know him. he delete all my site data including like Posts,WordPress Installation,Images etc.
I got notification by jetpack plugin that my site is down. I thought that hosting compaines start maintenance and my site’s back live after some time. But in morning i got second notification that my site still down and 4 hours passed.
Now i feel worried. I contact my hosting company (Bluehost) and ask them that what happen with my blog. They said that we are ok and our servers are up and running.
I tell them that my site is down and 4 hours passed. They need some information. I provide all things after some time they said that well defiantly help But need some time to analyze my blogs logs information to detect what happen and how my site down.
I can’t wait because all know that your rank ll start down. So i start fixing with all knowldge i have and i recover wordpress.
What You Will Learn
I start analyzing my blog with all knowledge i got from internet like how to recover wordpress etc. I check my ftp accounts and saw that alot of ftp accounts created by some unknown names. There are 35+ accounts defiantly i start removing them one by one. You all know that with the help of ftp anyone can steal your blog information and transfer to its own computer.
So first simply i removed all that unknown ftp accounts. Just click on remove option.
My Data Removed:
After ftp accounts i check my site data by file manager. I am shocked to see that all of my blog data gone. I check all files and nothing found. I contact again Bluehost that all my site data gone. They replied that we check your logs and you accidentally install a nulled plugin contains some virus codes and hack code and that plugin caused problem.
Few days back i install some third parties plugins. I forgot that plugin name and no information left because all data gone.
I log into my phpmyadmin area you ll found option of phpmyamin in your cpanal. I saw that the hacker not removed my database. I feel some relax because i know that how to recover WordPress blog with the help of database.
Wpbeginner helped alot in this. You have to visit and read their awesome easy to read tutorials for WordPress only.
So How I recover WordPress read on 🙂
Install WordPress Without Database:
I install fresh copy of WordPress without new database in my hosting and with the help of wp-config i connected my old database with new WordPress installation.
How To Recover WordPress With Database?
Install WordPress in your hosting with the help of quick option.
Unchecked option for new database you ll find when you installing wordpress.
After installation Open your wp-config file (You can find him in your root folder).
Find below code and change your information with your database information.
Save it that’s all
After all things done you have to put your blog into maintenance mode with the help of maintenance plugin. Because you need to repair some things in your blog.
- You need to install and activate your plugins again.
- You need to repair your all images again.
- You need to setup your Theme Again.
- you can feel alot of broken links of images that gone. so simply install and activate (Broken link checker Plugin) and start repairing your images one by one or simply unlink them and add new images.
In short you need to fix alot.
Recover WordPress With Full Backup:
If you have a full backup of your blog then its more easy for you to recover. Simply log in your file manager and delete all old virus data from your hosting. You can log in with the help of any ftp client such as filezilla.
After that you need to upload your backup you save in your computer. Try to upload your most recent backup with the help of ftp client.
Recover WordPress Database:
Simply log in to your phpmyadmin and import your database file. With the help of wp-config file connect your site with database how i already provided above 🙂
After check your files and analyze them one by one like check that all your images fine and successfully uploaded. You can find them in your wp-content folder.
Log in to your site and repair all things like your theme customization and plugins. Simply repair them one by one.
Some Tips for you:
- Change your hosting password with strong one.
- Change your WordPress password with strong one.
- Install and activate a security plugin if you don’t know how to secure your blog.
- Change your hosting well honestly (Bluehost) is best. My blog hacked because of my mistake.
- Use password with combination of numbers and texts.
- Always take your blog backup and save them to your computer.
- Update your backup every month.
- Don’t login into your blog with other computer like from public or net cafe computers.
- That’s all i am doing right now.
Honestly it take my 2 weeks to repair all things of my blog and still i am repairing. Don’t compromise your blog security like i did and accidentally install a nulled or fake plugin.
Try to choose a special day for this process like Sunday. If you need any of my help just comment below and I’ll try my best to help you to solve your problem.
I recommend you to check this guide to secure your WordPress Blog. (Best Security Guide Ever For Your WordPress Blog)
I hope this article help you to recover your blog with the help of database. Don’t forget to share this article with your friends and help them to recover their blog.