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 am not sure why it took so long to rear its ugly head because I have been in the admin area after said incident.


Comments


Nico Prinsloo  2019-10-27 09:35:57

This solved my problem after weeks of searching for a solution.
Thanks!


Philosophia  2018-01-05 01:56:18

i've been searching around internet to solve my web's error, this article solved my problem, my website back to normal. thank you so much!


Cesar Consultant  2018-04-12 21:19:39
Title: Best Solution

Tks guy! I fix my wp with your article! Superb!

Add a comment