wp-config-sample.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. if ( file_exists( dirname( __FILE__ ) . '/memcached.php' ) )
  37. $memcached_servers = include( dirname( __FILE__ ) . '/memcached.php' );
  38. if ( !defined('ABSPATH') )
  39. define('ABSPATH', dirname(__FILE__) . '/wp/');
  40. require_once(ABSPATH . 'wp-settings.php');
  41. ?>