美文网首页
访问PHPMyAdmin报错:Error during sess

访问PHPMyAdmin报错:Error during sess

作者: DukeAnn | 来源:发表于2017-08-24 09:58 被阅读0次
    Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
    

    是session的读写权限问题,在php.ini可以看到session位置:

    session.save_path = "/var/lib/php/session"
    

    给予/var/lib/php/session可写权限即可:.

    chown -R nginx.nginx /var/lib/php/session
    

    重启 nginx 和 php-fpm

    /etc/init.d/php-fpm restart
    service nginx restart
    
    重启 nginx 和 php-fpm

    刷新PHPMyAdmin页面OK

    相关文章

      网友评论

          本文标题:访问PHPMyAdmin报错:Error during sess

          本文链接:https://www.haomeiwen.com/subject/qhmsdxtx.html