WordPress: There doesn't seem to be a wp-config.php file. I need this before we can get started
WordPress can’t find wp-config.php, so it starts the installer — on an existing site that means the file was deleted, renamed or the document root is wrong.
There doesn't seem to be a wp-config.php fileI need this before we can get startedwp-config.php not found Meaning
wp-config.php can live in the WordPress folder or one level up. Deployments that don’t include it, wrong document roots, or permission problems (unreadable) trigger the setup screen.
Common causes
- wp-config.php missing from deployment
- Document root pointing to the wrong folder
- File unreadable by PHP
- Fresh install not yet configured
⚡ Quick fix
- Restore wp-config.php (not wp-config-sample.php)
- Fix the vhost document root
- Check file ownership/permissions
Detailed fix by platform
Shell
- php
ls -l /var/www/html/wp-config.php /var/www/wp-config.php wp config create --dbname=wp --dbuser=wp --dbpass=secret --path=/var/www/html
How to diagnose
- File — Present and readable?
- Root — Server document root
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in WordPress
- Critical error WordPress: There Has Been a Critical Error on This Website
- 403 Forbidden wp-admin WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php
- There was an error trying to send your message Contact Form 7: There was an error trying to send your message. Please try again later.
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026