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
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.