简体   繁体   中英

Symfony2 project on local server

I am trying to run a Symfony2 project on my local server after downloading it from the FTP. I keep getting this error when running the server:

Warning : require(app_dev.php): failed to open stream: No such file or directory in /Users/bogdan/Sites/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php on line 36

I am running everything on developer mode.

I would suggest to read http://symfony.com/doc/current/book/installation.html firstly.

Anyway I think that you run console from a bad path. You have to run app/console server:run . It means that you have to be in a root directory of your project.

cd my_symfony2_project
php app/console server:run

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM