Every time I go to http://localhost on my browser, after running ./vendor/bin/sail up,
I keep getting this error
ErrorException
file_put_contents(C:\wamp64\www\catholic_group_of_schools_entrance_platform\storage\framework/sessions/NMNV89ihi6pcYr140olVDp7iPx4ed2ML4Eh8ik7q): Failed to open stream: No such file or directory
Related
When i try to run a laravel application, I get this error :
file_put_contents(C:\xampp\htdocs\academy\storage\framework/sessions/yYtLcWMJlFDNXQf3lfs5Pfv0ImwmiwjvhW8Oxkyy):
failed to open stream: No such file or directory
I have installed composer, php every thing.
Database is created and when i give command in power shell it is showing server started but when i try to open it through crome it give me this error.
When I navigate to Laravel app on my CentOS server, it gives HTTP ERROR 500
So, when I checked my server error log, it says this error
PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107\nStack trace:\n#0
I have already set 777 permission to storage and bootstrap directories.
This very Laravel application runs fine on another server. So, what's the big deal here ?
This error can be fixed by disabling SE-Linux.
Check if it has been enabled by typing...
$ sestatus
So, disable it by typing...
# setenforce 0
It is said that the system needs to be restarted to to take effect the changes.
However, for me, restarting Apache was enough and fixed the problem :-)
Hope this helps!
If your application is laravel and you use sail so add these lines in end of .env file:
WWWGROUP=1000
WWWUSER=1000
I know its late to answer but maybe helps for others.
http://pyrocms.com/documentation/pyrocms/v3.1#installation/installing-pyrocms/running-the-installer
Getting this error
"An exception has been thrown during the rendering of a template ("file_put_contents(app/default/assets/admin/theme.css): failed to open stream: No such file or directory") in "theme::partials/metadata" at line 24."
What I tried so far?
- changing the permission of storage and bootstrap\chache to 777
- php artisan asset:clear
You need to set the following directories writable by your web server:
storage
public/app
bootstrap/cache
In your case, its public/app that you have missed.
I am adding record via browser in redis cache with predis class it added and no error getting.
When executing from PHPUnit I get the next error:
PHPUnit_Framework_Exception: include_once(Predis\ClientInterface.php): failed to open stream: No such file or directory
However same application, same unit test,same configuration works fine in my colleague's machine.
When I access my Centos production server, I got this debug message:
ErrorException
file_put_contents(/var/www/projectplanner/releases/20140610043651/app/storage/meta/services.json): failed to open stream: Permission denied
I have already checked many similar topics on the matter but no good (like chmod 777, clear php artisan cache...)
Here is the ls -l of my production server