phpmysqladmin安装和配置

参考http://www.tuicool.com/articles/EzMRBfQ


nginx配置文件做自定义修改

server {
  listen 8109;
  server_name  ip_of_server;
  access_log  /data/nginx/log/phpmyadmin-access.log ;
  access_log  /data/nginx/log/phpmyadmin-access.log ;
  
  location / {
    root /wwwroot/phpMyAdmin;
    index index.php;
  }

  location ~ \.php$ {
    root /wwwroot/phpMyAdmin;
    fastcgi_pass   127.0.0.1:9000;
    #fastcgi_pass  unix:/tmp/php-cgi.sock;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
  }
}


你可能感兴趣的:(phpmysqladmin安装和配置)