j. van den hoff
2013-09-29 14:59:02 UTC
hi list,
disclaimer: I have no experience whatsoever with apache, cgi, and
webservers in general. so maybe I'm missing something stupid...
I'm trying for the first time to setup a fossil repo for http access via
the cgi route on macosx 10.8.4. if someone has done this for this OS maybe
he can give me some help. I've tried to follow the howto step by step but
failed, getting the dreaded
"Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request."
message from apache. what I did so far (apart from activating apache):
1.
putting a file `repo.cgi' with this content:
#!{my-path-to-fossil-executable}
repository: {my-path-to-fslrepo}
into /Library/WebServer/CGI-Executables and made it executable for
`everybody'.
2.
giving read/write access to everybody for the respective repo (is this
really required?).
3.
putting a test-file `first.cgi' with this content:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "<h2>Hello, World!</h2>\n";
in the same location as `repo.cgi' and giving it the same permissions.
4.
verified that local access to the repo works just fine, including
web-access via the stand-alone webserver (so the repo is not corrupt,
closed, or anything like that)
5.
what I see:
-- access to `http:{mymachine}/cgi-bin/first.cgi' works just fine (I do
get the `hello world' page)
-- access to `http:{mymachine}/cgi-bin/repo.cgi' gives the `internal
server error' in the browser and the message "Premature end of script
headers: repo.cgi" in the apache error log
which, I understand, can have many reasons (e.g. wrong permissions) but
boils down to the html headers not being generated as expected.
any help in these matters would be appreciated.
j.
disclaimer: I have no experience whatsoever with apache, cgi, and
webservers in general. so maybe I'm missing something stupid...
I'm trying for the first time to setup a fossil repo for http access via
the cgi route on macosx 10.8.4. if someone has done this for this OS maybe
he can give me some help. I've tried to follow the howto step by step but
failed, getting the dreaded
"Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request."
message from apache. what I did so far (apart from activating apache):
1.
putting a file `repo.cgi' with this content:
#!{my-path-to-fossil-executable}
repository: {my-path-to-fslrepo}
into /Library/WebServer/CGI-Executables and made it executable for
`everybody'.
2.
giving read/write access to everybody for the respective repo (is this
really required?).
3.
putting a test-file `first.cgi' with this content:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "<h2>Hello, World!</h2>\n";
in the same location as `repo.cgi' and giving it the same permissions.
4.
verified that local access to the repo works just fine, including
web-access via the stand-alone webserver (so the repo is not corrupt,
closed, or anything like that)
5.
what I see:
-- access to `http:{mymachine}/cgi-bin/first.cgi' works just fine (I do
get the `hello world' page)
-- access to `http:{mymachine}/cgi-bin/repo.cgi' gives the `internal
server error' in the browser and the message "Premature end of script
headers: repo.cgi" in the apache error log
which, I understand, can have many reasons (e.g. wrong permissions) but
boils down to the html headers not being generated as expected.
any help in these matters would be appreciated.
j.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
Using Opera's revolutionary email client: http://www.opera.com/mail/