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?
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?
Comments are closed.
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.
Open your codebase/setup through FTP or so.
Reference: http://codex.wordpress.org/Editing_wp-config.php
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.
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).
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 yourwp_config.php
it should look like this: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.
Some fixes that always work:
CHECK wp-config
Check Prefix in wp-config
Sometimes the prefix is wrong like wp_ or any other. Check your database and correct it.
Check .htaccess file
Try putting default wordpress htaccess file
Check wp-config file name
Sometimes people edit wp-config-sample file instead. You have to edit wp-config file.
@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
In the case of a migration; ensure your table prefix on the old installation is same on the new installation.
Delete the wp-config-sample.php file.
Check if wp-config.php exists
Check the database connection details and confirmed they’re pointed to the right database. (username & password)
Try repairing the database tables using PHPmyadmin. At times database tables get corrupted and cause errors.
These are always the fix in most cases.
This happens due to the following issues:
Reference: https://www.scratchcode.io/wordpress-keeps-redirecting-to-wp-admin-install-php/