【发布时间】:2016-10-09 00:58:43
【问题描述】:
虽然路径 /mnt/my-proj/app/../var/sessions/dev 可供普通用户和我获得的 www-data 访问以下消息:
Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/mnt/op-accounting2/app/../var/sessions/dev)
我只在 dev 中收到上述消息,但在 prod 中没有。 /mnt/my-proj/app/../var/sessions/dev 和 /mnt/my-proj/app/../ var/sessions/prod 具有相同的权限:777。
上面的路径挂载如下:
# mount -t vboxsf -o uid=1000,gid=33,umask=000 my-proj /mnt/my-proj;
我做错了什么?
我已阅读以下帖子,但找不到适合我的解决方案:
https://github.com/NewEraCracker/suhosin-patches/issues/3
PHP7 + Symfony 2.8, Failed to write session data
我在 Windows 8.1 Enterprice (64Bit) 上使用 Vagrant 1.8.1,在 Vagrant 中使用 ubuntu-xenial 16.04。提供者是 VirtualBox 5.0.20。这些设置大多是默认设置。上面的路径是使用具有完全访问权限的 VirtualBox GUI 共享的。
亲切的问候,
朱里
【问题讨论】:
标签: php symfony session vagrant php-7