symfony Warning: SessionHandler::read(/Application

2019-09-05 07:29发布

问题:

Installed Symfony. Ran php app/console server:run. At localhost:8000 I get the following error: symfony Warning: SessionHandler::read(x/y/z): open failed Permission denied.

This question just points to the symfony docs which I tried unsuccessfully.

回答1:

This finally worked:

sudo chown -R myusername x/y/z

Is there a better solution?


Note: use whoami (deprecated) or id to get your username.

$ whoami
myusername