ERROR: The file 'wp-config.php' already exists

mgrantnz picture mgrantnz · Sep 21, 2015 · Viewed 44.2k times · Source

I clicked on the 'Update WordPress' link in the admin dashboard of my WordPress site, and I am getting this error:

"The file 'wp-config.php' already exists. If you need to reset any of the 
configuration items in this file, please delete it first. You may try installing now."

When I try to click the "installing now" link, it seems that WordPress is installing fresh. I want to keep all of the content of my WordPress installation.

I have tried to change the name of the wp-config.php file but that didn't do anything.

Answer

Pierre R picture Pierre R · Oct 21, 2016

Is just a browser cache.

On first URL load, you are redirected from domain.ext to domain.ext/wp-admin/setup-config.php

If you are on Chrome, just open the developers console, go to "Network" tab. Reload the page and right click anywhere in the console, and hit "Clear browser cache".

Now refresh again and you will see your website