I've built a small site for a proof of concept within Homestead.
I'm trying to get it to work on the client server which is running on CentOS 7 (not a flavour of unix I have worked on before).
I am getting the following error:
PHP Fatal error: Uncaught exception 'UnexpectedValueExveption' message 'The stream or file "/var/www/html/storage/logs/lumen.log" could not be opened: failed to open stream: Permission denied'
The html and sub directories are owned by apache:apache and the permission son the storage and subfolders are set to 0777
As far as I can see that should be enough to write to the file/directory.
Anyone had a similar issue and can shed some light on this?
I still have the problem where Monolog is unable to write to the log file as described above but that is another symptom.
I am getting an UnexpectedValueException when trying to render a view.
in my routes.php if I
return 'this is some text!';
then it works ok
if I return
return view('path.to.view');
then I get the error and then Monolog can't log it.
I have opened permission right up for the public and resources and storage folders.
This all works fine locally - just breaks on the client server.
This is a blade issue. If I call a view without Blade templating then it render sok.
If I call a view that uses blade templating then i get the error.
Is there some config I need to set for Blade to work?
Did you ultimately find what is wrong here? I also think that the permissions are not supposed to be that crazy.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community