centos 6.4安装phpMyadmin


1 配置好yum源

    yum --enablerepo=remi,remi-test install phpmyadmin

2.配置nginx 

server {
       listen   80; 
       server_name phpadmin.com;
       root /usr/share/phpmyadmin;


       location / { 
           index  index.php;
       }   


       ## Images and static content is treated different
       location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
           access_log        off;
           expires           360d;
       }   


       location ~ /\.ht {
           deny  all;
       }   


       location ~ /(libraries|setup/frames|setup/libs) {
           deny all;
           return 404;
       }   


       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;
       }   

配置好后 登录phpmyadmin 无错误提示也不跳转只是刷新一下,网上查了一下解决方法如下

在php.ini 找到session.save_path 这一行,设成session.save_path = “/var/lib/php/session”,并把前面的
分号去掉。
如果没有该目录手动创建并修改权限

# chown -R apache:apache /var/lib/php/session 

问题解决


你可能感兴趣的:(centos 6.4安装phpMyadmin)