[ABANDONED] LAMP addon - Linux, Apache, MySQL PHP bundle

  • I made new version of the addon with bumped packages (php 5.6.30, httpd 2.4.25, mysql 5.7.17, phpMyAdmin 4.6.6). Anyone would like to test it (for which image)?

    Update: I just upload zips v102 ;) Next releases will be based on this.

    Edited once, last by vpeter (March 1, 2017 at 10:25 AM).


  • I made new version of the addon with bumped packages (php 5.6.30, httpd 2.4.25, mysql 5.7.17, phpMyAdmin 4.6.6). Anyone would like to test it (for which image)?

    Update: I just upload zips v102 ;) Next releases will be based on this.

    Hello,

    unfortunatelly, I bought new router to home, so I switched Mysql there (OpenWRT). So personally cant test stability :( But I will keep you precious files for the future, it could be that I will install more Rpi's to my parents for example, and then Mysql on Kodi will be needed. Or any other occassion ;)

    Thank you!

    Btw., I still very strongly believe, that this should be part of Official LibreElec addons (separatelly, or in Network Tools) :exclamation:

    Edited once, last by JimmySmith (March 3, 2017 at 10:58 AM).

  • Hello vpeter,

    I've tried to install this addon with this build.

    It's for odroid C2 64 bit kernel with 32 bit libs.

    Installation went fine but httpd won´t start.

    I you have some time can you pls make a build for this?

    Thanks!


  • i installed this one bur httpd still won't start.
    How to start lamp or httpd?


    It is started automatically after addon is installed. But installation takes some time - just wait until you see message in kodi that lamp addon is installed.

    Some instructions: OpenELEC Mediacenter - OpenELEC Forum - LAMP addon - Linux, Apache, MySQL PHP bundle (1/30)

    If for some reason daemons doesn't start you can see some info with

    Code
    systemctl status httpd
    systemctl status mysqld
    journalctl -a

  • It is started automatically after addon is installed. But installation takes some time - just wait until you see message in kodi that lamp addon is installed.

    Some instructions: OpenELEC Mediacenter - OpenELEC Forum - LAMP addon - Linux, Apache, MySQL PHP bundle (1/30)

    If for some reason daemons doesn't start you can see some info with

    Code
    systemctl status httpd
    systemctl status mysqld
    journalctl -a

    Status httpd i get this.

    httpd.service - Apache Httpd Server
    Loaded: loaded (/storage/.kodi/addons/http://service.web.lamp/system.d/httpd.service; enabled; vendor preset: disabled)
    Active: activating (auto-restart) (Result: exit-code) since Sat 2017-03-04 21:02:06 CET; 1s ago
    Process: 2918 ExecStart=/bin/sh -c exec sh /storage/.kodi/addons/http://service.web.lamp/bin/httpd.start (code=exited, status=127)

    Mar 04 21:02:06 LibreELEC systemd[1]: httpd.service: Control process exited, code=exited status=127
    Mar 04 21:02:06 LibreELEC systemd[1]: Failed to start Apache Httpd Server.
    Mar 04 21:02:06 LibreELEC systemd[1]: httpd.service: Unit entered failed state.
    Mar 04 21:02:06 LibreELEC systemd[1]: httpd.service: Failed with result 'exit-code'.

    Status mysql i get this:

    Unit mysql.service could not be found

    journalctl -a i get this:

    Mar 04 21:04:09 LibreELEC systemd[1]: httpd.service: Service hold-off time over, scheduling restart.
    Mar 04 21:04:09 LibreELEC systemd[1]: Stopped Apache Httpd Server.
    Mar 04 21:04:09 LibreELEC systemd[1]: Starting Apache Httpd Server...
    Mar 04 21:04:09 LibreELEC sh[4009]: /storage/.kodi/addons/http://service.web.lamp/bin/httpd.start: exec: line 114: /storage/.kodi/addons/http://service.web.lamp/bin
    /httpd: not found
    Mar 04 21:04:09 LibreELEC systemd[1]: httpd.service: Control process exited, code=exited status=127
    Mar 04 21:04:09 LibreELEC systemd[1]: Failed to start Apache Httpd Server.
    Mar 04 21:04:09 LibreELEC systemd[1]: httpd.service: Unit entered failed state.
    Mar 04 21:04:09 LibreELEC systemd[1]: httpd.service: Failed with result 'exit-code'.

    Mar 04 21:04:13 LibreELEC systemd[1]: mysqld.service: Service hold-off time over, scheduling restart.
    Mar 04 21:04:13 LibreELEC systemd[1]: Stopped MySQL server.
    Mar 04 21:04:13 LibreELEC systemd[1]: Starting MySQL server...
    Mar 04 21:04:13 LibreELEC sh[4026]: Running first time table setup
    Mar 04 21:04:13 LibreELEC sh[4026]: /storage/.kodi/addons/http://service.web.lamp/bin/mysqld.start: line 63: /storage/.kodi/addons/http://service.web.lamp/bin/mysql
    d: not found
    Mar 04 21:04:13 LibreELEC sh[4026]: start mysqld
    Mar 04 21:04:13 LibreELEC sh[4026]: Setting up root password...
    Mar 04 21:04:13 LibreELEC sh[4026]: /storage/.kodi/addons/http://service.web.lamp/bin/mysqld.start: exec: line 75: /storage/.kodi/addons/http://service.web.lamp/bin
    /mysqld: not found

    Edited once, last by Marciano (March 4, 2017 at 8:10 PM).

  • You obviously doesn't have addon installed correctly. Remove both folders, reboot and install again. And wait for kodi to show you that addon is installed. Also check kodi log for any errors.

    Code
    systemctl stop httpd
    systemctl stop mysqld
    rm -fr /storage/.kodi/addons/service.web.lamp
    rm -fr /storage/.kodi/userdata/addon_data/service.web.lamp
    # reboot and install addon again

  • You obviously doesn't have addon installed correctly. Remove both folders, reboot and install again. And wait for kodi to show you that addon is installed. Also check kodi log for any errors.

    Code
    systemctl stop httpd
    systemctl stop mysqld
    rm -fr /storage/.kodi/addons/service.web.lamp
    rm -fr /storage/.kodi/userdata/addon_data/service.web.lamp
    # reboot and install addon again

    Thank you vpeter id did all the step you said but httpd still won't start.

    Kodi showed that the addon is installed but after status httpd i get this:

    httpd.service - Apache Httpd Server
    Loaded: loaded (/storage/.kodi/addons/http://service.web.lamp/system.d/httpd.service; enabled; vendor preset: disabled)
    Active: inactive (dead)

    And after status mysql i get this:

    Unit mysql.service could not be found

    i checked my kodi.log but i can find anything.

    kodi.log

    Are you sure this addon is compatible with this build from raybuntu on odroid C2?

    Thanks!

  • Ok, then try this one.

    If doesn't start run this two commands in console and post result.

    Code
    LD_LIBRARY_PATH=/storage/.kodi/addons/service.web.lamp/lib /storage/.kodi/addons/service.web.lamp/bin/httpd -v
    LD_LIBRARY_PATH=/storage/.kodi/addons/service.web.lamp/lib /storage/.kodi/addons/service.web.lamp/bin/mysqld -V

  • Ok, then try this one.

    If doesn't start run this two commands in console and post result.

    Code
    LD_LIBRARY_PATH=/storage/.kodi/addons/service.web.lamp/lib /storage/.kodi/addons/service.web.lamp/bin/httpd -v
    LD_LIBRARY_PATH=/storage/.kodi/addons/service.web.lamp/lib /storage/.kodi/addons/service.web.lamp/bin/mysqld -V

    Thank you,

    I'll try this when get home.
    I let you know if it's working.

    Thank you very much!