Laravel file_put_contents error on shared hosting

Martin Yakimov

I created my Laravel app and I am uploading on shared hosting. It's show error:

file_put_contents(D:\xampp\htdocs\Laravel\storage\framework/sessions/FlEPsHNW7Rggfb9wvDZ71K7D2YQNNQK0epRBRQnW): failed to open stream: No such file or directory

This is folder from my computer. I read same problems but I am on shared hosting and I don't have a composer or artisan for operations.

Thanks in advance!

Marcin Nabiałek

What you should do is looking for occurrences of xampp in your application because it seems you have sessions are written to same folder that you have on your machine and obviously such directory doesn't exist on web server.

Especially make sure you in session.php you have:

'files' => storage_path('framework/sessions'),

and remove config cache from bootstrap/cache directory just in case

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Error 404 in a shared hosting in Laravel 8

Laravel 5.5 Error 500 in Cpanel Shared Hosting

403 error on Ajax Post Laravel shared hosting

Cannot access symlinked file in shared hosting in Laravel

Laravel on shared hosting with Subdomain

htaccess with Laravel on shared hosting

Parse error after deploy Laravel 5.1 on shared hosting

Laravel - Schedule queues returns a 503 error on shared hosting

Laravel and shared hosting CURL not working

Shared hosting: WordPress/laravel 5

Sending mail with Laravel on shared hosting

Deploying Laravel 5.4 to Shared Hosting

Laravel deployment shared hosting subdomain

Laravel 5 error 500 server error. Uncaught ErrorException: file_put_contents(/var/www/laravel/storage/framework/views/

Laravel server hosting error

Laravel9 deployment on shared hosting , New added API Routes not found Postman 404 Error

Deploy a laravel application to shared hosting and get "No application encryption key has been specified." error

Shared Hosting Laravel 8 Hosting problem: Symlink is not working

Hosting two different applications running on Laravel 4 on shared hosting

Why new installed laravel not work on shared hosting?

Laravel, Using a cPanel shared hosting if possible?

Laravel | Shared hosting routes not working properly

Displaying laravel stored images on shared hosting

Laravel schedule job on cpanel shared hosting not working

Laravel project with bitbucket pipeline on shared hosting

Laravel 5 – Clear Cache in Shared Hosting Server

Laravel 4.2 support for PHP 5.3 on shared hosting

Laravel 5.3 - Clear config cache in shared hosting

How to Deploy Laravel 5 on shared cPanel hosting