Hi,

Referring http://www.fossil-scm.org/index.html/doc/tip/www/selfhost.wiki,
I set up cgi page for a fossil repository.
But setting  (/setup_settings) and timeline (/timeline) page returned the
error below.

"cannot locate home directory - please set the HOME environment variable"

So, I checked 2 things:
`echo $HOME` returned my home directory, but cgi using getenv("HOME")
returned `null`.  (db.c
http://www.fossil-scm.org/fossil/artifact/514eeeeff48b8180bbfd20aceef4278e12af12c4uses
getenv("HOME"))

And. I added 2 lines below to .htaccess in the same directory as fossil cgi
exists for adding the environmental variable.

RewriteEngine On
RewriteRule .* - [E=HOME:/home/myname/fossil_setting]

Additionally, I set the permission of that directory 777 because fossil
required writable permission.
Fortunately, this solved the problem superficially.

However, I'm afraid that the .fossil setting is stored in $HOME directory
when I use console and
another.fossil setting is stored in the directory set above when I use CGI
UI.
That means global settings are duplicated and not shared between two
environments.
On the other hand, setting the same directory as $HOME in .htaccess and
setting permission of $HOME directory 777 is undesirable.

I couldn't find explanation about this problem in fossil documentation.
Is there any correct way to set "HOME" environmental variable?

Fossil version: 1.27 (Latest Stable 2013-09-11 11:43:49)
Server version: Apache/2.2.22 (Ubuntu)
OS: Ubuntu 12.04.2 Server LTS

Sincerely,
Akihiro Kameda
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to