Skip to content

Instantly share code, notes, and snippets.

@bgadrian
Created March 16, 2015 16:53
Show Gist options
  • Save bgadrian/f314dbe75a97e2976f26 to your computer and use it in GitHub Desktop.
Save bgadrian/f314dbe75a97e2976f26 to your computer and use it in GitHub Desktop.
PhpMyAdmin setup & nginx with alias & autologin
server {
listen 0.0.0.0:80;
server_name pma;
root /usr/share/phpmyadmin/;
index index.php index.html index.htm;
location ~ .php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['verbose_check'] = false;
//$cfg['Servers'][$i]['only_db'] = array (
// 0 => 'PUBLIC_DB_FOR_THIS_PMA',
//);
$cfg['Servers'][$i]['hide_db'] = 'information_schema|performance_schema|phpmyad$
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment