PHP致命错误:“无法解析......作为文件不可读取”
-
21-12-2019 - |
题
我正在尝试运行这个应用程序: http://gaspaio.github.com/gearmanui
我在DigitaloCean上有Apache,克隆的repo,安装的作曲家和重启apache。
所以我在apache日志上获得空白屏幕,这个错误:
[Wed Jul 30 14:39:56.444638 2014] [:error] [pid 8731] [client 123.123.123.123:57826] PHP Fatal
error: Uncaught exception 'Symfony\\Component\\Yaml\\Exception\\ParseException' with message 'Unable
to parse "/var/www/html/src/GearmanUI/../../app/config/gearmanui.yml" as the file is not readable.' in
/var/www/html/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php:98\nStack trace:\n#0 /var/www/html/
src/GearmanUI/ConfigurationProvider.php(30): Symfony\\Component\\Yaml\\Yaml::parse('/var/www/html
/s...')\n#1 /var/www/html/vendor/silex/silex/src/Silex/Application.php(160):
GearmanUI\\ConfigurationProvider->register(Object(GearmanUI\\GearmanUIApplication))\n#2 /var/www
/html/src/GearmanUI/GearmanUIApplication.php(41): Silex\\Application->register(Object(GearmanUI
\\ConfigurationProvider))\n#3 /var/www/html/web/index.php(5):
GearmanUI\\GearmanUIApplication->__construct()\n#4 {main}\n thrown in /var/www/html/vendor/symfony
/yaml/Symfony/Component/Yaml/Yaml.php on line 98
.
是我做错了什么?
解决方案
您应该确保服务器可读您的文件,请将其Chmoding至700左右。如果您不确定如何,您通常可以通过右键单击文件并选择“文件权限”(文件权限)来通过您的FTP客户端进行
不隶属于 StackOverflow