WordPress Config Generator

Pretty cool tool to tweak your WP Config upon a new install: Generate wp-config.php File


Looks pretty neat! I usually use https://wp-cli.org/ to automate WP on servers.

1 Like

Well, I’m using shared hosting mostly and not all support wp-cli (I believe), so I am happy with the config gen :slight_smile:

Just configured my go-to config file template for future wp installs :wink:

Anything you’d recommend I changed?

 * 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' );

/* SSL */
define( 'FORCE_SSL_LOGIN', true );
define( 'FORCE_SSL_ADMIN', true );

/* PHP Memory */
define( 'WP_MEMORY_LIMIT', '512' );
define( 'WP_MAX_MEMORY_LIMIT', '512' );

/* WP_MEMORY_LIMIT will permanently override memory_limit if its value is greater than the current value in php.ini. Don't increase the memory available more than you need to or you'll run the risk of running out of RAM if you have too many simultaneous hits on pages. Default: 30M ; Multisite Default: 64M

WP_MAX_MEMORY_LIMIT will temporarily override memory_limit with whatever value you defined. And it only happens in some events such as unzip file while installing/upgrading themes, plugins..., editing/previewing images Default: 256M */ 

/* WordPress Cache */
define( 'WP_CACHE', false );

/* Compression */
define( 'COMPRESS_CSS',        true );
define( 'COMPRESS_SCRIPTS',    true );
define( 'ENFORCE_GZIP',        true );

/* Updates */
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
define( 'DISALLOW_FILE_EDIT', false );

/* 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');

Your choice of CMS.


1 Like

@Ympker found another WP Config generator which seems to have a few more options than the wp-config.php generator one. Also, in your config template the define( ‘FORCE_SSL_LOGIN’, true ); apparently was deprecated in v4 WP being replaced with FORCE_SSL_ADMIN.


Thanks for sharing mate, will keep that in mind!

1 Like

Hm, I never considered any such option, the config file is pretty straight forward, nicely commented? :thinking:

1 Like

Not really by wpconfig but wp has a very good KB and community reach so you can surely find the respective options. It also shows default.