Hello @joeblog,
Am most impressed by your work. As an amateur web-prologian trying to teach myself how to build a web site in Prolog, I installed your tutorial on Ubuntu 18.04 and tried to run it. However, I received a “permission denied” (as non-root) and a “Refusing to run HTTP server as root” message when I switched to su. Here is the output of the ‘swipl server.pl’ command for non-root and root executions:
Non-root:
"(base) aldn@aln-sys:~/plserver/ajax$ swipl server.pl --port=3030 --pidfile=http.pid
ERROR: open/3: No permission to open source_sink `‘http.pid’’ (Permission denied)
Root:
(base) root@aln-sys:/home/aldn/plserver/ajax# swipl server.pl --port=3030 --pidfile=http.pid
ERROR: ‘Refusing to run HTTP server as root’: No permission to open server `http’
Obviously, I must have missed something basic, but can’t see what it is. I would therefore be very grateful to you if you kindly could suggest me any possible way of solving this problem.
With my best regards in the meantime.