ViewVC cgi script doesn't work in web root

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

ViewVC cgi script doesn't work in web root

Post by Ambush Commander »

I've been attempting to install ViewVC, and things are mostly functional. The installation is accessible from http://hp.jpsband.org/v/viewvc.cgi/

Notice, however, how there is that /v/ in the URL. This is a strange hack to fix a bug that I haven't been able to figure out, and which I hope to resolve now.

ViewVC's install directory contains bin/cgi/, which contains CGI script stubs which you can copy elsewhere. If I copy these to the webroot/v, the scripts work, but copying them directly to webroot results in a 500 Internal Server Error. The error logs say "Premature End of Script Headers" from viewvc.cgi. Moving the scripts to the subdirectory fixes the problem.

Any insights?
Post Reply