无法在localhost上写入会话数据(用户)

时间:2017-05-16 21:45:41

标签: php session joomla virtualhost wampserver

在win10 pro 64上,我使用WAMP Server 3.0.6 64位进行joomla localhosting 因此,服务器中有两个虚拟主机:interopt和gmdb 第一个完美 但是当试图运行第二个时它用

响应
  

警告:session_write_close():无法写入会话数据(用户)。请确认第194行的F:\ wamp64 \ www \ gmdb \ libraries \ joomla \ session \ handler \ native.php中session.save_path的当前设置是否正确(f:/ wamp64 / tmp)

Session_save_path在f:/ wamp64 / tmp(文件夹具有读/写权限)时显示正确

在native.php的194行是

session_write_close();

我使用的是php版本7.0.10(但是在开启5.6.25时会出现同样的问题) 虚拟主机似乎也很完美,也是主机文件

有什么想法吗?你能帮忙吗?

我的虚拟主机

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot f:/wamp64/www
    <Directory  "f:/wamp64/www">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName interopt
    DocumentRoot f:/wamp64/www/interopt
    <Directory  "f:/wamp64/www/interopt">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName gmdb
    DocumentRoot f:/wamp64/www/gmdb
    <Directory  "f:/wamp64/www/gmdb">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

0 个答案:

没有答案
相关问题