WordPress Redirecting to wp-admin/install.php

Am working on my WordPress site. I changed font color of my site then I have refreshed my page but it redirects to wp-admin/install.php.

What can I do now? How can I get access to my site?

Related posts

9 comments

  1. I’ve had this problem. I contacted my hosting provider and they told me it happened because I exceeded maximum queries per hour limit and therefore access to the database was temporarily locked, so WP couldn’t read from it.

  2. After restarting my machine my wordpress started redirecting to install. The database reported that the tables for wordpress ‘did not exist’ when viewed through phpMyAdmin. Shutting down the webserver, then restarting the mySQL server fixed the issue on my system.

    Please try shutting down your webserver (gracefully), then restart mySQL.

  3. Try looking at wp_options table in phpMyAdmin and hitting “Optimize table”. Worked on one of my sites that had this exact issue (though not sure what caused it initially).

  4. The issue is within wp-config.php file. You have to double check the $table_prefix field and make sure that it corresponds to table prefixes in your actual database.

    Example: If in the database your tables look like wp_website_year_comments in your wp_config.php it should look like this:

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each
    * a unique prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = 'wp_website_year_';
    
  5. I also experienced this problem and finally realized that the Jetpack plugin installed along with WordPress is the root cause. It prevents bruteforce attack and enhance security so after about 10 REST calls to the server, it automatically blocks all requests by redirecting to install.php. Deactivating Jetpack solved my problem.

  6. Some fixes that always work:

    1. CHECK wp-config

      • DB Logins must be updated
    2. Check Prefix in wp-config
      Sometimes the prefix is wrong like wp_ or any other. Check your database and correct it.

    3. Check .htaccess file
      Try putting default wordpress htaccess file

    4. Check wp-config file name
      Sometimes people edit wp-config-sample file instead. You have to edit wp-config file.

  7. @Izzy Hegazy solution worked in my case. I totally forgot I had changed the table prefix on the old installation. Meanwhile, on the new installation, I used the default wp_ table prefix.

    SOLUTION

    1. In the case of a migration; ensure your table prefix on the old installation is same on the new installation.

    2. Delete the wp-config-sample.php file.

    3. Check if wp-config.php exists

    4. Check the database connection details and confirmed they’re pointed to the right database. (username & password)

    5. Try repairing the database tables using PHPmyadmin. At times database tables get corrupted and cause errors.

    These are always the fix in most cases.

Comments are closed.