Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Bastian Bittorf
* Pratik Prajapati [29.10.2015 12:41]: > So how to get uhttpd logs ? 1) run the daemon in foreground: look out for the exact option string with 'ps'. here i have to run e.g.: /usr/sbin/uhttpd -f -h /www -r EG-labor-AP -c /etc/httpd.conf -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -E /cgi-bin-404

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
One more thing, cgilua's makefile in buildroot is having luarocks rule to compile it but on openwrt i have just copied its makefile ( https://github.com/keplerproject/cgilua/blob/master/Makefile) changes (not used luarocks) On Thu, Oct 29, 2015 at 4:51 PM, Pratik Prajapati < pratik.prajapat...@gma

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
> > As expected, so its not actually a standalone CGI program but a script > similar to a PHP file. I have .lua for backend operation of .lp You need to associate an interpreter with the *.lp extension which is > able to process LuaPages. Not sure if such an interpreter exist, consult > the Kepl

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Jo-Philipp Wich
Hi, > ./index.lp: line1: can't open ?lua: no such file > ./index.lp: line2: syntax error: unexpected word (expecting ")") As expected, so its not actually a standalone CGI program but a script similar to a PHP file. > How to support LuaPages in uhttpd ? You need to associate an interpreter with

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
Running .lp on shell gave me following error: ./index.lp: line1: can't open ?lua: no such file ./index.lp: line2: syntax error: unexpected word (expecting ")") How to support LuaPages in uhttpd ? Same lua page is working on buildroot using uhttpd. On Thu, Oct 29, 2015 at 4:29 PM, Jo-Philipp Wi

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Jo-Philipp Wich
Hi, can you execute this .lp file on the shell? uhttpd is a cgi server, it executes scripts as commands so they need to be world-readable and executable. LuaPages appear to be specific to CGILua or the Kepler project, uhttpd does not support this syntax out of the box. ~ Jow

[OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
Hi, I am trying to access a lua web page (.lp) hosted using uhttpd server in openwrt installed on embedded board but i am getting following error: Bad GatewayThe process did not produce any response I checked on internet and there is no information for this error, i think may be i can get some