The following error occurred at runtime:
ErrorExceptioninFilesystem.php line 81:file_ put_ contents(/var/www/mysite/bootstrap/cache/services.json): failed to open stream: Permission denied
It can be seen from the above error that the cache directory does not have write permission, so write permission to this directory:
solution:
#sudochmod-R777/var/www/mysite/bootstrap/cache
The difference between permissions 777 and 755:
777 is that all users have execute, read and write permissions, 755 is that root can execute permissions. The user of the file and other group users do not have execute permissions
Similar Posts:
- [Solved] PHP write file permission failure: file_put_contents: failed to open stream: Permission denied
- Android Error: open failed: EACCES (Permission denied)
- SSH login error: “warning: unprotected private key file” problem
- [Solved] WARN checkPermissions Missing write access to /usr/local/lib/node_modules
- [Solved] npm install Error: github requires permissions, Permission denied (publickey)
- [Solved] org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
- ERROR 1044 (42000): Access denied for user ‘root’@’localhost’
- [Solved] SSH connect error: permission denied, please try again
- SU: /BIN/BASH: PERMISSION DENIED [How to Solve]
- [Solved] su: warning: cannot change directory to : Permission denied ;-bash: bash_profile: Permission denied