Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI Forbidden

Why Dose It Say Forbidden when i go to a CGI

         

MrGecko

2:12 pm on Apr 18, 2006 (gmt 0)

10+ Year Member



When i go to a CGI it says

Forbidden

You don't have permission to access /cgi-bin/sendmail-cgi.pl on this server.

i have Tried Making the permission Read-Write
but it did not work

if you can help me that will be great

thanks

Mr Gecko

zCat

2:20 pm on Apr 18, 2006 (gmt 0)

10+ Year Member



i have Tried Making the permission Read-Write

Read-Write-Execute

MrGecko

2:24 pm on Apr 18, 2006 (gmt 0)

10+ Year Member



Yes I Did
my computer is my server
and i'm Running mac os x apache
so maybe in the httpd.conf?

perl_diver

6:37 pm on Apr 18, 2006 (gmt 0)

10+ Year Member



probably, you need to edit the config file to setup the cgi-bin and cgi aliases. Google for an apache tutorial for your OS.

MrGecko

12:11 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



it's all the same in any OS so if you know how to get it working in windows then tell me.

Here's What My Configure is set to

<Directory /Users/*/Sites>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi
</IfModule>

UseCanonicalName On

ServerSignature On

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/Users/Kids/Sites/cgi-bin/"

#
# "/Library/WebServer/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/Users/Kids/Sites/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</IfModule>
# End of aliases.

Thanks
Mr. Gecko

jdMorgan

1:18 pm on Apr 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Looks like you've disabled ExecCGI for this directory...

<Directory "/Users/Kids/Sites/cgi-bin">
AllowOverride None
Options None
...

Jim

MrGecko

5:40 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



How do you fix that?

perl_diver

6:01 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



maybe it's all the same, but maybe it's not, anyway if you would have just googled like I suggested you would have found tutorials for this, here is one:

[cgi101.com...]

MrGecko

6:06 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



I have Already look there that is where i leaned how to set it up

MrGecko

6:34 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



Oh so what i have to do is replace

*<Directory "/Users/Kids/Sites/cgi-bin">
**AllowOverride None
**Options None
**Order allow,deny
**Allow from all
*</Directory>

With

*<Directory "/Users/Kids/Sites/cgi-bin">
**AllowOverride FileInfo AuthConfig Limit
**Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
**<Limit GET POST OPTIONS PROPFIND>
***Order allow,deny
***Allow from all
**</Limit>
**<LimitExcept GET POST OPTIONS PROPFIND>
***Order deny,allow
***Deny from all
**</LimitExcept>
*</Directory>