cgi files only working with chmod 555

Hi, I searched but couldnt find anythig exactly about this:

I am trying to install some cgi scripts, but this is the problem I'm having:

in the /cgi-bin/ chmoding any cgi file with 775 will work.
but in /cgi-bin/subfolders/ 775, 777, * doesnt work.
cgi scripts only work if chmoded 555


This has been tested chmoding the subfolders as well.

Why will scripts only work with chmod 555?
Any logic to that?


For example, something as simple as this:
PHP Code:
#!/usr/bin/perl 
 
print "Content-type: text/html\n\n"
print 
"<HTML><HEAD>"
print 
"<TITLE>CGI Test</TITLE>"
print 
"</HEAD>"
print 
"<BODY><H2>I just wrote a web page using Perl!</H2>"
print 
"</BODY></HTML>"
will only work if chmoded 555

Is there any apache configuration that has something to do with this?

Thanks.

 

 

 

 

Top