The WordPress installer offers a fresh install
wp-admin/install.php offers to set up WordPress, so a stranger could take over the site by installing it themselves.
Why it matters #
On a working site the installer refuses to run and says WordPress is already installed. If it offers a fresh install, WordPress cannot see its database tables the way it should, and a stranger could run the installer and set the site up for themselves.
This often happens after a failed move, a wrong table prefix in wp-config.php or a database that was emptied or cannot be reached.
How to fix it #
Treat it as urgent. Ask your host or developer to check wp-config.php and the database connection today. Until it is fixed, block /wp-admin/install.php at the server or firewall.
When the site is fixed, check that the installer answers that WordPress is already installed, then run the WordPress Security Checker again.
What it looks like, and fixed #
https://www.example.com/wp-admin/install.php
-> shows the set-up form: Site Title, Username, Password, Your Email
A live site should never offer this form. It means WordPress cannot see its database tables.
https://www.example.com/wp-admin/install.php
-> "Already Installed": You appear to have already installed WordPress.
What a healthy site answers. Blocking the address at the server (403) is also fine.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
This is urgent. Help me secure [your website address], a WordPress site on [your host, e.g. cPanel]. A checker says /wp-admin/install.php offers a fresh install, which means WordPress cannot see its database tables and a stranger could set the site up for themselves. First, help me block /wp-admin/install.php at the server, firewall or CDN straight away. Then diagnose: ask me for DB_NAME, DB_HOST and the $table_prefix line from wp-config.php (never the password) and the list of table names in the database, and compare them. Explain plainly the likely cause: a wrong prefix, a wrong database, a failed move or an emptied database. Then give me the exact fix. Rules: back up the files and database before any change, never run the installer, never drop, rename or empty tables, and keep page addresses the same. Ask me to check Users and the site title for signs someone ran it; if so, treat it as hacked. Finally, tell me to re-check with the URSY.com WordPress Security Checker at ursy.com/wordpress-security-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress #
Check DB_NAME, DB_HOST and $table_prefix in wp-config.php against the tables in your database (for example in phpMyAdmin). Do not run the installer yourself.
Your server or hosting #
Block the installer until the site is fixed. On nginx: location = /wp-admin/install.php { deny all; }. On Apache: <Files "install.php"> Require all denied </Files> inside the wp-admin folder's .htaccess.
Your CDN (for example Cloudflare) #
On Cloudflare, a WAF custom rule can block requests to /wp-admin/install.php straight away.
Check it is fixed #
Open /wp-admin/install.php: it should say WordPress is already installed, or be blocked. Run the WordPress Security Checker again and it should no longer report the installer.
Official source #
Questions #
Has my site already been taken over? #
Look for administrator accounts you do not know, a changed site title or a brand-new empty site. If you find any, restore from a backup and change every password.
Can I just delete install.php? #
It helps for now, but WordPress updates put it back. Block it at the server, and fix the database connection, which is the real cause.
More problems in Security and HTTPS
- A form sends its data over plain http High priority
- Hidden instructions aimed at AI assistants High priority
- http:// does not redirect to https:// High priority
- Mixed content: files loaded over plain http High priority
- The certificate does not cover this address High priority
- The certificate has expired or is not valid yet High priority
- The certificate is not trusted by browsers High priority
- The https page redirects back to http High priority