部署phpmyadmin登录不进去

Centos7.5 部署phpmyadmin登录不进去

问题:明明输对了账号和密码就是登录不进去,但是用ip就能登录

解决方法:换个域名

[root@web01 code]# vim /etc/nginx/conf.d/mysql.lvhanzhi.com.conf 
server {
    listen 80;
    server_name aaa.lvhanzhi.com;
    root /code/mysql;
    index index.php index.html;

    location ~ .php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}
[root@web01 code]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@web01 code]# systemctl restart nginx

原文地址:https://www.cnblogs.com/lvhanzhi/p/10370774.html