wp-config.php generator
WordPress' configuration file, filled in from your details.
Genuinely free. No sign-up, no email, no limits, no cookies. We don't store the URL you analyse.
Change it from wp_ for a small security edge.
Code
<?php
/** Generated config: paste the secret keys from the salts generator. */
define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'wp_user' );
define( 'DB_PASSWORD', '' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8mb4' );
define( 'DB_COLLATE', '' );
/**#@+ Paste the eight lines from the salts generator here. */
define( 'AUTH_KEY', 'put your unique phrase here' );
/**#@-*/
$table_prefix = 'wp_';
define( 'WP_DEBUG', false );
define( 'DISALLOW_FILE_EDIT', true );
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
require_once ABSPATH . 'wp-settings.php';What it's for
wp-config.php is the file that connects WordPress to the database and controls its behaviour. Filling it in by hand is easy to get wrong: here you get a clean, consistent base with the security options already set.
Frequently asked questions
›Do I need to add the secret keys too?
Yes: use the salts generator and paste the eight lines in place of the placeholder. They're kept separate on purpose, so you can regenerate them without redoing the whole file.