我在安装 phpmyadmin 时遵循了以下步骤。
1-启用 EPEL 仓库
2-下载并解压 phpmyadmin 到 /usr/share/
3-将 config.sample.inc.php 复制到 config.inc.php 文件中
4-创建 /etc/nginx/conf.d/phpmyadmin.conf 并添加
server {
listen 8080; # listen port
server_name localhost; # Server name
location / {
root /usr/share/phpmyadmin; # Document root
index index.php index.html index.htm;
}
location ~ \.php$ {
root /usr/share/phpmyadmin; # Document root
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
5-重新启动nginx,发现localhost:8080是一个空白页。
请指出正确的做法。我的来源。