nginx php Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

12 年 ago jony nginx php Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.已关闭评论

环境:

centos 6.5    php 5.4   nginx 1.6  phpmyadmin 5.5.36

访问phpmyadmin时,提示:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

解决方法:

1.vim /etc/php.ini

session.save_path = "/var/lib/php/session"                         #修改成这样

2.cd /var/lib/php/session

chown -R nginx:nginx session

chmod -R 777 secssion

重启nginx  php-fpm看看。。。。。