I have a scan server that I wrote. I would love to run it on LibreElec but also need HTTP server with PHP support.
running on x86_64
I say "ditto"
Mark
I have a scan server that I wrote. I would love to run it on LibreElec but also need HTTP server with PHP support.
running on x86_64
I say "ditto"
Mark
Have a look here: LAMP addon - Linux, Apache, MySQL PHP bundle
Should that run on port 80?
I am running the latest Leia RC5 build of LibreElec and it appears to not work.
It runs on port 4080. But you can change that in httpd.conf file.
Nothing on 4080 either. Maybe it needs updating for newer LibreElec x86-64?
Check the addon logs to see what is going on.
Week or so back it was working on LE master.
12:18:39.221 T:140034942408448 DEBUG: -->Python Interpreter Initialized<--
12:18:39.222 T:140034942408448 DEBUG: CPythonInvoker(18, /storage/.kodi/addons/http://service.web.lamp/default.py): the source file to load is "/storage/.kodi/addons/http://service.web.lamp/default.py"
12:18:39.222 T:140034942408448 DEBUG: CPythonInvoker(18, /storage/.kodi/addons/http://service.web.lamp/default.py): setting the Python path to /storage/.kodi/addons/service.web.lamp:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
12:18:39.222 T:140034942408448 DEBUG: CPythonInvoker(18, /storage/.kodi/addons/http://service.web.lamp/default.py): entering source directory /storage/.kodi/addons/service.web.lamp
12:18:39.222 T:140034942408448 DEBUG: CPythonInvoker(18, /storage/.kodi/addons/http://service.web.lamp/default.py): instantiating addon using automatically obtained id of "service.web.lamp" dependent on version 2.1.0 of the xbmc.python api
12:18:39.223 T:140034942408448 INFO: CPythonInvoker(18, /storage/.kodi/addons/http://service.web.lamp/default.py): script successfully run
12:18:39.223 T:140034942408448 DEBUG: onExecutionDone(18, /storage/.kodi/addons/http://service.web.lamp/default.py)
12:18:39.225 T:140034942408448 INFO: Python interpreter stopped
12:18:39.225 T:140034942408448 DEBUG: Thread LanguageInvoker 140034942408448 terminating
This is kodi log and it will tell you nothing. Go to /storage/.kodi/userdata/addon_data/service.web.lamp/ and look there for httpd log file.
208 lines all the same
httpd: Syntax error on line 143 of /storage/.kodi/userdata/addon_data/http://service.web.lamp/srvroot/conf/httpd.conf: Cannot load libphp5.so into server: librtmp.so.1: cannot open shared object file: No such file or directory
Remove everything and install again.
no , thanks anyway.
I can not believe it is php5 anyway.
seems any modern distro now has php7
Plenty of web servers still run PHP5, because the impact of changing to PHP7 would be too enormous.Poorly written webpages would crash.
tekno LE is a fixed function mediacentre client-oriented distro. If you want to develop php apps and run web services .. you are using the wrong distro. Use Ubuntu or Armbian etc. which has all the package management features you need.
Chewitt , I understand that however if someone here seems to have an "official" release it seems it should work, even if it is php5 . I think ther real issue is it is not ready for LE 9
Use a docker container with nginx and whatever php version you want - there's bound to be one.
if someone here seems to have an "official" release it seems it should work, even if it is php5 . I think ther real issue is it is not ready for LE 9
There is no "official" release. Only what I provide.
And I just tested it on LE9 Generic (just for you) - service.web.lamp-9.0.105-Generic.x86_64.zip. Works as always:
##############################################
# LibreELEC #
# https://libreelec.tv #
##############################################
LibreELEC (official): 9.0.0 (Generic.x86_64)
LibreELEC:~ # php -i | head -n4
phpinfo()
PHP Version => 5.6.39
System => Linux LibreELEC 4.19.17 #1 SMP Tue Jan 29 11:29:15 EST 2019 x86_64
LibreELEC:~ # netstat -lntp | grep 4080
tcp 0 0 0.0.0.0:4080 0.0.0.0:* LISTEN 1005/httpd
LibreELEC:~ # netstat -lntp | grep 3306
tcp 0 0 :::3306 :::* LISTEN 924/mysqld
924 root 0:00 /storage/.kodi/addons/service.web.lamp/bin/mysqld --defaul
1005 root 0:00 /storage/.kodi/addons/service.web.lamp/bin/httpd -d /stora
1006 nobody 0:00 /storage/.kodi/addons/service.web.lamp/bin/httpd -d /stora
1007 nobody 0:00 /storage/.kodi/addons/service.web.lamp/bin/httpd -d /stora
1013 nobody 0:00 /storage/.kodi/addons/service.web.lamp/bin/httpd -d /stora
1014 nobody 0:00 /storage/.kodi/addons/service.web.lamp/bin/httpd -d /stora
1015 nobody 0:00 /storage/.kodi/addons/service.web.lamp/bin/httpd -d /stora
Display More
So I would say you are doing it wrong
Works as always
service.web.lamp-9.0.105-LE.S905.arm.zip
I'm just checking... Is this the new Raspberry Pi 0/1/2/3 variant of your LAMP package?
Never mind, i haven't had my daily coffee intake yet.