WP Config Generator

Database Connection

MySQL database name
MySQL database user name
MySQL database charset
MySQL database Host
MySQL database password
MySQL database collate type

Database Tables

MySQL database table prefix
Change default 'wp_usermeta' table
Change default 'wp_user' table


Unique Authentication security keys and salts
Force SSL Login
Force SSL Admin


Wordpress blog/site URI
Custom 'wp-content/plugins' URI
Custom 'wp-content/uploads' URI
Custom 'wp-content' URI
WordPress core files URI
Set different domain for cookies


Auto-save interval (Default: 60 seconds)
Enable trash for media
Number of days before trash emptied
Enable/disable revisions
Set maximum number of revisions


Enable Multisite / Network Ability


Enable display errors and warnings
Display errors and warnings
JavaScript or CSS errors
Log errors and warnings
Save database queries in an array


PHP memory limit
Maximum memory limit


Include 'wp-content/advanced-cache.php' script
Concatenates JavaScript and CSS files
Forces gzip for compressoin
Compresses CSS
Compresses JavaScript


FTP or SSH username
FTP or SSH hostname
FTP or SSH password
Allow "Secure FTP" connection


Disable the WordPress cron entirely
Set maximum cron process execution time
Set an alternate WordPress cron


Enable or disable update and installation from the admin
Enable or disable the Plugin/Theme Editor
Enable or disable auto core updates and language packs

* The base configuration for WordPress
* @package WordPress
* @generator yourblogcoach.com

/* Database connection */
define( 'DB_NAME',      'your_database_name' );
define( 'DB_USER',      'your_database_user' );
define( 'DB_PASSWORD',  'localhost' );
define( 'DB_HOST',      'localhost' );
define( 'DB_CHARSET',   'utf8mb4' );
define( 'DB_COLLATE',   'utf8mb4_general_ci' );

/* Database Tables */
$table_prefix = 'wp_';

/* Authentication Keys and Salts */
define( 'AUTH_KEY',         'put your unique phrase here' );
define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
define( 'NONCE_KEY',        'put your unique phrase here' );
define( 'AUTH_SALT',        'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
define( 'NONCE_SALT',       'put your unique phrase here' );

/* Absolute path to the WordPress directory */
define( 'ABSPATH', dirname( __FILE__ ) . '/' );

/* Sets up WordPress vars and included files */
require_once( ABSPATH . 'wp-settings.php' );


What is wp-config.php file?

The wp-config.php file is one of the main file of wordpress core. And it's not come with default download package. When you install the wordpress then this wp-config.php file generate from the wp-config-sample.php file.

This file has information about authentication keys & salts and other settings constant. It also has details about the database name, host, username, password which allow wordpress to intereact with database to store the values and get the values.

What is WP Config Generator?

WP Config Generator is a free online tool to generate the wp-config.php file code for your wordpress website.

You can use this tool if you want to make some changes in your wp-config.php file but you don't know that line of code, so simply select that option and then copy the code from result area and use it in your site.

Note: This site does not store any type of data, password or other sensitive data, so that you can safely fill in your information.

How to use WP Config Generator?

To use this tool, you simply need to select corresponding tab and fill the required fields and then click on the "Generate" button.

Follow the below steps:

  1. Select the tab one by one
  2. Fill the required fields. Some of fields have default values but you can change them as per your need.
  3. Click on the "Generate" button
  4. Generated code will shown in the result area and you can copy the code and use it.
  5. To generate new file code click on the "Refresh" button,