On Wed, Jul 29, 2015 at 5:28 PM, Paul Pereira <[email protected]> wrote:

> It may be worth mentioning in the CGI setup instructions that
> Fossil/sqlite needs to be able to create temporary files for rollback logs
> in some manner particular to the OS, such as by writing to /tmp.
>
> In my case, I installed Fossil according to the standard chroot procedure
> in OpenBSD for CGI applications, by placing the CGI script in
> /var/www/cgi-bin.  Sqlite failed to create a temporary file and attempted
> to create one in the script's current working directory, (/var/www)/cgi-bin
> before failing.  The error message suggested that Fossil needed write
> access to the /cgi-bin directory.  This is a bad idea.  I was able to get
> Fossil to work correctly by providing (/var/www)/tmp.
>

It's not common practice (for me, at least) to put the repo file in a path
reachable by www clients. On my hoster all of my CGI-hosted repos live in
some dir under my home dir, writable by my account, the CGI scripts all
point to those, and sqlite writes its temp files there (unless i'm sorely
mistaken and it's using /tmp). It sounds to me like the message is just a
bit vague/generic.


> The current permissions requirements state:
>
>    - The Fossil binary must be readable/executable, and ALL directories
>    leading up to it must be readable by the process which executes the CGI.
>    - ALL directories leading to the CGI script must also be readable and
>    the CGI script itself must be executable for the user under which it will
>    run (which often differs from the one running the web server - consult your
>    site's documentation or administrator).
>    - The repository file AND the directory containing it must be writable
>    by the same account which executes the Fossil binary (again, this might
>    differ from the WWW user). The directory needs to be writable so that
>    sqlite can write its journal files.
>
>
Can you suggest specific improvements to that (IIRC those instructions were
written over 5 years ago)?

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to