Install LAMP, FTP and PhpMyAdmin on your Onion Omega
- 
					
					
					
					
 @Milan-Vuckovic Anything specific? I've worked through most of it, but haven't had any luck. 
 
- 
					
					
					
					
 @Collin-S Can't give you specific answer, because I was going through every setting on wiki , just to make sure. Some of the settings mentioned in this tutorial didn't work for me. Try the settings from the link I gave you, restart apache and then try again. That worked for me. 
 
- 
					
					
					
					
 @Josip-Mlakar said: ScriptAlias /php/ "/usr/bin" I, too, was able to reproduce this error, after following the instructions to the letter. Upon investigation, I found this in the error_log: "client denied by server configuration: /usr/binphp-cgi" I adjusted the line ScriptAlias /php/ "/usr/bin" to be ScriptAlias /php/ "/usr/bin/" (notice the trailing /), and it resolved the issue. Hope that helps! 
 
- 
					
					
					
					
 @Chris-MacKay Cool, ty. /php/ "/usr/bin"worked before last update, after that I didn't try to install it again. Anyways I'll update my post 
 
- 
					
					
					
					
 @Josip-Mlakar Autostarting apache. OK this is doing my head in! i create the suggested file and get this error: 'bin/sh: cant open' /etc/rc.common 
 this file doesnt exist on my system should it? where can i get it?
 HELP!!!!
 
- 
					
					
					
					
 @Andrew-Doherty Can you post the output of ls -l /etc?
 
- 
					
					
					
					
 @Boken-Lin said: 
 > this is my apache file in init.d  #!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common#! /bin/sh /etc/rc.common 
 START=12USE_PROCD=1 
 NAME=apache
 PROG=/usr/sbin/apachectlstart_service() { 
 procd_open_instance
 procd_set_param command "$PROG" start
 procd_close_instance
 }stop() { 
 /usr/sbin/apachectl stop
 }reload() { 
 /usr/sbin/apachectl reload
 }
 
- 
					
					
					
					
 @Andrew-Doherty Seems like rc.commondoes exist. It doesn't startup automatically?
 
- 
					
					
					
					
 Nope, tells me it cant find it, everything else starts OK like mysql 
 
- 
					
					
					
					
 @Andrew-Doherty It's telling you that it cannot find the /etc/init.d/apachefile or/etc/rc.commonfile? And you can show me the output that says that?
 
- 
					
					
					
					
 
 
- 
					
					
					
					
 @Andrew-Doherty Can you try running /etc/init.d/apache start?
 
- 
					
					
					
					
 I get the same error. 
 
- 
					
					
					
					
 @Andrew-Doherty Can you try replacing the content of /etc/init.d/apachewith the following:#!/bin/sh /etc/rc.common START=95 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 . <?php // Show all information, defaults to INFO_ALL 
 phpinfo();// Show just the module information. 
 // phpinfo(8) yields identical results.
 phpinfo(INFO_MODULES);?> 
 
- 
					
					
					
					
 @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 4.4.15.4 ofphpmyadmin: https://github.com/phpmyadmin/phpmyadmin/issues/11892. 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.conffile.
 Maybe you should uncomment the first and the second lines too because of dependencies.#src/gz reboot_core http://downloads.lede-project.org/snapshots/targets/ramips/mt7688/packages #src/gz reboot_base http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base #src/gz reboot_onion http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/onion ## src/gz reboot_luci http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci src/gz reboot_packages http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages ## src/gz reboot_routing http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/routing ## src/gz reboot_telephony http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/telephony src/gz omega2_core http://repo.onion.io/omega2/packages/core src/gz omega2_base http://repo.onion.io/omega2/packages/base src/gz omega2_packages http://repo.onion.io/omega2/packages/packages src/gz omega2_onion http://repo.onion.io/omega2/packages/onionopkg update
 opkg find apache
 opkg info apache
 opkg install apacheGood luck! 
 
