![]() |
Optware.Haserl HistoryHide minor edits - Show changes to markup March 23, 2008, at 07:33 PM
by -- matching os.date() result
Changed lines 59-60 from:
Hello World from Haserl and Lua to:
Hello World from Haserl and Lua on Sun Mar 23 10:26:54 2008 March 23, 2008, at 07:30 PM
by -- added os.date() in lua.cgi
Changed line 53 from:
<% io.write ("Hello World from Haserl and Lua" ) %>
to:
<% io.write("Hello World from Haserl and Lua on " .. os.date()) %>
March 23, 2008, at 06:30 PM
by -- chmod
Added lines 21-22:
# mkdir -p /opt/share/www/cgi-bin/ Added lines 34-35:
# chmod +x /opt/share/www/cgi-bin/test-haserl.cgi Added lines 47-48:
# mkdir -p /opt/share/www/cgi-bin/ Added lines 56-57:
# chmod +x /opt/share/www/cgi-bin/test-haserl-lua.cgi March 06, 2008, at 07:57 AM
by --
Changed line 54 from:
edit by Rudolf Reuter, reuterr(at)web.de 2008-03-05:\\ to:
edit by Rudolf Reuter, reuterr (at) web.de 2008-03-05:\\ March 06, 2008, at 07:57 AM
by --
Changed line 54 from:
edit by Rudolf Reuter, reuterru@arcor.de 2008-03-05:\\ to:
edit by Rudolf Reuter, reuterr(at)web.de 2008-03-05:\\ March 06, 2008, at 07:55 AM
by --
Changed line 56 from:
I had to change the user admin in /opt/etc/mini_httpd.conf to a local existing user.\\ to:
I had to change the user "admin" in /opt/etc/mini_httpd.conf to a local existing user.\\ March 06, 2008, at 07:54 AM
by --
Changed lines 55-57 from:
Optware Haserl can also be used on SlugOS BE by installing with ipkg-opt. to:
Optware Haserl can also be used on SlugOS BE by installing with ipkg-opt. March 06, 2008, at 07:53 AM
by --
Changed lines 54-59 from:
edit by Rudolf Reuter, reuterru@arcor.de 2008-03-05:
to:
edit by Rudolf Reuter, reuterru@arcor.de 2008-03-05: March 06, 2008, at 07:50 AM
by --
Added line 59:
March 06, 2008, at 07:48 AM
by --
Changed lines 57-58 from:
to:
March 06, 2008, at 07:47 AM
by --
Changed lines 57-58 from:
to:
March 06, 2008, at 07:46 AM
by --
Added line 58:
March 06, 2008, at 07:45 AM
by --
Added line 53:
Changed lines 55-59 from:
Optware Haserl can also be used on SlugOS BE by installing with ipkg-opt. I had to change the user "admin" in /opt/etc/mini_httpd.conf to a local existing user. Be aware to give the cgi-bin script execute rights, otherwise you will get the error message: to:
Deleted line 64:
March 06, 2008, at 07:41 AM
by --
Added line 57:
March 06, 2008, at 07:40 AM
by --
Changed lines 58-65 from:
Output of w3m: 500 Internal Error Something unexpected went wrong running a CGI program. ттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттт mini_httpd/1.19 19dec2003 to:
Output of w3m: 500 Internal Error Something unexpected went wrong running a CGI program. ттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттт mini_httpd/1.19 19dec2003 March 05, 2008, at 06:01 PM
by --
Added line 54:
Added line 65:
March 05, 2008, at 05:59 PM
by --
Added lines 53-64:
edit by Rudolf Reuter, reuterru@arcor.de 2008-03-05: Optware Haserl can also be used on SlugOS BE by installing with ipkg-opt. I had to change the user "admin" in /opt/etc/mini_httpd.conf to a local existing user. Be aware to give the cgi-bin script execute rights, otherwise you will get the error message: Output of w3m: 500 Internal Error Something unexpected went wrong running a CGI program. ттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттттт mini_httpd/1.19 19dec2003 End of edit September 07, 2007, at 03:05 AM
by -- added
Changed lines 1-2 from:
haserl is a small program that uses shell or Lua script to create dynamic content with CGI scripts. It is intended for environments where PHP or ruby are too big. On nslu2, because of the limited RAM resource, CGI can sometimes outperform other solutions. The webif project for openwrt firmware uses haserl to build web interfaces for routers. to:
Haserl is a small program that uses shell or Lua script to create dynamic content with CGI scripts. It is intended for environments where PHP or ruby are too big. On nslu2, because of the limited RAM resource, CGI can sometimes outperform other solutions. The webif project for openwrt firmware uses haserl to build web interfaces for routers. September 07, 2007, at 03:04 AM
by -- added
Added lines 1-52:
haserl is a small program that uses shell or Lua script to create dynamic content with CGI scripts. It is intended for environments where PHP or ruby are too big. On nslu2, because of the limited RAM resource, CGI can sometimes outperform other solutions. The webif project for openwrt firmware uses haserl to build web interfaces for routers. To use haserl, you also need a web server that supports CGI. Most web servers do. Below minihttpd is used as an example. # ipkg update # ipkg install haserl minihttpd To test the dynamically generated web page, w3m text browser is used. # ipkg install w3m Make sure minihttpd is started. By default it listens on port 8084, with /opt/share/www as web root. # /opt/etc/init.d/S80mini_httpd start # test -f /opt/share/www/index.html || echo index > /opt/share/www/index.html $ w3m -dump http://localhost:8084/ index And /opt/share/www/cgi-bin is the directory to put your CGI scripts. # cat <<EOF > /opt/share/www/cgi-bin/test-haserl.cgi #!/opt/bin/haserl content-type: text/plain hello world from haserl! date: <% date %> env: <% env %> EOF # w3m -dump http://localhost:8084/cgi-bin/test-haserl.cgi hello world from haserl! date: Thu Sep 6 19:59:56 PDT 2007 env: GATEWAY_INTERFACE=CGI/1.1 ... Both haserl without lua and with lua are built, testing a lua CGI script. # cat <<EOF > /opt/share/www/cgi-bin/test-haserl-lua.cgi
#!/opt/bin/haserl-with-lua --shell=lua
content-type: text/plain
<% io.write ("Hello World from Haserl and Lua" ) %>
EOF
$ w3m -dump http://localhost:8084/cgi-bin/test-haserl-lua.cgi
Hello World from Haserl and Lua
|