Install LAMP, FTP and PhpMyAdmin on your Onion Omega

  • I get the same error.

  • @Andrew-Doherty Can you try replacing the content of /etc/init.d/apache with the following:

    #!/bin/sh /etc/rc.common
    start() {
        sleep 5
        apachectl start
    restart() {
        apachectl restart
    stop() {
        apachectl stop

  • Hi @Boken-Lin , found the problem! I use notepad++ to produce the file in windows when it saves it notepad uses windows line returns. Switching this to unix in edit - EOL conversion it then started to work as expected. Thanks for your help, I hope this helps others in a similar position.

  • @Andrew-Doherty That's fantastic! Thanks for letting us know the solution :)

  • i facing error while running the phpmyadmin

    Fatal error: Cannot redeclare class phpseclib\Crypt\Random in /usr/share/htdocs/phpmyadmin/libraries/phpseclib/Crypt/Random.php on line 43

    but if i check the php version and i will get an normal output without error .


    // Show all information, defaults to INFO_ALL

    // Show just the module information.
    // phpinfo(8) yields identical results.


  • @chee-sum-kong Hmmm, seems that there might be some bug in the code for phpmyadmin. According to this post, this bug should have been addressed in version of phpmyadmin: Can you check which version you are running? We may need to manually upgrade the package to a newer version.

  • Why can't I install the apache?
    The following message appears :

    root@Omega-****:/# opkg install apache
    Unknown package 'apache'.
    Collected errors:

    • opkg_install_cmd: Cannot install package apache.

  • @dawn-dew
    Uncomment the fifth line of the /etc/opkg/distfeeds.conf file.
    Maybe you should uncomment the first and the second lines too because of dependencies.

    #src/gz reboot_core
    #src/gz reboot_base
    #src/gz reboot_onion
    ## src/gz reboot_luci
    src/gz reboot_packages
    ## src/gz reboot_routing
    ## src/gz reboot_telephony
    src/gz omega2_core
    src/gz omega2_base
    src/gz omega2_packages
    src/gz omega2_onion

    opkg update
    opkg find apache
    opkg info apache
    opkg install apache

    Good luck!

  • @György-Farkas
    Thank you very much.)
    Thanks to you, the apache was installed.

    Another problem came up.

    root@Omega-****:~# apachectl start
    (125)Address in use: AH00072: make_sock: could not bind to address
    no listening sockets available, shutting down
    AH00015: Unable to open logs

  • @dawn-dew
    You have an Omega2(+). Your starting point - this whole thread up to your post, including the tutorial(s) - is related to Omega ie. the previous version. I supposed you know this. So probably this is not an out-of-the-box solution for you.

    opkg info apache has some busybox warning.
    There is a running web server (uhttpd) on Omega2 by default.
    You should inspect the config file(s) extensively.

Looks like your connection to Onion Community was lost, please wait while we try to reconnect.