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
Uh oh!
There was an error while loading. Please reload this page.
-
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/htmlto thewww-datauser. Steps:cat /etc/passwdorcat /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