Symfony 3.1.5 Warning: SessionHandler::read(): Session data file is not created by your uid

前端 未结 11 1675
别跟我提以往
别跟我提以往 2020-12-05 04:36

I\'m running Symfony 3.1.5 on a Ubuntu 14.04, PHP 7.1 and Apache 2.4.23 stack managed by Vagrant 1.8.6/VirtualBox 5.1.6. I\'m trying to use a simple controller I\'ve made to

11条回答
  •  佛祖请我去吃肉
    2020-12-05 05:15

    Session path can't be written to since the web user and the owner of the content in the sessions folder are different and thus doesn't .

    Solution is to set your /var or /var/sessions/ ownership to the web user.

    chown apache:apache /var/ -R * Or: chown www-data:www-data /var/ -R *

    Highest rated response is not really the best response here.

提交回复
热议问题