配置文件为: / etc / nginx / sites-available / phpmyadmin
server {
listen 80;
listen [::]:80;
root /var/www/phpmyadmin;
# Add index.php to the list if you are using PHP
index index.php index.html;
server_name phpmyadmin.local phpmyadmin.local.sajib;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
autoindex on;
}
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
5.1.0-dev
PHP 7.2.21 -1 + ubuntu18.04.1 + deb.sury.org + 1(cli)(内置:2019年8月7日09:53:51)(NTS)
mariadb Ver 15.1 Distrib 10.1.41-MariaDB ,用于使用readline 5.2的debian-linux-gnu(x86_64)