Overview
Artifact ID: | 64c39b43eb2b9643682cd835c1d290aacd2f3362 |
---|---|
Ticket: | e49f245975f89a8a9c006ec224eed48c8ad77593
Add '-nocgi' option |
User & Date: | drh 2010-11-05 09:53:53 |
Changes
- comment changed to:
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) <hr /><i>ron added on 2010-11-05 05:46:45:</i><br /> 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> #!/path/to/fossil directory: /home/my/fossils notfound: http://somewhere.else/ </pre></blockquote> 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.