I have developed a laravel project on one laptop using local xampp mysql and want to install it on another laptop. I am having this error: file_put_contents(/Applications/XAMPP/xamppfiles/htdocs/sfms/storage/framework/sessions/VS0cObLn8ItoKMt5HQJOlZ0srelpMLsSwm5ZQcPa): Failed to open stream: Permission: I have tried the following but they did not work:
- php artisan cache:clear
- php artisan config:clear
- manually deleted vendor\laravel\framework\src\Illuminate\Foundation\Console\ConfigClearCommand.php among others. Please, I need your assistance. Thanks in advance.
CodePudding user response:
you can run this command
sudo chown -R www-data:www-data ./storage ./bootstrap
And then use the command
sudo chmod -R 755 ./storage ./bootstrap
CodePudding user response:
Run this two command for permission.
sudo chmod -R 777 ./storage
sudo chmod -R 777 ./bootstrap
