database_functions.php - failed to open stream: Permission denied - sorry, an error occurred

118 views
Skip to first unread message

Lars Müller

unread,
Jan 27, 2022, 7:53:14 AM1/27/22
to ResourceSpace
Hello! If I go to systemconfiguration, I immediately get this error message:

Bildschirmfoto 2022-01-27 um 13.49.04.png

/var/www/resourcespace/include/database_functions.php line 649: file_put_contents(/var/www/resourcespace/include/../filestore/tmp/querycache/schema_059702eed3a685cff609c6ed29b9fcf8_f4bc834d1a85620fec984f73d9be47e7.json): failed to open stream: Permission denied

Line 649 in database_functions.php is: ffile_put_contents($cache_file, json_encode($cachedata));

Could somebody help me to fix this, please?
Best Regards, Lars

reidb...@gmail.com

unread,
Jan 27, 2022, 9:55:30 AM1/27/22
to ResourceSpace
Try to set the permissions on your temp directory is owned by the webserver user. For example if you're running Apache on Ubuntu: 
chown -R www-data:www-data /var/www/resourcespace/filestore/tmp

Lars Müller

unread,
Jan 28, 2022, 4:11:40 AM1/28/22
to ResourceSpace
It worked! Thank you so much!!!!!!! Have a nice weekend!

Best Regards, Lars

Reply all
Reply to author
Forward
0 new messages