Advertisement
master3395

config.inc.php

Aug 13th, 2022 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. <?php
  2. /**
  3. * phpMyAdmin sample configuration, you can use it as base for
  4. * manual configuration. For easier setup you can use setup/
  5. *
  6. * All directives are explained in documentation in the doc/ folder
  7. * or at <https://docs.phpmyadmin.net/>.
  8. */
  9.  
  10. declare(strict_types=1);
  11.  
  12. /**
  13. * This is needed for cookie based authentication to encrypt password in
  14. * cookie. Needs to be 32 chars long.
  15. */
  16. $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
  17.  
  18. /**
  19. * Servers configuration
  20. */
  21. $i = 0;
  22.  
  23. /**
  24. * First server
  25. */
  26. $i++;
  27. /* Authentication type */
  28.  
  29. $cfg['Servers'][$i]['AllowNoPassword'] = false;
  30. $cfg['Servers'][$i]['auth_type'] = 'signon';
  31. $cfg['Servers'][$i]['SignonSession'] = 'SignonSession';
  32. $cfg['Servers'][$i]['SignonURL'] = 'phpmyadminsignin.php';
  33. $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
  34.  
  35. /**
  36. * phpMyAdmin configuration storage settings.
  37. */
  38.  
  39. /* User used to manipulate with storage */
  40. // $cfg['Servers'][$i]['controlhost'] = '';
  41. // $cfg['Servers'][$i]['controlport'] = '';
  42. // $cfg['Servers'][$i]['controluser'] = 'pma';
  43. // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  44.  
  45. /* Storage database and tables */
  46. // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  47. // $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
  48. // $cfg['Servers'][$i]['relation'] = 'pma__relation';
  49. // $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
  50. // $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
  51. // $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
  52. // $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
  53. // $cfg['Servers'][$i]['history'] = 'pma__history';
  54. // $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
  55. // $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
  56. // $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
  57. // $cfg['Servers'][$i]['recent'] = 'pma__recent';
  58. // $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
  59. // $cfg['Servers'][$i]['users'] = 'pma__users';
  60. // $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  61. // $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  62. // $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  63. // $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  64. // $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
  65. // $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
  66.  
  67. /**
  68. * End of servers configuration
  69. */
  70.  
  71. /**
  72. * Directories for saving/loading files from server
  73. */
  74. $cfg['UploadDir'] = '';
  75. $cfg['SaveDir'] = '';
  76.  
  77. /**
  78. * Whether to display icons or text or both icons and text in table row
  79. * action segment. Value can be either of 'icons', 'text' or 'both'.
  80. * default = 'both'
  81. */
  82. //$cfg['RowActionType'] = 'icons';
  83.  
  84. /**
  85. * Defines whether a user should be displayed a "show all (records)"
  86. * button in browse mode or not.
  87. * default = false
  88. */
  89. //$cfg['ShowAll'] = true;
  90.  
  91. /**
  92. * Number of rows displayed when browsing a result set. If the result
  93. * set contains more rows, "Previous" and "Next".
  94. * Possible values: 25, 50, 100, 250, 500
  95. * default = 25
  96. */
  97. //$cfg['MaxRows'] = 50;
  98.  
  99. /**
  100. * Disallow editing of binary fields
  101. * valid values are:
  102. * false allow editing
  103. * 'blob' allow editing except for BLOB fields
  104. * 'noblob' disallow editing except for BLOB fields
  105. * 'all' disallow editing
  106. * default = 'blob'
  107. */
  108. //$cfg['ProtectBinary'] = false;
  109.  
  110. /**
  111. * Default language to use, if not browser-defined or user-defined
  112. * (you find all languages in the locale folder)
  113. * uncomment the desired line:
  114. * default = 'en'
  115. */
  116. //$cfg['DefaultLang'] = 'en';
  117. //$cfg['DefaultLang'] = 'de';
  118.  
  119. /**
  120. * How many columns should be used for table display of a database?
  121. * (a value larger than 1 results in some information being hidden)
  122. * default = 1
  123. */
  124. //$cfg['PropertiesNumColumns'] = 2;
  125.  
  126. /**
  127. * Set to true if you want DB-based query history.If false, this utilizes
  128. * JS-routines to display query history (lost by window close)
  129. *
  130. * This requires configuration storage enabled, see above.
  131. * default = false
  132. */
  133. //$cfg['QueryHistoryDB'] = true;
  134.  
  135. /**
  136. * When using DB-based query history, how many entries should be kept?
  137. * default = 25
  138. */
  139. //$cfg['QueryHistoryMax'] = 100;
  140.  
  141. /**
  142. * Whether or not to query the user before sending the error report to
  143. * the phpMyAdmin team when a JavaScript error occurs
  144. *
  145. * Available options
  146. * ('ask' | 'always' | 'never')
  147. * default = 'ask'
  148. */
  149. //$cfg['SendErrorReports'] = 'always';
  150.  
  151. /**
  152. * 'URLQueryEncryption' defines whether phpMyAdmin will encrypt sensitive data from the URL query string.
  153. * 'URLQueryEncryptionSecretKey' is a 32 bytes long secret key used to encrypt/decrypt the URL query string.
  154. */
  155. //$cfg['URLQueryEncryption'] = true;
  156. //$cfg['URLQueryEncryptionSecretKey'] = '';
  157.  
  158. /**
  159. * You can find more configuration options in the documentation
  160. * in the doc/ folder or at <https://docs.phpmyadmin.net/>.
  161. */
  162. $cfg['TempDir'] = '/usr/local/CyberCP/public/phpmyadmin/tmp';
  163.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement