Smartlab Software logo

WordPress redirected to install.php

I was setting up WordPress so the admin area was secured by https:. I tried to login but would get a redirect to wp-admin/install.php. The often recommended:

1. Login to phpMyAdmin.
2. Select the database and click on ‘Structure’ tab.
3. Right under the list of table there is a “Check All” link. Click on it to select all tables.
4. From a “With selected:” drop-down menu right next to it, choose “Check table”.

To Repair:

1. Login to phpMyAdmin
2. Choose the affected database. If you only have one database, it should choose it by default so you don’t need to do anything.
3. In the main panel, you should see a list of your database tables. Check the boxes by the tables that need repair.
4. At the bottom of the window just below the list of tables, there is a drop down menu. Choose “Repair Table”

was tried but to no avail.

I checked the wp-config file and found out the table prefix did not match the database’s table prefix. I changed it and everything worked.

What happened was I recently ran a plug-in’s option to rename the table prefix from wp_ to a random one. I believe that wp-config was not changed. I’m not sure why it took so long to rear its ugly head because I have been in the admin area after said incident.

Comments


Add a comment

All fields are required. Email will not be published or sold. Please read our privacy statement.