douao1579 2015-10-09 18:40
浏览 69
已采纳

本地服务器上的Symfony2项目

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.

  • 写回答

1条回答 默认 最新

  • dongqing4070 2015-10-09 18:58
    关注

    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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?