CentOS7 上でLaravel 5.1を設定しましたが、起動できず、
HTTP ERROR 500になります。
Apacheが出力するLaravelのログは以下のように出力されています。
[Tue Oct 24 17:36:07.267007 2017] [php7:error] [pid 4770] [client 61.124.91.76:5593] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/Retiree/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/Retiree/bootstrap/cache/compiled.php:13440\nStack trace:\n#0 /var/www/Retiree/bootstrap/cache/compiled.php(13370): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/Retiree/bootstrap/cache/compiled.php(13130): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#2 /var/www/Retiree/bootstrap/cache/compiled.php(13228): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)\n#3 /var/www/Retiree/bootstrap/cache/compiled.php(12923): Monolog\Logger->error(Object(UnexpectedValueException), Array)\n#4 /var/www/Retiree/bootstrap/cache/compiled.php(12894): Illuminate\Log\Writer->writeLog('error', Object(UnexpectedValueException), Array)\n#5 /var/www/Retiree/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(50): Illuminate\Log\Writer->error(Object(UnexpectedValueException))\n#6 /var/www/Retiree/app/Excepti in /var/www/Retiree/bootstrap/cache/compiled.php on line 13440 [Tue Oct 24 17:36:07.268086 2017] [php7:error] [pid 4770] [client 61.124.91.76:5593] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/Retiree/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/Retiree/bootstrap/cache/compiled.php:13440\nStack trace:\n#0 /var/www/Retiree/bootstrap/cache/compiled.php(13370): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/Retiree/bootstrap/cache/compiled.php(13130): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#2 /var/www/Retiree/bootstrap/cache/compiled.php(13228): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#3 /var/www/Retiree/bootstrap/cache/compiled.php(12923): Monolog\Logger->error(Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#4 /var/www/Retiree/bootstrap/cache/compiled.php(12894): Illuminate\Log\Writer->writeLog('error', Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#5 /var/www/Retiree/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(50): Illumin in /var/www/Retiree/bootstrap/cache/compiled.php on line 13440 [Tue Oct 24 17:36:08.841638 2017] [php7:error] [pid 4771] [client 61.124.91.76:5597] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/Retiree/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/Retiree/bootstrap/cache/compiled.php:13440\nStack trace:\n#0 /var/www/Retiree/bootstrap/cache/compiled.php(13370): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/Retiree/bootstrap/cache/compiled.php(13130): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#2 /var/www/Retiree/bootstrap/cache/compiled.php(13228): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)\n#3 /var/www/Retiree/bootstrap/cache/compiled.php(12923): Monolog\Logger->error(Object(UnexpectedValueException), Array)\n#4 /var/www/Retiree/bootstrap/cache/compiled.php(12894): Illuminate\Log\Writer->writeLog('error', Object(UnexpectedValueException), Array)\n#5 /var/www/Retiree/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(50): Illuminate\Log\Writer->error(Object(UnexpectedValueException))\n#6 /var/www/Retiree/app/Excepti in /var/www/Retiree/bootstrap/cache/compiled.php on line 13440 [Tue Oct 24 17:36:08.842635 2017] [php7:error] [pid 4771] [client 61.124.91.76:5597] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/Retiree/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/Retiree/bootstrap/cache/compiled.php:13440\nStack trace:\n#0 /var/www/Retiree/bootstrap/cache/compiled.php(13370): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/Retiree/bootstrap/cache/compiled.php(13130): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#2 /var/www/Retiree/bootstrap/cache/compiled.php(13228): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#3 /var/www/Retiree/bootstrap/cache/compiled.php(12923): Monolog\Logger->error(Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#4 /var/www/Retiree/bootstrap/cache/compiled.php(12894): Illuminate\Log\Writer->writeLog('error', Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#5 /var/www/Retiree/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(50): Illumin in /var/www/Retiree/bootstrap/cache/compiled.php on line 13440 [Tue Oct 24 17:36:12.212510 2017] [php7:error] [pid 4768] [client 61.124.91.76:5598] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/Retiree/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/Retiree/bootstrap/cache/compiled.php:13440\nStack trace:\n#0 /var/www/Retiree/bootstrap/cache/compiled.php(13370): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/Retiree/bootstrap/cache/compiled.php(13130): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#2 /var/www/Retiree/bootstrap/cache/compiled.php(13228): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)\n#3 /var/www/Retiree/bootstrap/cache/compiled.php(12923): Monolog\Logger->error(Object(UnexpectedValueException), Array)\n#4 /var/www/Retiree/bootstrap/cache/compiled.php(12894): Illuminate\Log\Writer->writeLog('error', Object(UnexpectedValueException), Array)\n#5 /var/www/Retiree/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(50): Illuminate\Log\Writer->error(Object(UnexpectedValueException))\n#6 /var/www/Retiree/app/Excepti in /var/www/Retiree/bootstrap/cache/compiled.php on line 13440 [Tue Oct 24 17:36:12.213449 2017] [php7:error] [pid 4768] [client 61.124.91.76:5598] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/Retiree/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/Retiree/bootstrap/cache/compiled.php:13440\nStack trace:\n#0 /var/www/Retiree/bootstrap/cache/compiled.php(13370): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/Retiree/bootstrap/cache/compiled.php(13130): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#2 /var/www/Retiree/bootstrap/cache/compiled.php(13228): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#3 /var/www/Retiree/bootstrap/cache/compiled.php(12923): Monolog\Logger->error(Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#4 /var/www/Retiree/bootstrap/cache/compiled.php(12894): Illuminate\Log\Writer->writeLog('error', Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#5 /var/www/Retiree/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(50): Illumin in /var/www/Retiree/bootstrap/cache/compiled.php on line 13440
laravel.log
が書き込めないというエラーなんでしょうか?
パーミッションは以下の様に設定しています。
[hrsi@sun logs]$ pwd /var/www/Retiree/storage/logs [hrsi@sun logs]$ ls -al 合計 4 drwxrwxrwx. 2 hrsi hrsi 43 10月 24 17:33 . drwxrwxrwx. 6 hrsi hrsi 62 10月 24 17:12 .. -rw-rw-rw-. 1 hrsi hrsi 14 10月 24 17:12 .gitignore -rw-rw-rw-. 1 hrsi hrsi 0 10月 24 17:33 laravel.log
どうかよろしくお願い致します。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。