Page 1 of 1

HOW TO: Install web interface to Linux PC

Posted: Tue Dec 31, 2019 10:43 pm
by arber333
1. Have Linux installed on your PC
2. Put inverter.zip in your desktop
3. Open xterm or applicable console
4. enter command "sudo apt-get install php5-cli"
5. then "sudo usermod -G dialout www-data"
6. and restart service by typing "sudo service apache2 restart"
7. unzip inverter.zip to desktop, all folders on desktop
8. connect USB to Serial adapter
9. in c type: "cd tools/web\ interface"
10. then type "sudo php -Slocalhost:8000"
11. Open your browser and type localhost:8000

Now enter your parameters and play with inverter. After every changed parameter you have to press enter for change to take effect.

Re: HOW TO: Install web interface to Linux PC

Posted: Wed Jan 01, 2020 9:01 am
by johu
Yery good!
You don't even need apache (step 6) as the php executable serves the site directly

Re: HOW TO: Install web interface to Linux PC

Posted: Wed Jan 01, 2020 11:41 am
by arber333
Yes but I was using Lubuntu and I think there apache service is not started by default. I just added it so no one would be for worse by this procedure.

Re: HOW TO: Install web interface to Linux PC

Posted: Wed Jan 01, 2020 4:21 pm
by johu
What I meant is that you don't need apache (or any web server) at all. "php -S" IS the web server

Re: HOW TO: Install web interface to Linux PC

Posted: Wed Jan 01, 2020 5:32 pm
by arber333
johu wrote: Wed Jan 01, 2020 4:21 pm What I meant is that you don't need apache (or any web server) at all. "php -S" IS the web server
Oh... OK then! :D