Andy's Blog » Cannot start session without errors please check errors given in your PHP and/or webserver log file, Cannot start session without errors please check errors given in your PHP a, Cannot start session without errors please check errors given in your PHP and/or webserver log file and configure your PHP installation properly, 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, Cannot start session without errors please check errors given in your PHP, cannot, php fpm session 写权限, centos session权限 » PHPMyAdmin 中 PHP Session 权限错误

PHPMyAdmin 中 PHP Session 权限错误

这个问题总是遇到,每次搞定以后又忘了,写下来一次,就不会忘了。
问题如下:
安装好 CentOS + Nginx + PHP-FPM + MySQL + PHPMyAdmin 以后, 访问 PHPMyAdmin 将提示

phpMyAdmin - Error

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

转载注明原文出处:http://www.21andy.com/new/20100410/1833.html

查看了 php.ini 中 Session 路径的设置,也没有错误,权限甚至给了 0777

session.save_path = "/tmp/session"

我在本机的虚拟机中是用这个地址访问的
http://192.168.137.129/phpmyadmin/

但无论我怎么做,都没有办法解决,都是出这个错误,原来问题是出在主机名上。

解决办法如下:
hosts 中添加记录

192.168.137.129    a.com
192.168.137.129    www.a.com

然后使用 http://www.a.com/phpmyadmin/ 来访问,这下就OK了!

也就是说,不可以用IP地址的形式来访问。

转载注明原文出处:http://www.21andy.com/new/20100410/1833.html

Incoming search terms:

Tags: phpmyadmin, 权限, session

本文地址: http://www.21andy.com/new/20100410/1833.html

1 评论 to “PHP开源CMS之MODx”

  1. Johnny 于 2010-05-03 23:08:55 发表:

    谢谢了!
    网上都说是权限问题,还扯到检查某模块呢,原来不可以用IP访问,恍然大悟!