Hi,
I have noticed an apparent problem with the uhttpd CGI interface. If I build an image that does not contain
LuCI then uHTTPd fails to start my CGI code. As a result I eventually receive a "bad gateway" message in my browser.
Nevertheless uHTTPd appears to serve static content correctly.
I should point out that that my CGI code is a stand alone binary, that has the appropriate permissions set
and resides in the /www/cgi-bin directory, that also has the appropriate permissions.
Installing luci at a later point, using:
opkg install luci-mod-admin-full
(which in turn installs the package luci-base) appears to fix the problem, so I have a valid work around.
Curiously if I then remove the installed packages with
opkg remove luci-mod-admin-full
opkg remove luci-base
my CGI code continues to work.
Perhaps it is relevant that the directory /www/luci-static persists after removing these packages.
However deleting it using
rm -r /www/luci-static
(or equivalents) also has no effect on the uHTTPd CGI.
In summary: it appears that the installation of all or parts of LuCI is necessary for the correct
functioning of uHTTPd's CGI mechanism.
Has anyone else noticed similar problems?
Rick
P.S. should mention Openwrt version is BB RC3 on TP-LINK WR1043ND V2
(Last edited by rcp100 on 8 Sep 2014, 18:04)