wp-config.php Generator

Overview

Use this tool to create customs code for WordPress configuration settings on wp-config.php file.

Usage

  • Fill in the user-friendly form.
  • Click the “Update Code” button.
  • Copy the code to your wp-config.php file.
  • Or save it as a snippet and share with the community.

Examples

If you are still learning how to use this tool, check out the following examples:

MySQL database name.
MySQL database Host.
MySQL database user name.
MySQL database password.
MySQL database charset.
MySQL database collate type.
e.g. 'utf8_general_ci'
MySQL database table prefix.
Change default 'wp_user' table.
Change default 'wp_usermeta' table.
Unique security keys and salts. Insert manually or auto generated.
Force SSL Admin.
Your Wordpress blog/site URI.
http://example.com/blog
WordPress core files URI.
http://example.com/wordpress
Custom 'wp-content' URI.
http://example.com/wp-content
Custom 'wp-content/uploads' URI.
http://example.com/wp-content/uploads
Custom 'wp-content/plugins' URI.
http://example.com/wp-content/plugins
Auto-save interval (seconds).
Default: 60
Enable/disable revisions.
Set maximum number of revisions.
Default: No limit
Enable trash for media.
Number of days before trash emptied.
Default: 30.
Enable Multisite / Network Ability.
Display errors and warnings.
Save database queries in an array ($wpdb->queries) for analysis.
Log errors and warnings.
Display errors and warnings.
JavaScript or CSS errors.
PHP memory limit.
Default: 30M ; Multisite Default: 64M
Maximum memory limit.
Default: 256M
Include 'wp-content/advanced-cache.php' script, when executing 'wp-settings.php'.
Compresses CSS.
Compresses JavaScript.
Concatenates JavaScript and CSS files.
Forces gzip for compressoin of data sent to browsers.
FTP or SSH username.
FTP or SSH password.
FTP or SSH hostname.
Allow "Secure FTP" connection (not SSH SFTP).
Disable the WordPress cron entirely.
Set an alternate WordPress cron.
Set maximum cron process execution time (seconds).
Enable or disable update and installation from the admin.
Enable or disable auto core updates and language packs.
Enable or disable the Plugin/Theme Editor.
  Save Snippet
<?php
/**
 * Custom WordPress configurations on "wp-config.php" file.
 *
 * This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
 * For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page.
 * Created using {@link http://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com.
 *
 * @package WordPress
 * @generator GenerateWP.com
 */


/* MySQL settings */
define( 'DB_NAME',     'database_name_here' );
define( 'DB_USER',     'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST',     'localhost' );
define( 'DB_CHARSET',  'utf8mb4' );


/* MySQL database table prefix. */
$table_prefix = 'wp_';


/* Authentication Unique Keys and Salts. */
/* https://api.wordpress.org/secret-key/1.1/salt/ */
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' );


/* WordPress debug mode for developers. */
define( 'WP_DEBUG',         true );
define( 'WP_DEBUG_LOG',     true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG',     true );
define( 'SAVEQUERIES',      true );


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

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