Created
December 5, 2010 01:39
-
-
Save jhaus/728679 to your computer and use it in GitHub Desktop.
WP Config file with some useful default settings
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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. Get MySQL settings from web host. | |
* You can find more information by visiting the Codex page: | |
* | |
* @link http://codex.wordpress.org/Editing_wp-config.php | |
* | |
* This file is used by the wp-config.php creation script during the | |
* installation. You don't have to use the web site, you can just copy this file | |
* to "wp-config.php" and fill in the values. | |
* | |
* @package WordPress | |
*/ | |
######### CHECK OUT: http://digwp.com/2010/08/pimp-your-wp-config-php/ ######### | |
// ** MySQL settings - You can get this info from your web host ** // | |
define('DB_NAME', 'mysql_db_name'); /** The name of the database for WordPress */ | |
define('DB_USER', 'mysql_user'); /** MySQL database username */ | |
define('DB_PASSWORD', 'mysql_pass'); /** MySQL database password */ | |
define('DB_HOST', 'localhost'); /** MySQL hostname */ | |
define('DB_CHARSET', 'utf8'); /** Database Charset to use in creating database tables. */ | |
define('DB_COLLATE', ''); /** The Database Collate type. Don't change this if in doubt. */ | |
/**#@+ | |
* Authentication Unique Keys and Salts. | |
* | |
* Change these to different unique phrases! | |
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ } | |
* You can change these at any point in time to invalidate all existing cookies. | |
* This will force all users to have to log in again. | |
* | |
* @since 2.6.0 | |
*/ | |
define('AUTH_KEY', ''); | |
define('SECURE_AUTH_KEY', ''); | |
define('LOGGED_IN_KEY', ''); | |
define('NONCE_KEY', ''); | |
/**#@-*/ | |
/** | |
* WordPress Database Table prefix. | |
* | |
* You can have multiple installations in one database if you give each a unique | |
* prefix. Only numbers, letters, and underscores please! Change pre install.php script! | |
*/ | |
$table_prefix = '{$prefix1}_{$prefix2}_'; | |
/** | |
* WordPress Localized Language, defaults to English. | |
* | |
* Change this to localize WordPress. A corresponding MO file for the chosen | |
* language must be installed to wp-content/languages. For example, install | |
* de.mo to wp-content/languages and set WPLANG to 'de' to enable German | |
* language support. | |
*/ | |
define ('WPLANG', ''); | |
################## CUSTOM SETTINGS ################## | |
# Set database site and home URL's | |
define('WP_HOME', ''); // wp frontpage | |
define('WP_SITEURL', ''); // wp directory | |
define('WP_POST_REVISIONS', 5); # No. of saved revisions, an integer, don't go crazy OR boolean (default: true) | |
define('AUTOSAVE_INTERVAL', 180); # Auto-save frequency, don't go nuts (default: 60 sec.) | |
define('EMPTY_TRASH_DAYS', 21); # empty trash tri-weekly (default: 30 days) | |
/** | |
* For developers: WordPress debugging mode. | |
* | |
* Change this to true to enable the display of notices during development. | |
* It is strongly recommended that plugin and theme developers use WP_DEBUG | |
* in their development environments. | |
*/ | |
define('WP_DEBUG', 1); | |
/** | |
* This will log all errors notices and warnings to a file called debug.log in | |
* wp-content (if Apache does not have write permission, you may need to create | |
* the file first and set the appropriate permissions (i.e. use 666) ) | |
*/ | |
//define('WP_DEBUG_LOG', 1); | |
//define('WP_DEBUG_DISPLAY', 0); | |
//@ini_set('display_errors', 0); | |
/* That's all, stop editing! Happy blogging. */ | |
/** 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