wp-config-sample.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. if ( file_exists( dirname( __FILE__ ) . '/wp-local-config.php' ) ) {
  3. define( 'WP_LOCAL_DEV', true );
  4. include( dirname( __FILE__ ) . '/wp-local-config.php' );
  5. } else {
  6. define('DB_NAME', '');
  7. define('DB_USER', '');
  8. define('DB_PASSWORD', '');
  9. define('DB_HOST', '127.0.0.1');
  10. define('DB_CHARSET', 'utf8');
  11. define('DB_COLLATE', '');
  12. }
  13. //define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/app' );
  14. //define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp/app' );
  15. //define( 'PLUGINDIR', dirname(__FILE__) . '/app/plugins' );
  16. define('AUTH_KEY', '');
  17. define('SECURE_AUTH_KEY', '');
  18. define('LOGGED_IN_KEY', '');
  19. define('NONCE_KEY', '');
  20. define('AUTH_SALT', '');
  21. define('SECURE_AUTH_SALT', '');
  22. define('LOGGED_IN_SALT', '');
  23. define('NONCE_SALT', '');
  24. $table_prefix = 'wp_';
  25. define( 'WPLANG', '' );
  26. define('WP_DEBUG', true);
  27. define( 'WP_DEBUG_DISPLAY', true );
  28. @ini_set( 'log_errors', 'On' );
  29. @ini_set( 'display_errors', 'On' );
  30. @ini_set( 'error_log', '/php_error.log' );
  31. @ini_set( 'error_reporting', E_ALL );
  32. define('AUTOSAVE_INTERVAL', 720 );
  33. define('WP_POST_REVISIONS', 2);
  34. define('WP_MEMORY_LIMIT', '128M');
  35. //define( 'WP_ALLOW_MULTISITE', true );
  36. //define( 'DISALLOW_FILE_EDIT', true );
  37. //define(‘FORCE_SSL_ADMIN’, true);
  38. //define(‘FORCE_SSL_LOGIN’, true);
  39. if ( file_exists( dirname( __FILE__ ) . '/memcached.php' ) )
  40. $memcached_servers = include( dirname( __FILE__ ) . '/memcached.php' );
  41. if ( !defined('ABSPATH') )
  42. define('ABSPATH', dirname(__FILE__) . '/wp/');
  43. require_once(ABSPATH . 'wp-settings.php');
  44. ?>