WordPress.org

Ready to get started?Download WordPress

Forums

Re-Installing WordPress after being hacked (17 posts)

  1. slinky005
    Member
    Posted 3 years ago #

    I did this entire process about 8 months ago and it's like I never did it.
    So assume I'm a complete newbie.
    First off do I have to re-create all the mySQL database settings? Since this was done already the first time can I just leave it the way it is?
    If not then all my questions below may be redundant.....

    I'm told to edit the wp-config.php file but from what I understand wordpress can do this for me. That's how I did it last time so I would prefer this method.

    if you placed the WordPress files in the root directory, you should visit: http://example.com/wp-admin/install.php
    If domain name is johnsmith.com then should I enter:
    http://johnsmith.com/wp-admin/install.php to access the setup page?

  2. slinky005
    Member
    Posted 3 years ago #

    I created a new mySQL database just to be safe.
    All questions above are still unresolved.

  3. slinky005
    Member
    Posted 3 years ago #

    After editing the wp-config file I did the following:
    http://johnsmith.com/wp-admin/install.php to access the setup page.
    (johnsmith.com is not the actual domain name).
    I received the follwing:
    The webpage at http://johnsmith.com/wp-admin/install.php has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
    I deleted cookies, no change.
    How do I know if I set up the SQL database properly?
    Is it normal that the size is at 0mb?

  4. s_ha_dum
    Member
    Posted 3 years ago #

    I created a new mySQL database just to be safe.
    All questions above are still unresolved.

    But you seem to have worked out the answers to most of them. :)

    What is the actual domain name?

  5. slinky005
    Member
    Posted 3 years ago #

    teentourtheatre.com

  6. s_ha_dum
    Member
    Posted 3 years ago #

    I get this:

    Fatal error: Cannot redeclare iis7_supports_permalinks() in /home/teentour/public_html/wp-admin/includes/misc.php on line 384

    I've never dealt with that, but I did find this thread.

  7. govpatel
    Member
    Posted 3 years ago #

    replace wp-admin folder and see it resolves your problem.

  8. slinky005
    Member
    Posted 3 years ago #

    Govpatel,

    Thank you very much that solved the problem.
    Once I am set up can I replace the entire contents of that folder to the wp-admin folder that I have backed up before my site was hacked?

  9. govpatel
    Member
    Posted 3 years ago #

    You are welcome
    You can use the one you have working now no need to go back to the one you backed up.

  10. slinky005
    Member
    Posted 3 years ago #

    As someone who has been hacked, what is the minimum I should do to keep my site safe?

  11. s_ha_dum
    Member
    Posted 3 years ago #

  12. slinky005
    Member
    Posted 3 years ago #

    Apljdi, thanks but as a newbie it would be great to have specific examples of what to do. The link has alot of info but covers the topic in general.

  13. s_ha_dum
    Member
    Posted 3 years ago #

    Seriously, start at the top of that file, read the first point, understand it and implement it. Then move on. Ask about particular point that you don't understand in the forums. Server security is not simple-- consider that very big companies with well paid and well trained network security people do get hacked. So start at the top and expect to have to learn things, but WordPress has probably the most helpful user-based support I've ever seen.

  14. slinky005
    Member
    Posted 3 years ago #

    Ok point well taken. I guess the most important thing for me is to have a backup of the site. When I first created the site for some reason I backed the wp-admin file. Is this a backup of only code that was edited?
    Once the site is re-created I want to do a proper backup, what would be your suggestion?
    BTW thx for all the help , it is much appreciated.

  15. s_ha_dum
    Member
    Posted 3 years ago #

    I guess the most important thing for me is to have a backup of the site.

    Yep. Keep a recent backup of the database and the php/css files.

    You shouldn't really be editing anything in the wp-admin folder. Most everything you edit will be in wp-content. That is most critical. For that, I'd use FileZilla. Your content-- posts, pages, categories, comments, all that stuff-- is in the database. For that use PhpMyAdmin if you have it available. It has to run on your server but it is pretty common. And never, ever edit backups. Once you do they are no longer backups. :) Edit copies of backups.

  16. slinky005
    Member
    Posted 3 years ago #

    Thx. So for any php files I edited, will they be in wp-content folder?

    It's in my theme folder - never mind.

  17. obscure
    Member
    Posted 3 years ago #

    You need to back up wp-content as that contains any changes you made to Themes (as you mentioned above). You should also make sure you back up the directory containing any images you have uploaded.

    lastly you need a frequent back-up of your database from the DB server. I use a plug-in which automatically creates and emails a DB back-up to me every week.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.