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

时间:2012-10-06 15:30:46

标签: php symfony doctrine

我正在尝试在运行CentOS的VPS上访问Symfony安装。

服务器上存在文件/app/config/config_dev.yml和/ app / config / config_prod_yml。我甚至将它们修改为0777用于测试目的,但我仍然得到它们不存在的错误。

完整追踪:

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 个答案:

答案 0 :(得分:2)

这是一个CHMOD问题,PHP无法访问symfony核心文件。