femto-code/Raspberry-Pi-Dashboard

Lastest release (v0.10) "unable to open file"

aidanc2030 opened this issue · 3 comments

After a git clone to the /var/www/html directory, going to the URL just comes up with:

Warning: fopen(local.config): failed to open stream: Permission denied in /var/www/html/dash/backend/Config.php on line 13 Unable to open file!

The issue doesn't happen in v0.9.2, so git reset --hard ffe6491a7a1b0228df617751ba592c611d830a58 fixes it for now.

Updated

Thank you for creating this issue!
From what you experience I can imagine a common permission error existing within your /var/www/html folder. This results in the situation where the user responsible for web server (e.g. www-data) does not have rights to create the local config file for saving your dashboard adjustments (your custom thresholds, password etc.).

Please see section Valid permissions on Readme: here

Please try the commands indicated there by running them in a terminal. Hope to be helpful!

Thanks, that fixed it for me!

Glad to here!

I will add user-friendly help information for (missing) permissions and a auto-detection in the upcoming v1.0.0 release.