Premature end of script headers: hgweb.cgi

Nguyen Manh Cuong wood.flower at gmail.com
Sun Jul 29 12:34:51 CDT 2007


Hello Mercurial developers and users,

I am a fairly newbie to Mercurial and are trying to implement it for our FOSS project. I have successful installed Mercurial into our Ubuntu-powered server and do can run Mercurial from the command line. I then setup a test repository and try to bring it to the Mercurial's web interface.

The "hg serve" method is working without problem but I don't like the trailing 8000 port number so I decide to use the CGI method for making web interface for our future repository. At this time, problem occurred as you can see at:

http://repo.fusus.org/cgi-bin/hgweb.cgi

[quote]
Server error!

The server encountered an internal error and was unable to complete your request. 

Error message: 
Premature end of script headers: hgweb.cgi 

If you think this is a server error, please contact the webmaster. 
Error 500
repo.fusus.org
Sun Jul 29 11:01:54 2007
Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/4.4.2-1build1 mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
[/quote]

I then from within the cgi-bin directory execute:

./hgweb.cgi > ../httpdocs/results.html

As you can see at:

http://repo.fusus.org/results.html

the HTTP header has not been sent to browser the normal way but has been echoed along with the HTML code.

Does anybody here experience this problem before? Please help me to solve this out.

Thank you very much for your support,
Nguyen Manh Cuong | The Fusus Group



More information about the Mercurial mailing list