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

server laravel application

 asset_url = domain/public chmod -R 755 public/admin/ composer dump-autoload get the application from hostinger