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

前端 未结 11 1634
别跟我提以往
别跟我提以往 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:07

    Editing config/config.yml and replacing save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%" with save_path: /var/lib/php/sessions fixed the error.

    If you use an editor/IDE that automatically converts spaces to tabs, be sure to disable that feature before saving your changes. Failure to do so may cause a 'does not contain valid YAML' error to occur.

提交回复
热议问题