0

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.

Community
  • 1
  • 1
Geoffrey Hale
  • 10,597
  • 5
  • 44
  • 45

2 Answers2

1

After reinstallation of XAMPP on my machine Symfony started to give me these errors.

I moved XAMPP from C:/XAMPP to C:/Program Files/XAMPP. This caused the Permission Denied feedback.

Simply running my XAMPP as administrator fixed the error for me

v0lky1
  • 11
  • 1
0

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
Geoffrey Hale
  • 10,597
  • 5
  • 44
  • 45
  • 1
    server:run is using the internal webserver of php. If you run that command, php is run with the same user. So that user needs read/write permissions on that folder. So your solution is correct.. – Koalabaerchen Nov 30 '15 at 10:51