Configuration of wp-config.php file – WordPress

<?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',     'database_name_here' ); //MySQL database name.
 define( 'DB_USER',     'username_here' ); //MySQL database user name.
 define( 'DB_PASSWORD', 'password_here' ); //MySQL database password.
 define( 'DB_HOST',     'localhost' ); //MySQL database Host.
 define( 'DB_CHARSET',  'utf8mb4' ); //MySQL database charset.
 define( 'DB_COLLATE',  'utf8_general_ci' ); //MySQL database collate type. e.g. 'utf8_general_ci'


 /* MySQL database table prefix. */
 $table_prefix = 'wp_';    //MySQL database table prefix.
 define( 'CUSTOM_USER_TABLE',      $table_prefix . 'custom_user' );    //Change default 'wp_user' table.
 define( 'CUSTOM_USER_META_TABLE', $table_prefix . 'custom_usermeta' );    //Change default 'wp_usermeta' table.


 /* Authentication Unique Keys and Salts. / / https://api.wordpress.org/secret-key/1.1/salt/ */
 define( 'AUTH_KEY',         'put your unique phrase here' );    // Unique security keys and salts - AUTH_KEY. Insert manually or auto generated.
 define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );    // Unique security keys and salts - SECURE_AUTH_KEY. Insert manually or auto generated.
 define( 'LOGGED_IN_KEY',    'put your unique phrase here' );    // Unique security keys and salts - LOGGED_IN_KEY. Insert manually or auto generated.
 define( 'NONCE_KEY',        'put your unique phrase here' );    // Unique security keys and salts - NONCE_KEY. Insert manually or auto generated.
 define( 'AUTH_SALT',        'put your unique phrase here' );    // Unique security keys and salts - AUTH_SALT. Insert manually or auto generated.
 define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );    // Unique security keys and salts - SECURE_AUTH_SALT . Insert manually or auto generated.
 define( 'LOGGED_IN_SALT',   'put your unique phrase here' );    // Unique security keys and salts - LOGGED_IN_SALT. Insert manually or auto generated.

 define( 'NONCE_SALT',       'put your unique phrase here' );    // Unique security keys and salts - NONCE_SALT. Insert manually or auto generated.


 /* SSL */
 define( 'FORCE_SSL_LOGIN', true );    //Force SSL Login.
 define( 'FORCE_SSL_ADMIN', true );    //Force SSL Admin.


 /* Custom WordPress URL. */
 define( 'WP_SITEURL',     'http://example.com/blog' );    //Your WordPress blog/site URI. http://example.com/blog
 define( 'WP_HOME',        'http://example.com/wordpress' );    //WordPress core files URI. http://example.com/wordpress
 define( 'WP_CONTENT_URL', 'http://example.com/wp-content' );    //Custom 'wp-content' URI. http://example.com/wp-content
 define( 'UPLOADS',        'http://example.com/wp-content/uploads' );    //Custom 'wp-content/uploads' URI. http://example.com/wp-content/uploads
 define( 'WP_PLUGIN_URL',  'http://example.com/wp-content/plugins' );    //Custom 'wp-content/plugins' URI. http://example.com/wp-content/plugins
 define( 'COOKIE_DOMAIN',  'subdomain.example.com' );    //Set different domain for cookies. subdomain.example.com


 /* AutoSave Interval. */
 define( 'AUTOSAVE_INTERVAL', '70' );    //Auto-save interval (seconds). Default: 60


 /* Specify maximum number of Revisions. */
 define( 'WP_POST_REVISIONS', '10' );    //Enable/disable revisions. Set maximum number of revisions. Default: No limit


 /* Media Trash. */
 define( 'MEDIA_TRASH', true );    //Enable trash for media.


 /* Trash Days. */
 define( 'EMPTY_TRASH_DAYS', '301' );    //Number of days before trash emptied. Default: 30.


 /* Multisite. */
 define( 'WP_ALLOW_MULTISITE', true );    //Enable Multisite / Network Ability.


 /* WordPress debug mode for developers. */
 define( 'WP_DEBUG',         true );    //Display errors and warnings.
 define( 'WP_DEBUG_LOG',     true );    //Log errors and warnings.
 define( 'WP_DEBUG_DISPLAY', true );    //Display errors and warnings.
 define( 'SCRIPT_DEBUG',     true );    //JavaScript or CSS errors.
 define( 'SAVEQUERIES',      true );    //Save database queries in an array ($wpdb->queries) for analysis.


 /* PHP Memory */
 define( 'WP_MEMORY_LIMIT', '128M' );    //PHP memory limit. Default: 30M ; Multisite Default: 64M
 define( 'WP_MAX_MEMORY_LIMIT', '300M' );    //Maximum memory limit. Default: 256M


 /* WordPress Cache */
 define( 'WP_CACHE', true );    //Include 'wp-content/advanced-cache.php' script, when executing 'wp-settings.php'.


 /* Compression */

 define( 'COMPRESS_CSS',        true );    //Compresses CSS.
 define( 'COMPRESS_SCRIPTS',    true );    //Compresses JavaScript.
 define( 'CONCATENATE_SCRIPTS', true );    //Concatenates JavaScript and CSS files.
 define( 'ENFORCE_GZIP',        true );    //Forces gzip for compressoin of data sent to browsers.


 /* FTP */
 define( 'FTP_USER', 'ftp_username' );    //FTP or SSH username.
 define( 'FTP_PASS', 'ftp_password' );    //FTP or SSH password.
 define( 'FTP_HOST', 'ftp_host' );    //FTP or SSH hostname.
 define( 'FTP_SSL', true );    //Allow "Secure FTP" connection (not SSH SFTP).


 /* CRON */
 define( 'DISABLE_WP_CRON',      'true' );    //Disable the WordPress cron entirely.
 define( 'ALTERNATE_WP_CRON',    'true' );    //Set an alternate WordPress cron.
 define( 'WP_CRON_LOCK_TIMEOUT', 50 );    //Set maximum cron process execution time (seconds).


 /* Updates */
 define( 'WP_AUTO_UPDATE_CORE', false );    //Enable or disable update and installation from the admin.
 define( 'DISALLOW_FILE_MODS', true );    //Enable or disable auto core updates and language packs.
 define( 'DISALLOW_FILE_EDIT', true );    //Enable or disable the Plugin/Theme Editor.


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

Leave a Comment

Your email address will not be published. Required fields are marked *