Erreur fatale PHP: "Impossible d'analyser ..friez .. Comme le fichier n'est pas lisible"
-
21-12-2019 - |
Question
J'essaie d'exécuter cette application: http://gaspaio.github.com/Gearmanui
Je suis sur DigitalOcean avec Apache, plafonnier cloné, compositeur installé et redémarré Apache.
Donc, je reçois un écran vide et cette erreur sur les journaux 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
Est-ce que je fais quelque chose de mal?
La solution
Vous devez vous assurer que votre fichier est lisible par le serveur, essayez de chiller à 700 environ.Si vous ne savez pas comment, vous pouvez généralement le faire via votre client FTP en cliquant avec le bouton droit de la souris sur le fichier et en choisissant «Autorisations de fichier»
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow