tariqbuilds / linux-dash

A beautiful web dashboard for Linux
https://afaqurk.github.io/linux-dash/
MIT License
10.4k stars 1.2k forks source link

Debian/Apache/PHP: Cannot leave Demo Mode #468

Open jaromic opened 6 years ago

jaromic commented 6 years ago

Summary:

This issue is similar to #428 and #434, but reading those issues has not helped me.

My goal is to run linux-dash in Apache/PHP configuration. I tried pointing apache to both

Either way, the result is the same - demo data is displayed instead of real data.

Steps to reproduce:

Expected behavior:

Actual behavior:

Environment:

Notes:

I also tried running the gulpfile as suggested in the other issues. It seems to block after this output (probably listening):

[13:02:31] Using gulpfile /home/php/environments/monitor.foxcraft.at/data/gulpfile.js
[13:02:31] Starting 'template-cache'...
[13:02:31] Starting 'generate-css-dist'...
[13:02:31] Starting 'watch'...
[13:02:31] Finished 'watch' after 41 ms
[13:02:31] Finished 'template-cache' after 186 ms
[13:02:31] Starting 'generate-js-dist'...
[13:02:31] Finished 'generate-css-dist' after 218 ms
[13:02:31] Finished 'generate-js-dist' after 607 ms
[13:02:31] Starting 'build'...
[13:02:31] Finished 'build' after 6.44 μs
[13:02:31] Starting 'default'...
[13:02:31] Finished 'default' after 2.29 μs

The shell API seems to return the correct JSON data (e.g. users). So the problem must be something rather straightforward somewhere in the JS.

lastsamurai26 commented 5 years ago

Same Problem. i guess this project is little bit death ?

r0max commented 5 years ago

Found the solution by carefully reading the docs (https://github.com/afaqurk/linux-dash#if-using-php) again:

...

  1. Point your web server to app/ directory under linux-dash ...

So in my case, demo.js was picked up by accessing http://HOSTNAME/linux-dash/. Real data was shown by accessing http://HOSTNAME/linux-dash/app/

lastsamurai26 commented 5 years ago

I know but it doesn't work with PHP 7.2 or 7.3. No data is read. the Dash version 1 runs ...

lastsamurai26 commented 5 years ago

i found the problem The app/server/linux_json_api.sh need 744 chmod rights

Jiab77 commented 4 years ago

@r0max solved the issue. I've pointed my webserver to / by accident and it loaded the demo data. changing to /app solved the issue.