Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony 3.3 built-in server error

I'm developping an app under windows 10 + wamp + php 7 + Symfony 3.3

I'm trying to use the built-in server :

php bin/console server:run
[OK] Server listening on http://127.0.0.1:8000
// Quit the server with CONTROL-C.

And when I go to http://localhost:8000/app_dev.php/ or http://127.0.0.1:8000/app_dev.php

I get this error :

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 
Fatal error: Unknown: Failed opening required 'C:\wamp\www\myproject\vendor\symfony\symfony\src\Symfony\Bundle\WebServerBundle/Resources/router.php' (include_path='.;C:\php\pear') in Unknown on line 0

Same error under every routes. My routes are correct and works fine outside of the built-in server...

Can you help me with this issue please ?

like image 639
mBbkr Avatar asked Aug 09 '17 16:08

mBbkr


1 Answers

I had same problem,

Solved by :

  • Delete symfony folder in vendor

  • composer update

  • If you have antivirus (like Avast) disable it before launching web server

  • php bin/console server:run

like image 81
Arthur Bouchard Avatar answered Nov 09 '22 18:11

Arthur Bouchard