cgi access to files not in apache 2 tree

This is a discussion on cgi access to files not in apache 2 tree within the Apache Web Server forums, part of the Web Server and Related Forums category; On a Fedora Core 2 box, I have Apache 2 running a perl cgi script (cvsweb) in /cgi-bin/. cvsweb ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-19-2004
Joseph McCarty
 
Posts: n/a
Default cgi access to files not in apache 2 tree

On a Fedora Core 2 box, I have Apache 2 running a perl cgi script (cvsweb)
in /cgi-bin/. cvsweb should display the contents of a CVS repository in
/home/rancid/CVS on a web page.

Pointing my browser at http:/foo.org/cgi-bin/cvsweb.cgi, I draw an error
message, "Error: No valid CVS roots found! See @CVSrepositories in the
configuration file (/etc/cvsweb/cvsweb.conf)."

log/httpd/error_log states, "Root '/home/rancid/var/rancid/CVS' defined in
@CVSrepositories is not a directory, entry ignored at
/var/www/cgi-bin/cvsweb.cgi line 491."

The repository is is inded at the location specificed, and is functional.
The error isn't "permission denied," it's that cvsweb.cgi can't even see
the directory /home/rancid/CVS. What do I need to add to httpd.conf to
allow a cgi script to see a CVS database in /home/...

Thanks!


  #2 (permalink)  
Old 12-19-2004
HansH
 
Posts: n/a
Default Re: cgi access to files not in apache 2 tree

"Joseph McCarty" <jatlee@sonic.net> schreef in bericht
news:6v4xd.13161$_3.148030@typhoon.sonic.net...
> On a Fedora Core 2 box, I have Apache 2 running a perl cgi script (cvsweb)
> in /cgi-bin/. cvsweb should display the contents of a CVS repository in
> /home/rancid/CVS on a web page.
>
> Pointing my browser at http:/foo.org/cgi-bin/cvsweb.cgi, I draw an error
> message, "Error: No valid CVS roots found! See @CVSrepositories in the
> configuration file (/etc/cvsweb/cvsweb.conf)."
>
> log/httpd/error_log states, "Root '/home/rancid/var/rancid/CVS' defined in
> @CVSrepositories is not a directory, entry ignored at
> /var/www/cgi-bin/cvsweb.cgi line 491."

BTW, that's not the most recent version (3.0.4).

> The repository is is inded at the location specificed, and is functional.
> The error isn't "permission denied," it's that cvsweb.cgi can't even see
> the directory /home/rancid/CVS.

The pathes logged '/home/rancid/var/rancid/CVS' and specified
'/home/rancid/CVS' are _not_ the same.

> What do I need to add to httpd.conf to
> allow a cgi script to see a CVS database in /home/...

Probably nothing ...
Most likely the user running the apache -or CGI- process is not granted
access to the folder '/home/rancid/var/rancid/CVS'.

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0