Last active
April 10, 2018 18:56
-
-
Save charrismatic/2a73721c42454165c9b0a4f85c1942bf to your computer and use it in GitHub Desktop.
Advanced Wordpress WP-Config.php Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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', 'DB_NAME' ); | |
define( 'DB_USER', 'DB_USER' ); | |
define( 'DB_PASSWORD', 'DB_PASS' ); | |
define( 'DB_HOST', 'localhost' ); | |
define( 'DB_CHARSET', 'utf8mb4' ); | |
define( 'DB_COLLATE', 'utf8_general_ci' ); | |
/* MySQL database table prefix. */ | |
$table_prefix = 'RAND123_'; | |
define( 'CUSTOM_USER_TABLE', $table_prefix . 'user_table' ); | |
define( 'CUSTOM_USER_META_TABLE', $table_prefix . 'user_meta' ); | |
/* 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 ); | |
/* Custom WordPress URL. */ | |
define( 'WP_SITEURL', 'http://example.com/blog' ); | |
define( 'WP_HOME', 'http://example.com/wordpress' ); | |
define( 'WP_CONTENT_URL', 'http://example.com/wp-content' ); | |
define( 'UPLOADS', 'http://example.com/wp-content/uploads' ); | |
define( 'WP_PLUGIN_URL', 'http://example.com/wp-content/plugins' ); | |
define( 'COOKIE_DOMAIN', 'subdomain.example.com' ); | |
/* AutoSave Interval. */ | |
define( 'AUTOSAVE_INTERVAL', '45' ); | |
/* Specify maximum number of Revisions. */ | |
define( 'WP_POST_REVISIONS', '6' ); | |
/* Media Trash. */ | |
define( 'MEDIA_TRASH', true ); | |
/* Trash Days. */ | |
define( 'EMPTY_TRASH_DAYS', '15' ); | |
/* Multisite. */ | |
define( 'WP_ALLOW_MULTISITE', true ); | |
/* 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', '52' ); | |
define( 'WP_MAX_MEMORY_LIMIT', '512' ); | |
/* WordPress Cache */ | |
define( 'WP_CACHE', true ); | |
/* Compression */ | |
define( 'COMPRESS_CSS', false ); | |
define( 'COMPRESS_SCRIPTS', false ); | |
define( 'CONCATENATE_SCRIPTS', false ); | |
define( 'ENFORCE_GZIP', false ); | |
/* FTP */ | |
define( 'FTP_USER', 'REMOTE_USER' ); | |
define( 'FTP_PASS', 'REMOTE_PASS' ); | |
define( 'FTP_HOST', 'REMOTE_HOSTNAME' ); | |
define( 'FTP_SSL', true ); | |
/* CRON */ | |
define( 'DISABLE_WP_CRON', 'false' ); | |
define( 'ALTERNATE_WP_CRON', 'true' ); | |
define( 'WP_CRON_LOCK_TIMEOUT', 60 ); | |
/* 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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment