PHP Fatal Error:"Não foi possível analisar o arquivo ....como o arquivo não é legível"

StackOverflow https://stackoverflow.com//questions/25044546

  •  21-12-2019
  •  | 
  •  

Pergunta

Estou tentando executar este aplicativo: http://gaspaio.github.com/gearmanui

Eu estou sobre o digitalocean, com apache, clonado repo, instalado compositor e reiniciar o apache.

Então, eu estou ficando tela em branco e este erro nos logs do 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

Estou fazendo algo errado?

Foi útil?

Solução

Você deve certificar-se de que seu arquivo é lido pelo servidor, tente o comando chmod para 700 ou assim.Se você não souber como, normalmente, pode fazê-lo através do seu cliente de FTP clicando com o botão direito sobre o arquivo e escolher a opção "Permissões de Arquivo"

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top