Free Tool
WordPress wp-config.php Generator
Generate a complete WordPress wp-config.php file with database settings, debug mode, memory limits, security hardening, and performance optimizations. Copy-paste ready.
Database Settings
Configuration Options
Debug ModeEnable WordPress debugging
Memory LimitIncrease PHP memory for WordPress
Autosave & RevisionsControl post revisions and autosave interval
Trash SettingsAuto-delete trash after X days
Auto UpdatesControl WordPress auto-update behavior
Force SSL AdminForce HTTPS for wp-admin
Disallow File EditDisable theme/plugin editor in wp-admin
Disable WP-CronUse real server cron instead of WP-Cron
MultisiteEnable WordPress Multisite
What is wp-config.php?
The wp-config.php file is the most important configuration file in WordPress. It contains your database connection details and various settings that control how WordPress behaves — from debug mode to memory limits to security hardening.
Editing this file incorrectly can crash your entire site. This generator creates a safe, properly formatted wp-config.php with the options you select.
Essential wp-config.php Settings
- Debug Mode: Enable WP_DEBUG to find errors during development (disable in production)
- Memory Limit: Increase from default 40MB to 256MB+ for complex sites
- Disable File Editor: Prevent theme/plugin editing from wp-admin (major security improvement)
- Force SSL Admin: Ensure wp-admin always uses HTTPS
- Post Revisions: Limit from unlimited (default) to 3-5 to reduce database bloat
- WP-Cron: Disable WP-Cron for better reliability with server-side cron