I just encountered a small issue using fossil within a php script.  Using the php "exec()" function to run fossil -- to add a ticket to a repository -- I was unable to do it directly because fossil starts in cgi mode.

The way around was to execute fossil from a shell script which "unset"s GATEWAY_INTERFACE.  This took me a bit to figure out, and seems unnecessary.

So I suggest adding a '-nocgi' option so that it is easier to run fossil from within a cgi-script (without using fossil in cgi mode)

This fix seems to make my server not work any longer.

It is configured as a script which is executed from the server, and that server is:

<blockquote><pre>

directory:
notfound:


What is happening is a 'server misconfigured' message when I access the page now; reverting to ver cb2ff51 fixes the problem.  Adding 'cgi' as a parameter on the #! line helps, but I lose the css.