无法在CentOS上使用LEMP安装phpmyadmin

我在安装phpmyadmin时遵循以下步骤。

1启用EPEL回购

2 – 下载并提取phpmyadmin到/ usr / share /

3将config.sample.inc.php复制到config.inc.php文件中

4 – 创build/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,findlocalhost:8080是一个空白页面。

请指出正确的做法。 我的来源 。