The stream or file "/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

 The stream or file "/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied


rm -f storage/logs/laravel.log
cd storage/logs
touch laravel.log
cd ../../
sudo chmod -R 777 storage/logs
sudo chmod -R 777 storage/framework
sudo chmod -R 777 bootstrap/cache
php artisan optimize:clear
php artisan clear-compiled
php artisan cache:clear
php artisan view:clear
php artisan route:clear
rm -f storage/framework/sessions/*
sudo mkdir -p storage/mysql/data


config/app.php

'debug' => (bool) env('APP_DEBUG', true),

.env

APP_DEBUG=true
APP_LOG_LEVEL=debug






No comments:

Post a Comment

React -1 ( react with ravenndra kanchi)

 react with tool chanis 45 to 50 sessions core  after 50 sessions -> some tooll chains == react with type script mern stackaplication in ...