Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.67 KB | None | 0 0
  1. Now you must configure your installation. There are two methods that can be
  2.     used. Traditionally, users have hand-edited a copy of config.inc.php, but
  3.     now a wizard-style setup script is provided for those who prefer a
  4.     graphical installation. Creating a config.inc.php is still a quick way to
  5.     get started and needed for some advanced features.
  6.       + To manually create the file, simply use your text editor to create the
  7.         file config.inc.php (you can copy config.sample.inc.php to get minimal
  8.         configuration file) in the main (top-level) phpMyAdmin directory (the
  9.         one that contains index.php). phpMyAdmin first loads libraries/
  10.         config.default.php and then overrides those values with anything found
  11.         in config.inc.php. If the default value is okay for a particular
  12.         setting, there is no need to include it in config.inc.php. You'll need
  13.         a few directives to get going, a simple configuration may look like
  14.         this:
  15.  
  16.         <?php
  17.         $cfg['blowfish_secret'] = 'ba17c1ec07d65003';  // use here a value of your choice
  18.  
  19.         $i=0;
  20.         $i++;
  21.         $cfg['Servers'][$i]['auth_type']     = 'cookie';
  22.         ?>
  23.  
  24.         Or, if you prefer to not be prompted every time you log in:
  25.  
  26.         <?php
  27.  
  28.         $i=0;
  29.         $i++;
  30.         $cfg['Servers'][$i]['user']          = 'root';
  31.         $cfg['Servers'][$i]['password']      = 'cbb74bc'; // use here your password
  32.         $cfg['Servers'][$i]['auth_type']     = 'config';
  33.         ?>
  34.  
  35.         For a full explanation of possible configuration values, see the
  36.         Configuration Section of this document.
  37.       + Instead of manually editing config.inc.php, you can use the Setup
  38.         Script. First you must manually create a folder config in the
  39.         phpMyAdmin directory. This is a security measure. On a Linux/Unix
  40.         system you can use the following commands:
  41.  
  42.         cd phpMyAdmin
  43.         mkdir config                        # create directory for saving
  44.         chmod o+rw config                   # give it world writable permissions
  45.  
  46.         And to edit an existing configuration, copy it over first:
  47.  
  48.         cp config.inc.php config/           # copy current configuration for editing
  49.         chmod o+w config/config.inc.php     # give it world writable permissions
  50.  
  51.         On other platforms, simply create the folder and ensure that your web
  52.         server has read and write access to it. FAQ 1.26 can help with this.
  53.  
  54.         Next, open setup/ in your browser. Note that changes are not saved to
  55.         disk until explicitly choose Save from the Configuration area of the
  56.         screen. Normally the script saves the new config.inc.php to the config/
  57.         directory, but if the webserver does not have the proper permissions
  58.         you may see the error "Cannot load or save configuration." Ensure that
  59.         the config/ directory exists and has the proper permissions - or use
  60.         the Download link to save the config file locally and upload (via FTP
  61.         or some similar means) to the proper location.
  62.  
  63.         Once the file has been saved, it must be moved out of the config/
  64.         directory and the permissions must be reset, again as a security
  65.         measure:
  66.  
  67.         mv config/config.inc.php .         # move file to current directory
  68.         chmod o-rw config.inc.php          # remove world read and write permissions
  69.         rm -rf config                      # remove not needed directory
  70.  
  71.         Now the file is ready to be used. You can choose to review or edit the
  72.         file with your favorite editor, if you prefer to set some advanced
  73.         options which the setup script does not provide.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement