WP Config Generator

Home » WordPress Generators » WP Config Generator
The hostname of your MySQL database.
The name of your MySQL database.
MySQL username that has access to your database.
Password for your MySQL database.
The charset of your MySQL database.
The collate of your MySQL database.
The prefix for your MySQL database tables.
Default: wp_user.
Default: wp_usermeta.
The URL of your site.
Custom ‘wp-content’ URL.
Custom ‘wp-content/plugins’ URL.
Custom URL for WordPress core files.
Custom ‘wp-content/uploads’ URL.
The domain that the cookie is available to.
The interval in seconds at which autosave will occur. Default is 60 seconds.
Disable Revisions
Disable post revisions.
The max number of revisions to keep. No limit by default.
Disable Media Trash
Disable trash for Media type content.
Number of days before trash is emptied. 30 days by default.
Force SSL Login
Force SSL for the login page. False by default.
Force SSL For Admin
Force SSL for the admin. False by default.
Disable Cache
Disable WordPress cache.
Compress CSS
Compress CSS files.
Compress Scripts
Compress JavaScript files.
Concatenate Scripts
Concatenate JavaScript and CSS files.
Force Gzip
Force the use of GZIP compression.
The hostname of your FTP server.
The username of your FTP server.
The password of your FTP server.
Use SSL for your FTP connection.
Disable Cron
Disable WordPress Cron.
Alternate Cron
Use an alternate WordPrses cron..
The maximum amount of execution time allowed for cron jobs (in seconds).
Default: 30M. Default for Multisite: 64M.
Default: 256M
Enable Debug
Displays errors and warnings. Default is False.
Debug Log
Log errors and warnings to /wp-content/debug.log.
Script Debug
Display JavaScript and CSS errors. Default is False.
Save Queries
Save all queries to $wpdb->queries for later analysis.
Disable Debug Display
Disable display of errors and warnings.
Enable Multisite
Enable Multisite. False by default.
Disable File Mods
Disable ability to update or install plugins from admin dashboard.
Disable Theme & Plugin Editor
Disable the code editor in admin dashboard.
Auto Core Updates setting.
 * The base configuration for WordPress
 * The wp-config.php creation script uses this file during the installation.
 * You don't have to use the web site, you can copy this file to "wp-config.php"
 * and fill in the values.
 * This file contains the following configurations:
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * @link https://wordpress.org/support/article/editing-wp-config-php/
 * @package WordPress

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
/** The Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );

/* Prefix For All Database Tables */
* WordPress database table prefix.

* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
$table_prefix = 'wp_'

* Authentication unique keys and salts.
* Change these to different unique phrases! You can generate these using
* the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
* You can change these at any point in time to invalidate all existing cookies.
* This will force all users to have to log in again.
* @since 2.6.0
define('AUTH_KEY',         'pm/tG.+>4Uz0UK#BU6XQP0hJ]Sg[NTzzu*Q->kClV+le`F`[gxajpW}wD0sONfwd');
define('SECURE_AUTH_KEY',  '|UhlTILq.Y|Xy~m=^-Du}4GN=VS.0w5{]UB~!N=R!ZFL.{lKctq!tH1Ga.rz?+)4');
define('LOGGED_IN_KEY',    'pP &Li#]djd <Y34V{Y&~uus*<JTd#rVcB8:^L#%PjP[B(A)-8W<9TF</-)|V&dZ');
define('NONCE_KEY',        '^,/m &L-+9VXW^@N_eqH%/5s EmhM0FV`1;q9|d{Y_%jM63tF#m<6ogXw8Dtg0W%');
define('AUTH_SALT',        'yl%|+a|I;8kR*I-$ J(GgU*>#t^3S&(m@|8mhM}x-EhU~rvLJEx~>OE&[3QYiA`,');
define('SECURE_AUTH_SALT', ':A)uD$*0E:~w=vLh*u5sI@&r~>j+]LS5D%o7&Ycs<~P-]8j^$I%V|rD;t`V+}Q_x');
define('LOGGED_IN_SALT',   'P4lRbr/-d]#Qq.W4~Qzv)MqP6LB-pxFm4mebYSwNS-:&_}c)V|:icMxIRu@^HTie');
define('NONCE_SALT',       'jv(G&O!A>ft<SAq@[>SGJZ/|A=6Ct!{u#<nc;HF->dtr++UN&*vd|O_gKz1c$=F1');

/* Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
  define('ABSPATH', __DIR__ . '/');
/* Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');


Learn more about the wp-config.php file

The wp-config.php file is an essential part of any WordPress installation. It is typically located in the root folder of your WordPress site and contains important information for connecting to your WordPress database, as well as various other settings for your site.

The wp-config.php file is used to define various database connection settings, such as the name of the database, the database username and password, and the database host. These settings are crucial for allowing your WordPress site to connect to the database and retrieve the necessary data to display your site’s content. Without the proper database connection settings, your WordPress site will not be able to function properly and you will get the Error establishing a database connection error message.

In addition to defining database connection settings, the wp-config.php file is also used to customize various aspects of your WordPress installation. For example, you can use this file to define the database table prefix, which is the string of characters that is added to the beginning of each database table name. This allows you to easily identify which tables belong to your WordPress installation.

One of the most important settings in the wp-config.php file are the authentication keys and salts. These are long, random strings of characters that are used to secure your WordPress site and protect it from unauthorized access. By default, WordPress includes a set of default authentication keys and salts, but it is strongly recommended that you generate your own unique set of keys and salts to add an extra layer of security to your site. The above generator take care of this job.

In conclusion, the wp-config.php file is a crucial part of any WordPress installation. It contains important information for connecting to your WordPress database, as well as various other settings for customizing your site.

It is important to keep this file secure, as it contains sensitive information that could be used by hackers to gain access to your site. By understanding the role of the wp-config.php file and how to use it properly, you can ensure that your WordPress site is properly configured and secure.