Advertisement
Guest User

Clean WP-Config File for fresh installations

a guest
Jan 20th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.60 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Custom WordPress configurations on "wp-config.php" file.
  4.  *
  5.  * This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
  6.  * For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page.
  7.  * Created using {@link http://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com.
  8.  *
  9.  * @package WordPress
  10.  * @generator GenerateWP.com
  11.  */
  12.  
  13.  
  14. /* MySQL settings */
  15. define( 'DB_NAME',     'database_name_here' );
  16. define( 'DB_USER',     'username_here' );
  17. define( 'DB_PASSWORD', 'password_here' );
  18. define( 'DB_HOST',     'localhost' );
  19. define( 'DB_CHARSET',  'utf8mb4' );
  20.  
  21.  
  22. /* MySQL database table prefix. */
  23. $table_prefix = 'wp_';
  24.  
  25.  
  26. /* Authentication Unique Keys and Salts. */
  27. /* https://api.wordpress.org/secret-key/1.1/salt/ */
  28. define( 'AUTH_KEY',         'put your unique phrase here' );
  29. define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
  30. define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
  31. define( 'NONCE_KEY',        'put your unique phrase here' );
  32. define( 'AUTH_SALT',        'put your unique phrase here' );
  33. define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
  34. define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
  35. define( 'NONCE_SALT',       'put your unique phrase here' );
  36.  
  37.  
  38. /* SSL */
  39. define( 'FORCE_SSL_LOGIN', true );
  40. define( 'FORCE_SSL_ADMIN', true );
  41.  
  42.  
  43. /* PHP Memory */
  44. define( 'WP_MEMORY_LIMIT', '512' );
  45. define( 'WP_MAX_MEMORY_LIMIT', '512' );
  46.  
  47. /* WP_MEMORY_LIMIT will permanently override memory_limit if its value is greater than the current value in php.ini. Don't increase the memory available more than you need to or you'll run the risk of running out of RAM if you have too many simultaneous hits on pages. Default: 30M ; Multisite Default: 64M
  48.  
  49. WP_MAX_MEMORY_LIMIT will temporarily override memory_limit with whatever value you defined. And it only happens in some events such as unzip file while installing/upgrading themes, plugins..., editing/previewing images Default: 256M */
  50.  
  51.  
  52. /* WordPress Cache */
  53. define( 'WP_CACHE', false );
  54.  
  55.  
  56. /* Compression */
  57. define( 'COMPRESS_CSS',        true );
  58. define( 'COMPRESS_SCRIPTS',    true );
  59. define( 'ENFORCE_GZIP',        true );
  60.  
  61.  
  62. /* Updates */
  63. define( 'WP_AUTO_UPDATE_CORE', 'minor' );
  64. define( 'DISALLOW_FILE_EDIT', false );
  65.  
  66.  
  67. /* Absolute path to the WordPress directory. */
  68. if ( !defined('ABSPATH') )
  69.     define('ABSPATH', dirname(__FILE__) . '/');
  70.  
  71. /* Sets up WordPress vars and included files. */
  72. require_once(ABSPATH . 'wp-settings.php');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement