Created
November 24, 2015 20:41
-
-
Save leowebguy/aa0b68baf82a573c2852 to your computer and use it in GitHub Desktop.
WordPress wp-config.php best practices setup.
This file contains 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 | |
/** | |
* The base configurations of the WordPress bla bla bla... | |
*/ | |
define('DB_NAME', 'project1_db'); | |
define('DB_USER', 'project1_usr1'); | |
define('DB_PASSWORD', 'db-password-here'); | |
define('DB_HOST', 'localhost'); | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', ''); | |
define( 'WP_AUTO_UPDATE_CORE', false ); //Disable WordPress Core Updates > "minor", "true", "false" | |
define( 'AUTOMATIC_UPDATER_DISABLED', true ); //Disable WordPress Auto Updates | |
define('FS_METHOD', 'ftpext'); //"direct", "ssh2", "ftpext", or "ftpsockets" | |
define('FTP_BASE', '/srv/project1/www/htdocs/'); | |
define('FTP_CONTENT_DIR', '/srv/project1/www/htdocs/wp-content/'); | |
define('FTP_PLUGIN_DIR ', '/srv/project1/www/htdocs/wp-content/plugins/'); | |
define('FTP_USER', 'project1'); | |
define('FTP_PASS', 'ftp-password-here'); | |
define('FTP_HOST', 'ftp.project1.com'); | |
define('FTP_SSL', false); | |
define('WP_DEBUG', false); | |
define('WP_DEBUG_LOG', false); | |
define('WP_DEBUG_DISPLAY', false); | |
define( 'EMPTY_TRASH_DAYS', 7 ); //Empty Trash | |
define( 'DISABLE_WP_CRON', true ); //Disable Cron | |
define( 'WP_ALLOW_REPAIR', true ); //Automatic Database Optimizing | |
define( 'DISALLOW_FILE_EDIT', true ); //Disable the Plugin and Theme Editor | |
define( 'DISALLOW_FILE_MODS', true ); //Disable Plugin and Theme Update and Installation | |
define( 'WP_HTTP_BLOCK_EXTERNAL', true ); //Block External URL Requests | |
define( 'WP_ACCESSIBLE_HOSTS', 'api.wordpress.org,*.github.com' ); //Allow Additional Hosts | |
/**#@+ | |
* Authentication Unique Keys and Salts. | |
* Update at > https://api.wordpress.org/secret-key/1.1/salt/ | |
*/ | |
define('AUTH_KEY', '#$,*e9#u+,+tV^g=usqVv:*SqMm7JU?zy~,+Yrt?uC3=qy2Uw-_TXD{;811s32MU'); | |
define('SECURE_AUTH_KEY', '6$Pg+FvF^(*0d|W_(-I5jqatA+b<|wKU-PZx[E,cwkwADrk_hPNw@mGwJQ-BXB:.'); | |
define('LOGGED_IN_KEY', 'hoXdg^Or0#<8N=`:DJ}$W.%~+A0kmf3+S`hi43CK|{v(wa|Apzf>]eKEB6Nk1?ka'); | |
define('NONCE_KEY', '(^ybn.th@r!iVselp {:YJFf7m(s=R;G&0D&9B]*Ad_!y}aMgd(0zas1j9Y``e05'); | |
define('AUTH_SALT', 'dObzz*kxe=NAV?Y|XtxsFkwt3w#JK_Q7`Dta{~u|SS|$#]|p)%|qGX_IXK@ZM3 r'); | |
define('SECURE_AUTH_SALT', '|[[email protected]|kl[=1~%lE>XI(|J{mZE8HwA lLk-lvck9#L[D.D~U6%O%o'); | |
define('LOGGED_IN_SALT', '^=}P<Xf2njUoplN+G[HN{CN+|(4A@-,plW-po]lQ-|^_O|KMlZnu)Ly${>enj7Bl'); | |
define('NONCE_SALT', '=-jNXiW&)gb0OPF#sK9teGSFb7hE-P}]omzXAyeib:|J+FQXu._vt}hKI8xDvRR('); | |
/** | |
* WordPress Database Table prefix. | |
*/ | |
$table_prefix = 'wp_'; | |
/** | |
* WordPress Localized Language, defaults to English. | |
*/ | |
define('WPLANG', ''); | |
/** | |
* For developers: WordPress debugging mode. | |
*/ | |
/** 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