Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WP Config Generator 2019

WP-Config.php Generator

<?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 https://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' );
define( 'DB_COLLATE',  'utf8_general_ci' );


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


/* Authentication Unique Keys and Salts. */
define('AUTH_KEY',         '+,C5g{fNx|-!g<00izsY.F?TY@IXgtBo[5{bPG3*Qb8)1z,qep 7%:tfWYin%]A}');
define('SECURE_AUTH_KEY',  'OR6,2<i2f-9t-J{/A2782ARhOyX+%0 +<T::m2Bt4L4kJY|Q$lSa!-$t};@Bwxfl~+W/A]rX?]');
define('NONCE_KEY',        ';RhhZ5FTz)*[xeX{:f)%cYj9)C|/1-d!C]-VW%f=x-8SUyT|}iS]4FfA6?!`xP|G');
define('AUTH_SALT',        'CQ4A&AL`q#o)z4gdQ&n+Bf%1a/e_F-ih.$.^ug /d][tdCl_OZ)|y<,lo,|C563|F+H5(<T/%-=)5 b|Fvc+sbWzx5w*t');
define('LOGGED_IN_SALT',   'VL3Z##l{T9-=q;)|3 8L#*(%5bhU],:n48Bgk_]n-@Fk$gPY+cvij#ay$-DJEg0g');
define('NONCE_SALT',       'R7%LLAfP])FWrb=9K8C[:nl,|-fHi@%X7A,j-xpLM1#1B^-~Ve8~Gqj~!{A,gmpz');


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


/* Custom WordPress URL. */
define( 'WP_SITEURL',     'https://example.com/' );
define( 'WP_HOME',        'https://example.com/' );
define( 'WP_CONTENT_URL', 'https://example.com/wp-content' );
define( 'UPLOADS',        'https://example.com/wp-content/uploads' );
define( 'WP_PLUGIN_URL',  'https://example.com/wp-content/plugins' );
define( 'COOKIE_DOMAIN',  'subdomain.example.com' );


/* AutoSave Interval. */
define( 'AUTOSAVE_INTERVAL', '30' );
/* Disable Post Revisions. */
define( 'WP_POST_REVISIONS', false );
/* Media Trash. */
define( 'MEDIA_TRASH', false );


/* Multisite. */
define( 'WP_ALLOW_MULTISITE', false );


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


/* PHP Memory */
define( 'WP_MEMORY_LIMIT', '64M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );


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


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


/* CRON */
define( 'DISABLE_WP_CRON',      'true' );
define( 'ALTERNATE_WP_CRON',    'true' );
define( 'WP_CRON_LOCK_TIMEOUT', 30 );


/* Updates */
define( 'WP_AUTO_UPDATE_CORE', false );
define( 'DISALLOW_FILE_MODS', true );
define( 'DISALLOW_FILE_EDIT', 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');