Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 11th Jun 2013, 05:18 PM   #1
Banned
War Room Member
 
Join Date: 2010
Location: Vancouver, BC
Posts: 2,089
Thanks: 659
Thanked 323 Times in 188 Posts
Blog Entries: 66
Default
Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

Hey Warriors,

So we had one of our shared hosting compromised. The hacker accessed several wordpress sites and inserted malware code. (They also added a bunch of casino links on each page)

I quickly contacted our host to get them to help scan and remove those codes. After doing so we went and remove each of those links and delete irrelevant pages.

Thinking that was the end of the matter we move forward but I notice the site kept getting flagged as adult content on certain internet security.

Finally it seems the person installed WPPM plugin which created a bunch of "male supplements" news site for unresolved pages. Got the host to remove this immediately.

-----
JUST TO BE SAFE, I would like to reinstall a fresh copy of wordpress although we don't want to lose the content or plugin info we already have

Is there anyway to reinstall WP backing up selective data like post, pages, and certain plugins - not all
-----

THANKS
humbledmarket is offline  
Unread 11th Jun 2013, 07:39 PM   #2
WP Dev & Design
War Room Member
 
Join Date: 2011
Location: Earth
Posts: 787
Thanks: 92
Thanked 271 Times in 226 Posts
Blog Entries: 4
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

It sounds like they did more then just hack the WordPress core files.
They entered info into the database so just replacing the WordPress core files will not get rid of anything in the database that may be an issue.

You really will need to go through your database and make sure there are no problems in there before restoring it.

You can certainly change the core files, but it won't matter if the database is still a problem.
Yes you can selectively restore database table info BUT not with a couple button clicks.
You will need to know what your doing in phpmyadmin or however you want to edit your database. If you don't, it may be worth paying an expert a few bucks to do it.

It doesn't sound like you do backups, so I would highly recommend you do daily backups (or weekly) so recovering from a hack is very simple.
David V is offline  
Unread 11th Jun 2013, 09:45 PM   #3
VIP Warrior
War Room Member
 
Join Date: 2003
Location: , , USA.
Posts: 2,356
Thanks: 7,692
Thanked 2,892 Times in 2,434 Posts
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

David is certainly right. As I recall, the plugins are in the same directory hierarchy, so you will likely have to reinstall them when you reinstall the code. In BOTH cases, the configurations may still revert to those in the database. But MOST of the data, and likely settings, ARE in the database, and that is ELSEWHERE. There is no simple way to clean THAT up unless you know what you are doing, or have enough experience to figure it out. ALSO, depending on the data, and the structure of the tables, it can take a while. Don't think he or she will have it done in a few minutes.

Steve
seasoned is offline  
Unread 11th Jun 2013, 11:40 PM   #4
Banned
War Room Member
 
Join Date: 2010
Location: Vancouver, BC
Posts: 2,089
Thanks: 659
Thanked 323 Times in 188 Posts
Blog Entries: 66
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

Thanks for all your input both of you! Really appreciate your help and advice.

Will try to find some freelance developer to take a look and fix things up (if need be - as mentioned it looks like everything is running smoothly after our host took a look at things)
humbledmarket is offline  
Unread 11th Jun 2013, 11:52 PM   #5
Active Warrior
 
Join Date: 2011
Posts: 35
Thanks: 1
Thanked 4 Times in 4 Posts
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

Maybe to try to contact your hosting company and ask them for a backup copy? They probably have daily backups set, so ask them to restore your website state as it was before.

1stranked is offline  
Unread 12th Jun 2013, 12:27 AM   #6
Active Warrior
 
Join Date: 2011
Posts: 35
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

Originally Posted by humbledmarket View Post

Hey Warriors,

So we had one of our shared hosting compromised. The hacker accessed several wordpress sites and inserted malware code. (They also added a bunch of casino links on each page)

I quickly contacted our host to get them to help scan and remove those codes. After doing so we went and remove each of those links and delete irrelevant pages.

Thinking that was the end of the matter we move forward but I notice the site kept getting flagged as adult content on certain internet security.

Finally it seems the person installed WPPM plugin which created a bunch of "male supplements" news site for unresolved pages. Got the host to remove this immediately.

-----
JUST TO BE SAFE, I would like to reinstall a fresh copy of wordpress although we don't want to lose the content or plugin info we already have

Is there anyway to reinstall WP backing up selective data like post, pages, and certain plugins - not all
-----

THANKS
Hey,

You can do it by just taking a backup from the settings menu, then after you will require FTP access to delete existing WP installation & then you can install fresh wordpress files over there.

Thanks & Regards
Abhishek
abhishekcis is offline  
Unread 12th Jun 2013, 02:31 AM   #7
HyperActive Warrior
War Room Member
 
dassad's Avatar
 
Join Date: 2009
Location: Romania
Posts: 178
Thanks: 14
Thanked 63 Times in 25 Posts
Blog Entries: 1
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

After a hack attack i strongly recommend to change your MySQL Username and MySQL Password (at least the password)

Go to your Wordpress directory and open "wp-config.php"

Check your MySQL Username in this line: define('DB_USER', 'YOURUSERNAME');

Look for this line: define('DB_PASSWORD', 'YOURPASSWORD'); and copy your password.

Go to your cPanel, open MySQL Databases, look for the user that you saw in teh first step and click change password.
Enter your old password that you have just copied and the new password two times and save it

Go back to your config file and change the password to the NEW that you have just saved and save your edits.

Bene

dassad is offline  
Unread 12th Jun 2013, 03:58 AM   #8
devIMS
 
Join Date: 2012
Location: Chennai
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

In admin panel, in tools menu export all the content and take a backup from the server. Then you can reinstall wordpress..
williamrichard is offline  
Unread 12th Jun 2013, 06:05 AM   #9
ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ
War Room Member
 
RobinInTexas's Avatar
 
Join Date: 2008
Location: Texas
Posts: 2,138
Thanks: 243
Thanked 453 Times in 382 Posts
Blog Entries: 3
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

Install Wordfence plugin, it will scan your files and data for unusual/bad/changed things daily and provide protection from and email notice of login attempts and a few more good things.

No guarantees that it will find all the bad url's you still have to look manually, but it might point out some problem links.

WordPress › Wordfence Security « WordPress Plugins

Robin


...Even if you're on the right track, you'll get run over if you just set there.
RobinInTexas is offline  
Unread 13th Jun 2013, 07:08 PM   #10
Warrior Member
 
Join Date: 2012
Posts: 29
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: Can I reinstall WP with saved content
Share on: 
fb share twitter share gplus share more share

According to me you should take backup of your database first and then reinstall the wp and you can then restore the database and onverwrite it
webwizdevelop is offline  
Closed Thread


Bookmarks

Tags
content, reinstall, saved


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:13 PM.