Support » Fixing WordPress » install.php re-appearing on site

  • JPecsenyicki

    (@jpecsenyicki)


    I have a few WordPress sites, and after installation I have always deleted the /WP-ADMIN/INSTALL.PHP as a security measure.

    A year or two later, and INSTALL.PHP is back in the /WP-ADMIN/ folder.

    Is this normal? Is it added during WordPress version updates? Is there a way to prevent this file from being reloaded to the site?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Yes, it’s installed during an update. It does no harm to have it there.

    JPecsenyicki

    (@jpecsenyicki)

    So it’s not a security risk?

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    No. If you hit it it says “WordPress is already installed”.

    JPecsenyicki

    (@jpecsenyicki)

    I had a very strange situation today where users were briefly redirected to:

    http://www.mysite.com/wp-admin/install.php

    And it DID give the Language Options menu. So it looked like it was trying to reinstall WordPress from scratch. Had me pretty scared that a user might create a new username / password & lock me out.

    (I later learned that this happened while the database briefly went down on the server.)

    check wp_config.php maybe the table prefix is not right

    JPecsenyicki

    (@jpecsenyicki)

    I don’t know. Once the database came back up, the redirect to the install page disappeared and the site works perfectly now.

    At any rate, I’m now using an HTACCESS rule in the root directory to deny access to the install file:

    ##########################################################
    ### PREVENT ANYONE FROM RUNNING INSTALL.PHP IN /WP-ADMIN/
    ##########################################################
    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^/?wp-admin/install\.php$ - [F,L]
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘install.php re-appearing on site’ is closed to new replies.