HTML and CGI-Bin won't work when linked (ln -s) to folders in Linux apache

HTML and CGI-Bin won't work when linked (ln -s) to folders in Linux apache

Post by Anupama.s » Sun, 15 Jul 2007 02:55:12


Hi!

I am using apache on Redhat, when I link my html and CGI folder using
ln -s they give me 403 error. But when I don't they work fine.

In apache http.conf file:

user www
group apache

CGI folder permisions are

lrwxrwxrwx 1 apache apache date /var/www/cgi-bin -> /lad/www-data/cgi-
bin


I tried chown www:apache /var/www/cgi-bin
to both origin and source folders but that didn't work

I tried chown apache:apache /var/www/cgi-bin
to both origin and source folders but that didn't work


I tried chown root:root /var/www/cgi-bin
to both origin and source folders but that didn't work




Any advise? .. work around??
 
 
 

1. File Creation Problem with CGI Scripts in Apache cgi-bin (Fedora Core 3)

2. Can't execute file with .pl extension in /usr/local/apache/cgi-bin ... ?

Hi,

I have installed httpd 1.3.33 on Mac OS 10.4.5 and couldn't get CGI
Perl scripts to work. I found that this is not a httpd problem, but
some weirdness in the directory.

When I execute a Perl script e.g. "test.pl" (print "testing"; exit;)
with the extension .pl in the /usr/local/apache/cgi-bin directory, the
script hangs. The very same script in a different directory runs ok.
When I cp the script to "test" (without the extension), it executes
normally. It appears that something is preventing the execution of
files with the extension .pl Is this intended? Can this be changed?
If this is a feature, what is this good for?

Thanks for some insight.

Boris

3. CGI-BIN Forced Termination (Apache)

4. Apache: multiple cgi-bin

5. Apache: Can .EXE extension be appended to CGI-BIN URLs?

6. Using DCL for cgi-bin with SWS (Apache)

7. Html call to .exe in cgi-bin results in "File not found" (Error 404)

8. problem with cgi-bin, perl source being displayed on action of html page

9. cgi-bin script not printing output on html

10. cgo-bin question -- OOOPS -- SHOULD BE cgi-bin question

11. Can "bin" be changed to "cgi-bin" for asp.net

12. links won't look outside cgi-bin directory

13. CGI-Bin Folder

14. How do I post to the cgi-bin folder?

15. cgi-bin folder