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.

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

报告相同问题?

悬赏问题

  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败