3

我正在尝试在运行 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
4

1 回答 1

2

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

于 2013-04-08T19:29:09.343 回答