Created
March 16, 2015 16:53
-
-
Save bgadrian/f314dbe75a97e2976f26 to your computer and use it in GitHub Desktop.
PhpMyAdmin setup & nginx with alias & autologin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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