Solved: permission denied for PHP container to read stream #83
HugoFara
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In rare cases, after installing the PHP container with Docker, you can run into the issue
PHP Warning: require_once(inc/session_utility.php): Failed to open stream: Permission denied in /var/www/html/index.php on line 72
. LWT will then crash.To solve it you need to add reading permission for
/var/www/html
to thewww-data
user. Steps:cat /etc/passwd
orcat /etc/passwd | grep www-data
.chown -R {gui}:{gui} /var/www/html
.TADAAA! Things may run smooth now!
Beta Was this translation helpful? Give feedback.
All reactions