[rancid] CVSWeb issues

Jethro R Binks jethro.binks at strath.ac.uk
Mon Jun 8 20:50:45 UTC 2015


Check the path to your perl binary at the top of 
/var/www/cgi-bin/cvsweb.cgi is correct.

Try changing to your web server user (apache) and just run the script from 
the command line and see if it outputs lots of HTML.

Check the perms on the /var/www/cgi-bin path are at least executable to 
the web server user (or 'other').

> [root at vm-rancid tmp]# ls -l /var/www/cgi-bin/cvsweb.cgi
> -rwxrwxrwx. 1 root root 126583 Sep 25  2005 /var/www/cgi-bin/cvsweb.cgi

Having write permissions to anyone other than the owner is probably not a 
good idea.  Maybe: chmod go-w /var/www/cgi-bin/cvsweb.cgi

Jethro.


On Mon, 8 Jun 2015, Delmiro Campelo wrote:

> Hello guys,
> 
> I'm writing to see if anyone has run into this issue before or if you have
> a suggestion about other tools that would allow via web interface to browse
> the CVS repository for rancid. Thanks for any input or suggestions you can
> provide.
> 
> Thus far i'm trying to get CVSWeb working with rancid 3.2 but i'm running
> into the following error. I'm using the article linked below as a guide
> (Step 7).
> http://www.richardyau.com/?p=11
> 
> ERROR:
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.
> Please contact the server administrator at root at localhost to inform them of
> the time this error occurred, and the actions you performed just before
> this error.
> More information about this error may be available in the server error log.
> 
> 
> /usr/local/etc/cvsweb/cvsweb.conf
> @CVSrepositories = (
>         'local'   => ['Local Repository', '/var/cvs'],
>         'rancid'  => ['Rancid Backups', '/usr/local/rancid/var/CVS/'],
> #       'freebsd' => ['FreeBSD',          '/var/ncvs'],
> #       'openbsd' => ['OpenBSD',          '/var/ncvs'],
> #       'netbsd'  => ['NetBSD',           '/var/ncvs'],
> #       'ruby'    => ['Ruby',             '/var/anoncvs/ruby'],
> );
> 
> /var/log/httpd/error_log
> [Mon Jun 08 15:22:52.594458 2015] [mime_magic:error] [pid 2320] [client
> 172.21.14.23:51954] AH01512: mod_mime_magic: can't read
> `/var/www/cgi-bin/cvsweb.cgi'
> [Mon Jun 08 15:22:52.596461 2015] [cgi:error] [pid 2320] [client
> 172.21.14.23:51954] AH01215: (13)Permission denied: exec of
> '/var/www/cgi-bin/cvsweb.cgi' failed
> 
> [root at vm-rancid tmp]# id apache
> uid=48(apache) gid=48(apache) groups=48(apache),1001(netadm)
> [root at vm-rancid tmp]# id rancid
> uid=1001(rancid) gid=1001(netadm) groups=1001(netadm),48(apache)
> 
> [root at vm-rancid tmp]# ls -l /var/www/cgi-bin/cvsweb.cgi
> -rwxrwxrwx. 1 root root 126583 Sep 25  2005 /var/www/cgi-bin/cvsweb.cgi
> 
> Thanks,
> Delmiro
> 

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
Jethro R Binks, Network Manager,
Information Services Directorate, University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.


More information about the Rancid-discuss mailing list