PHP 致命错误:"Unable to parse ..file.. as the file is not readable"



我正在尝试运行这个应用程序:http://gaspaio.github.com/gearmanui

我在digitalocean上安装了apache,克隆了repo,安装了composer并重新启动了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:98nStack 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客户端右键单击文件,选择"文件权限"

最新更新