How to solve laravel file_input_error - laravel-5

When I log in, this error show ->
i already give permission to src/storage
file_put_contents(/var/www/html/catalog/src/storage/framework/cache/55/f9/55f98a9ae16c0c5f7c41c2f6d5435d3f37274a71): failed to open stream: No such file or directory

Create cache directory in storage directory, and give him read & write permission to it. Error saying that your cache directory does not exists

Related

Error writing lock file: Permission denied

After connecting my NAS drive with the mount command in the nashome directory,
the following error occurs, when trying to edit or create any file in the mounted directory tree:
[ Error writing lock file ./.index.html.swp: Permission denied ]
Error Message when trying to edit the index.html file
I also tried editing the files as a root, however the same error occurs.
The permissions in the parent directory of the file are as follows:
permissions to the index.html file
Is there anyone who can explain what is happening?
I already tried deleting the nashome directory and unmounting the NAS drive and then remounting it again.
However, with no effect.

Storage Cache creates files with different owner/groups?

I am using Laravel and it works well. After updating one blade file on my local pc and deployed it with git, Laravel can't open that particular blade anymore.
file_put_contents(/var/www/vhosts/***/httpdocs/memberportal/storage/framework/views/8274d2f145c8a134eb15ccbb69c2df396814d64e.php):
failed to open stream: Permission denied (View: /var/www/vhosts/***/httpdocs/memberportal/resources/views/emails/newsletter/2019-04-2/translations/advertise/en.blade.php)
at /var/www/vhosts/***/httpdocs/memberportal/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122,
ErrorException(code: 0): file_put_contents(/var/www/vhosts/***/httpdocs/memberportal/storage/framework/views/8274d2f145c8a134eb15ccbb69c2df396814d64e.php):
failed to open stream: Permission denied at /var/www/vhosts/***/httpdocs/memberportal/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)
The folder permission and owner of the storage folder and en.blade.php are correct. However, I noticed that the owner/group of the files in the cache are different.
All caches files with owner root:root are not accessible. Any ideas why Laravel changes the ownership of cache files on my production server, when deploying with git? The storage files are ignored by git, so I do not understand how this happens.
Any advice?

Laravel New Project - Permission Denied

I am trying to setup a new Laravel site and I am running into an issue I have never had such problems with before. When loading up my site, I get the error:
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
I have edited the file permissions to 775. I don't know what else to do!
Try changing the owner of the folder:
chown -R apache:apache /var/www/html/
you should change your project folder permission
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
This error basically happens when in your project absent ../storage/logs folder. Firstly you must be check this folder exists in your project. If does not exist this folder add it and inside it .gitignore file.
/storage/logs/.gitignore
*
!.gitignore

Permission denied issue in Laravel 5.1

PHP Fatal error in laravel 5.1:
Uncaught exception 'UnexpectedValueException' with message 'The stream
or file "/var/www/html/SocialNet/storage/logs/laravel.log" could not
be opened: failed to open stream: Permission denied' in
/var/www/html/SocialNet/bootstrap/cache/compiled.php:13090\nStack
trace:\n#0 /var/www/html/SocialNet/bootstrap/cache/compiled.php(13030)
This is a log file permissions problem.
Some of the possible solutions:
give write permissions to that file
change the log file path to another you can write to
change the log output driver
disable logging
How to configure log
How to deal with log file path and permissions

Persistent Permission Denied Error

I have seen a few posts on this (and tried the recommended solutions) but they are regarding Laravel 4 - And I am on Laravel 5.
For example;
'Failed to open stream: Permission denied' error - Laravel
I get the Command "dump-autoload" is not defined error and the reason for that is explained here;
http://laravel.io/forum/12-08-2014-command-dump-autoload-is-not-defined
In the above post, composer dump-autoload was suggested. I tried it, and again this morning the same error is back;
ErrorException in Filesystem.php line
74:file_put_contents(/vagrant/source/laravel- excel/storage/
framework/sessions/8338f386fc3de7bdc8d1b6dc7ee6790f71516d98): failed
to open stream: Permission denied`
Any suggestions?
Also, try the above comments and do a
composer self update
You Have to set the permission to Read & Write
In Mac We do this by using
**sudo chmod -R o+w storage**
Storage is the name of file U want to change permission
And currently my terminal is in the same folder where my storage folder is present therefore I did not specify its address

Resources