daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $system_path = './system';
  2.    
  3. <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  4.  
  5. if ($_SERVER['HTTP_HOST']  == 'PRODUCTIONSERVER.com') {
  6.  
  7.     $active_group = 'production';
  8.  
  9. } elseif ($_SERVER['HTTP_HOST']  == 'DEVELOPMENTSERVER.com') {
  10.  
  11.     $active_group = 'development';
  12.  
  13. } elseif ($_SERVER['HTTP_HOST']  == 'YOURLOCALDOMAIN.dev') {
  14.  
  15.     $active_group = 'local';
  16.  
  17. } else {
  18.  
  19.     $active_group = 'production';
  20. }
  21.  
  22. $db['local']['hostname'] = 'localhost';
  23. $db['local']['username'] = 'root';
  24. $db['local']['password'] = 'YOUR PASSWORD';
  25. $db['local']['database'] = 'DATABASENAME';
  26. $db['local']['dbdriver'] = 'mysql';
  27. $db['local']['pconnect'] = FALSE;
  28. $db['local']['dbprefix'] = 'exp_';
  29. $db['local']['swap_pre'] = 'exp_';
  30. $db['local']['db_debug'] = TRUE;
  31. $db['local']['cache_on'] = FALSE;
  32. $db['local']['autoinit'] = FALSE;
  33. $db['local']['char_set'] = 'utf8';
  34. $db['local']['dbcollat'] = 'utf8_general_ci';
  35. $db['local']['cachedir'] = '{$_SERVER["DOCUMENT_ROOT"]}SYSTEMFOLDER/expressionengine/cache/db_cache/';
  36.  
  37. $db['development']['hostname'] = 'DEV HOST NAME';
  38. $db['development']['username'] = 'DEV USER NAME';
  39. $db['development']['password'] = 'DEV PASSWORD';
  40. $db['development']['database'] = 'DEV DATABASE';
  41. $db['development']['dbdriver'] = 'mysql';
  42. $db['development']['pconnect'] = FALSE;
  43. $db['development']['dbprefix'] = 'exp_';
  44. $db['development']['swap_pre'] = 'exp_';
  45. $db['development']['db_debug'] = TRUE;
  46. $db['development']['cache_on'] = FALSE;
  47. $db['development']['autoinit'] = FALSE;
  48. $db['development']['char_set'] = 'utf8';
  49. $db['development']['dbcollat'] = 'utf8_general_ci';
  50. $db['development']['cachedir'] = '{$_SERVER["DOCUMENT_ROOT"]}SYSTEMFOLDER/expressionengine/cache/db_cache/';
  51.  
  52. $db['production']['hostname'] = 'PRODUCTION HOST NAME';
  53. $db['production']['username'] = 'PRODUCTION USER NAME';
  54. $db['production']['password'] = 'PRODUCTION PASSWORD';
  55. $db['production']['database'] = 'PRODUCTION DATABASE';
  56. $db['production']['dbdriver'] = 'mysql';
  57. $db['production']['pconnect'] = FALSE;
  58. $db['production']['dbprefix'] = 'exp_';
  59. $db['production']['swap_pre'] = 'exp_';
  60. $db['production']['db_debug'] = TRUE;
  61. $db['production']['cache_on'] = FALSE;
  62. $db['production']['autoinit'] = FALSE;
  63. $db['production']['char_set'] = 'utf8';
  64. $db['production']['dbcollat'] = 'utf8_general_ci';
  65. $db['production']['cachedir'] = '{$_SERVER["DOCUMENT_ROOT"]}SYSTEMFOLDER/expressionengine/cache/db_cache/';
  66.  
  67.  
  68. ?>
  69.    
  70. $db['expressionengine']['hostname'] = 'localhost';
  71.     $db['expressionengine']['username'] = 'root';
  72.     $db['expressionengine']['password'] = '';
  73.     $db['expressionengine']['database'] = 'name_of_your_database';
  74.     $db['expressionengine']['dbdriver'] = 'mysql';$db['expressionengine']['pconnect'] = FALSE;
  75.     $db['expressionengine']['dbprefix'] = 'exp_';
  76.     $db['expressionengine']['swap_pre'] = 'exp_';
  77.     $db['expressionengine']['db_debug'] = TRUE;
  78.     $db['expressionengine']['cache_on'] = FALSE;
  79.     $db['expressionengine']['autoinit'] = FALSE;
  80.     $db['expressionengine']['char_set'] = 'utf8';
  81.     $db['expressionengine']['dbcollat'] = 'utf8_general_ci';
  82.     $db['expressionengine']['cachedir'] = '/localhost/system/expressionengine/cache/db_cache/';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top