Setting up hgwebdir.cgi
Hans Meine
meine at informatik.uni-hamburg.de
Fri Jul 25 02:47:07 CDT 2008
On Donnerstag 24 Juli 2008, Ted Pavlic wrote:
> > Even without a hgweb.config, I do not get any error. I tried various
> > combinations of relative or absolute paths in the [paths] section,
> > as well as a small [collections] entry, with various repository paths
> > within my home directory and within the htdocs-subdirectory the
> > script is in.
>
> Maybe some working examples will help?
Thanks, but I have already seen similar examples on
http://www.selenic.com/mercurial/wiki/index.cgi/PublishingRepositories
http://www.selenic.com/mercurial/wiki/index.cgi/HgWebDirStepByStep
and tried them without success.
The problem seems to be that the .cgi script does not even have read access to
the directory it lives in; our administrator sent me this snippet from the
server logs:
Traceback (most recent call last):
File ".../hgwebdir.cgi", line 49, in ?
print file('hgweb.config').read()
IOError: [Errno 13] Permission denied: 'hgweb.config'
Premature end of script headers: hgwebdir.cgi
(As you can see, this is from my own debugging code.) Obviously, Mercurial
catches all IOErrors (probably to cope with missing config files) and thus
hides this internal error?
Ciao, / / .o.
/--/ ..o
/ / ANS ooo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20080725/eb0b730b/attachment.pgp
More information about the Mercurial
mailing list