dongquming3255 2012-10-06 15:30
浏览 60
已采纳

Symfony 2 InvalidArgumentException:文件app / config / config_prod.yml不存在

I'm trying to access a Symfony Installation on my VPS running CentOS.

The files /app/config/config_dev.yml and /app/config/config_prod_yml exist on the server. I even chmodded them to 0777 for testing purposes but I still get the error that they don't exists.

Full trace:

InvalidArgumentException: The file "/home/XXXXX/public_html/app/config/config_dev.yml" does not exist.

in /home/XXXXX/public_html/app/cache/dev/classes.php line 3637
at FileLocator->locate() in /home/XXXXX/public_html/app/cache/dev/classes.php line 4524
at FileLocator->locate() in /home/XXXXX/public_html/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php line 40
at YamlFileLoader->load() in /home/XXXXX/public_html/vendor/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php line 52
at DelegatingLoader->load() in /home/XXXXX/public_html/app/AppKernel.php line 39
at AppKernel->registerContainerConfiguration() in /home/XXXXX/public_html/app/bootstrap.php.cache line 867
at Kernel->buildContainer() in /home/XXXXX/public_html/app/bootstrap.php.cache line 783
at Kernel->initializeContainer() in /home/XXXXX/public_html/app/bootstrap.php.cache line 517
at Kernel->boot() in /home/XXXXX/public_html/app/bootstrap.php.cache line 548
at Kernel->handle() in /home/XXXXX/public_html/web/app_dev.php line 28
  • 写回答

1条回答 默认 最新

  • drnycqxwz63508434 2013-04-08 19:29
    关注

    It was a CHMOD issue where PHP didn't have access to the symfony core files.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置