i cloned a laravel project from bitbuket . also run all necessary command to get all vendors files like :
composer dump-autoload
composer install
php artisan cache:clear
php artisan clear-compiled
also deleted the file /public_html/bootstrap/cache/config.php
but i am getting the below error when i try to launch the project :
file_put_contents(C:\xampp\htdocs\laravelstart\storage\framework/sessions/sRPb1A6BKrshhH8HPAR2fXVEcCH4daYCLxgo4b8M): failed to open stream: No such file or directory
rm -rf bootstrap/cache/config.php (delete)
php artisan config:cache
There can be various reasons why that error happened.
Try to delete all cached files.
rm -rf bootstrap/cache/config.php
php artisan config:clear
php artisan cache:clear
php artisan config:cache
If the above actions does not work, then try this again.
Give permission to the directories in storage directory:
app, framework, logs
sudo chmod -R 777 storage/app
sudo chmod -R 777 storage/framework
sudo chmod -R 777 storage/logs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With