Apache/CGI directory access problem -- please help.

Apache/CGI directory access problem -- please help.

Post by Rusty Williamso » Tue, 23 Mar 1999 04:00:00



Hi!

I've just discovered that my CGI scripts can't access files on other parts
of  the system outside (and above) my home directory's public_html
directory.

Example:
~myhome/public_html/cgi-bin/myPerlScript.cgi needs to access
~myhome/datafiles/myDataFiles but can't do it.

This makes sense but presents me with a problem.   Using symbolic links and
the httpd.conf 'directory' option to follow symbolic links (Apache) doesn't
seem to do it.  Does anyone know a way around this or must I reorganize my
direcotories and files to be under the public_html directory?

Thanks,
Rusty Williamson

 
 
 

Apache/CGI directory access problem -- please help.

Post by Ron Klatchk » Tue, 23 Mar 1999 04:00:00



> I've just discovered that my CGI scripts can't access files on other parts
> of  the system outside (and above) my home directory's public_html
> directory.

> Example:
> ~myhome/public_html/cgi-bin/myPerlScript.cgi needs to access
> ~myhome/datafiles/myDataFiles but can't do it.

You are probably running into permission problems.  Find out what user
the Apache server is running as and make sure that that user has the
neccessary permissions to access your data files.

moo
----------------------------------------------------------------------
          Ron Klatchko - Manager, Advanced Technology Group          
           UCSF Library and Center for Knowledge Management          


 
 
 

1. Please help with Apache: index on cgi directories

*** I'm reposting since I haven't seen my first on my server. ***

I'm trying to have a Directory of type CGI (all files as scripts) that
when invoked without a file name returns a file called index, p.e.

I've managed to this using Netscape Fastrack Server, so I believe it
could
be possible with Apache!

On srm.conf I have these entries:

ScriptAlias /direct/ /serverroot/direct/
DirectoryIndex index.html index.cgi index

On access.conf

<Directory /serverroot/direct>
AllowOverride None
Options Indexes SymLinksIfOwnerMatch ExecCGI
</Directory>

At /serverroot/direct/ I have a file called index

 When invoking /direc/ I receive a FORBIDEN Status and when invoking
/direct/index
it works.

 Any ideas on how to do this? Thanks in Advance..
--

http://www.bdt.org.br/~brefe/
Base de Dados Tropical       | http://www.bdt.org.br/
Fundacao "Andre Tosello"     | Fax +55 192 427827  Tel +55 192 427022

2. ppp script needed

3. Apache: Deny access to cgi-bin directory?

4. MBR backup, how many bytes?

5. Help Compiling Apache 1.2.0 on Linux 2.0.27 == Help VirtualHost Cgi Directory

6. News feed configuration

7. Apache 1.3.14 / Netware Perl/CGI PROBLEM, Please help!

8. Suspend button via script

9. APACHE CGI CONFIG PROBLEM.. PLEASE HELP

10. problem running cgi-forms on apache!!!!!! please help

11. Problems running PHP as CGI under Apache, please help!

12. Apache SSI Exec-CGI problems, Please help!