I'm quite new with openwrt, I managed to get it work on a cheap "usb HDD with wifi" (this U25AWF thing).
I'm now trying to get PHP working (I want a web based file browser). I installed PHP using these docs:
Set up a LAMP webserver stack (until the end of the PHP section). I also followed that php guide from openwrt.org, but when I do
echo "<?php phpinfo(); ?>" > /srv/www/index.php
I got the error
Error relocating /usr/bin/php-cgi: explicit_bzero: symbol not found
logread displays daemon.err uhttpd: Error relocating /usr/bin/php-fcgi: explicit_bzero: symbol not found
I wanted to upgrade my firmware, but there is no one on the "Table of Hardware: Firmware downloads", the firmware I got was found on an old forum (https://forum.archive.openwrt.org/viewtopic.php?id=61854&p=3, the one build by @anon69880279).
Does someone know a way to get php7 working with uhttpd without having to made a new firmware ?
Im quite afraid of building a new bin image since I'm just beginning to understand openwrt stuff...
Should I move this topic elsewhere ?
Might want to recheck your references as it looked to me as if it was supported on 18.06.1. Admittedly, the page doesn’t render too well on my phone, but I think that’s what I saw. That will at least get you current.
Oh, I forgot to mention, the firmware available on the table of hardware is not the good one:
Device u25awf not supported by this image
Supported devices: u25awf-h1
more info on my version:
Linux OpenWrt 4.9.87 #0 Tue Mar 27 17:25:32 2018 mips GNU/Linux
OpenWrt SNAPSHOT r6567-db893ec7f0 / LuCI Master (git-18.088.49307-90ed423)
@jeff, what do you mean by "Check your references ?"
That the ToH pages seemed to state that the device was supported with releases. Since I don't see the message you've posted in the git commit initially supporting the device, I'm guessing that came from sysupgrade or LuCI?
Build instructions seem to be in the thread you linked, at post #71 at least. If you're having problems with packages, you'll likely need a full build chain to resolve them.
I'd also look into more robust ways to serve content as not only is
uhttpd far from secure and robust, but also PHP and MySQL may exhaust the 64 MB or RAM on that device, and MySQL will thrash that flash, if that's where you're going to put the database. If you want a "web based file browser", enabling auto-generated indexes on a modern web server will accomplish that. Exposing any of this to either the general Internet, or to any network that is not fully trusted (which includes any 802.11 network), has significant security implications and potential for abuse (hijacking for other purposes).
Thanks for the advices. I'm planning to just run something like navphp. I don't want sql for now.
I suppose I will build a new firmware...