Do you use or administer OpenEMR? Take the General Satisfaction Survey to help improve the product

File_get_contents() permission denied

That’s my problem:
PHP Warning: file_get_contents(/var/www/html/openemr/sites/default/documents/logs_and_misc/methods/sixa): failed to open stream: Permission denied

And that’s the permissions for this folder/files:
[root@vps-123-x /var/www/html/openemr/sites/default/documents/logs_and_misc/methods] # ls -al
total 20
drwxrw-rw- 2 www-data www-data 4096 Jan 20 16:38 .
drw-rw-rw- 3 www-data www-data 4096 Jan 19 22:33
-rwxrw-rw- 1 www-data www-data 63 Jan 19 22:33
-rw-rw-rw- 1 www-data www-data 155 Jan 20 16:38 sixa
-rw-rw-rw- 1 www-data www-data 155 Jan 20 16:38 sixb

I checked the owner of the file and folder it’s OK and also try to set chmod 755 to sixa and sixb, but it doesn’t works…

OpenEMR Version
I’m using OpenEMR version 6

I’m using: Chrome

Operating System
I’m using: Ubuntu 16

hi @fabri, the parent directories have to have user x permission so the webserver can access the files

1 Like