First I found out where the newlisp binary is:
$ ls -l `which newlisp`
lrwxrwxrwx 1 root root 14 Jun 26 23:37 /usr/bin/newlisp -> newlisp-10.3.4
This tells me that the binary is at /usr/bin/newlisp-10.3.4
I use the setcap command to allow binding it to ports below 1024:
$ sudo setcap 'cap_net_bind_service=+ep' /usr/bin/newlisp-10.3.4
Now I change the start script example-site/newlispServer so it looks like this:
Code: Select all
#!/bin/sh
NEWLISP_REDIRECTION="./dragonfly-framework/newlisp-redirection.lsp"
if [ ! -f $NEWLISP_REDIRECTION ] ; then
echo "ERROR: cannot find file: $NEWLISP_REDIRECTION"
exit 1
fi
echo "If all goes well visit http://localhost in your browser"
newlisp "$NEWLISP_REDIRECTION" -http -d 80 -w . $*
Now the example site runs on http://localhost