2015-10-09 18:40
浏览 64


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.

图片转代码服务由CSDN问答提供 功能建议

我尝试在从FTP下载后在本地服务器上运行Symfony2项目。 我在运行服务器时遇到此错误:

警告:require(app_dev.php):无法打开流:没有此类文件 或 目录 /Users/bogdan/Sites/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php 第36行


  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongqing4070 2015-10-09 18:58

    I would suggest to read 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
    打赏 评论

相关推荐 更多相似问题