[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting up cvs and cvsweb....

From: Mark D. Baushke
Subject: Re: setting up cvs and cvsweb....
Date: Tue, 29 Jul 2003 01:43:24 -0700

bruce <address@hidden> writes:

> I'm trying to install CVS and CVSWEB on a Linux RH8.0 box. I'm running
> Apache.

> I think I have CVS working... but I'm not really sure!!!

are you able to 'cvs checkout CVSROOT' ?

> I have CVSROOT set to --> :ext:address@hidden:/CVS

So, you plan to use either rsh or ssh as your transport depending on
the value of your CVS_RSH environment variable.

> When I try to access CVSWEB from the web server, I'm getting an error
> indicating an error:
> ------------------------------------
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.
> Please contact the server administrator, address@hidden and inform them of
> the time the error occurred, and anything you might have done that may have
> caused the error.
> More information about this error may be available in the server error log.
> ------------------------------------

It would be best if you get cvs working first and then looked at getting
cvsweb working. Note that 'viewcvs' is considered by many to be 'better'
than 'cvsweb' but both should work fine once you get a working cvs server.
> within my /etc/profile, i have tried...
> # CVSROOT=":pserver:address@hidden:/CVS"
> # CVSROOT=":pserver:address@hidden:/CVS"
> # CVSROOT=":ext:address@hidden:/CVS"

are you exporting these variables externally?

    export CVSROOT

after you have set them?
> within /etc/xinetd.d/cvspserver.. i have
> service cvspserver
> {
>     port        = 2401
>     disable = no
>     socket_type = stream
>     protocol    = tcp
>     wait        = no
>     user        = root
> #    passenv     = PATH
>     server      = /usr/bin/cvs
> #    env         = HOME=/home/CVSROOT
>     server_args = -f --allow-root=/CVS pserver
> }
> I'm also trying to install Cvsweb.

Treat this as two separate operations. Ignore cvsweb until you have cvs
> My questions.... I understand that you really want SSH for the security...
> But if I use CVSROOT="ext....", do I need to change the cvspserver
> information, specifically the line that has pserver..???

If you are using :ext: then you are using '${CVS_RSH:-rsh} cvs server'
to connect to the server. If you are using :pserver: then you are using
the port 2401 connection method. The two are totally separate. If you
have one, you do not need the other. You do not NEED to setup the
cvspserver if you are going to use :ext: as it will never be used.

> If I don't use SSH... and just go with CVSROOT=\CVS, how does that change
> the line that has pserver???

If you are using \CVS bad things will happen as Redhat likes forward
slashes like /CVS rather than backward slashes like \CVS.

If you are using CVSROOT=/CVS then you are not using client/server mode
at all and just accessing a local repository.
> How can I actually test this to make sure it works!!!

Did you use 'make check' when you built cvs or are you using a prebuilt
RPM that redhat ships?

    mkdir testit
    cd testit
    cvs -d /CVS init
    cvs -d /CVS checkout CVSROOT
    cd CVSROOT
    ls ;# you should see some files here

does the above work for you? If so, then cvs is working in local mode.
If you try it like this:

    mkdir testit
    cd testit
    cvs -d init
    cvs -d checkout CVSROOT
    cd CVSROOT
    ls ;# you should see some files here

it will use the remote connection via either rsh or ssh depending on how
you have set the CVS_RSH environment variable.

> Assuming I get this to work..what changes need to be made regarding CVSWEB.
> I try to get CVSWEB running and I get a log error saying that the cvsweb.cgi
> script is having an issue over an invalid character... I assume that I don't
> have CVS actually running correctly....

Seems likely... concentrate on first getting cvs working before playing
with cvsweb.
> I'd like to basically insure that CVS is running.. and then get CVSWEB
> running... and then be able to access CVS via a remote server as well as a
> remote browser running CVSWEB....

Good, focus is good. :-)

        Good luck,
        -- Mark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]