Advertisement
bvek1

phpmyadmin config.inc.php

Nov 17th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. <?php
  2. /**
  3. * Debian local configuration file
  4. *
  5. * This file overrides the settings made by phpMyAdmin interactive setup
  6. * utility.
  7. *
  8. * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
  9. *
  10. * NOTE: do not add security sensitive data to this file (like passwords)
  11. * unless you really know what you're doing. If you do, any user that can
  12. * run PHP or CGI on your webserver will be able to read them. If you still
  13. * want to do this, make sure to properly secure the access to this file
  14. * (also on the filesystem level).
  15. */
  16.  
  17. /**
  18. * Server(s) configuration
  19. */
  20. $i = 0;
  21. // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
  22. // You can disable a server config entry by setting host to ''.
  23. $i++;
  24.  
  25. /**
  26. * Read configuration from dbconfig-common
  27. * You can regenerate it using: dpkg-reconfigure -plow phpmyadmin
  28. */
  29. if (is_readable('/etc/phpmyadmin/config-db.php')) {
  30. require('/etc/phpmyadmin/config-db.php');
  31. }
  32.  
  33. /* Configure according to dbconfig-common if enabled */
  34. if (!empty($dbname)) {
  35. /* Authentication type */
  36. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  37. /* Server parameters */
  38. if (empty($dbserver)) $dbserver = 'localhost';
  39. $cfg['Servers'][$i]['host'] = $dbserver;
  40.  
  41. if (!empty($dbport)) {
  42. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  43. $cfg['Servers'][$i]['port'] = $dbport;
  44. }
  45. //$cfg['Servers'][$i]['compress'] = false;
  46. /* Select mysqli if your server has it */
  47. $cfg['Servers'][$i]['extension'] = 'mysqli';
  48. /* Optional: User for advanced features */
  49. $cfg['Servers'][$i]['controluser'] = $dbuser;
  50. $cfg['Servers'][$i]['controlpass'] = $dbpass;
  51. /* Optional: Advanced phpMyAdmin features */
  52. $cfg['Servers'][$i]['pmadb'] = $dbname;
  53. $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  54. $cfg['Servers'][$i]['relation'] = 'pma_relation';
  55. $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  56. $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  57. $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  58. $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  59. $cfg['Servers'][$i]['history'] = 'pma_history';
  60. $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  61. $cfg['Servers'][$i]['tracking'] = 'pma_tracking';
  62.  
  63. /* Uncomment the following to enable logging in to passwordless accounts,
  64. * after taking note of the associated security risks. */
  65. // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
  66.  
  67. /* Advance to next server for rest of config */
  68. $i++;
  69. }
  70.  
  71. /* Authentication type */
  72. //$cfg['Servers'][$i]['auth_type'] = 'cookie';
  73. /* Server parameters */
  74. //$cfg['Servers'][$i]['host'] = 'localhost';
  75. //$cfg['Servers'][$i]['connect_type'] = 'tcp';
  76. //$cfg['Servers'][$i]['compress'] = false;
  77. /* Select mysqli if your server has it */
  78. //$cfg['Servers'][$i]['extension'] = 'mysql';
  79. /* Optional: User for advanced features */
  80. // $cfg['Servers'][$i]['controluser'] = 'pma';
  81. // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  82. /* Optional: Advanced phpMyAdmin features */
  83. // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  84. // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  85. // $cfg['Servers'][$i]['relation'] = 'pma_relation';
  86. // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  87. // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  88. // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  89. // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  90. // $cfg['Servers'][$i]['history'] = 'pma_history';
  91. // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  92. /* Uncomment the following to enable logging in to passwordless accounts,
  93. * after taking note of the associated security risks. */
  94. // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
  95.  
  96. /*
  97. * End of servers configuration
  98. */
  99.  
  100. /*
  101. * Directories for saving/loading files from server
  102. */
  103. $cfg['UploadDir'] = '';
  104. $cfg['SaveDir'] = '';
  105. $cfg['SuhosinDisableWarning'] = TRUE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement