Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

403 forbidden error

Status
Not open for further replies.

TTMTech

Programmer
Feb 5, 2003
29
0
0
US
HI ! All

I have apache 2.0 on windows 2000.My perl script gives me following error.

Forbidden
You don't have permission to access /it.ttmtech.com/myttmtech/index.pl on this server.


--------------------------------------------------------------------------------

Apache/2.0.43 Server at greatplains Port 83


I have given access to everyone on this /it.ttmtech.comdirectory.

Can anyone help me how to solve this problem ?
 
You may have given everyone permission to that directory, but what about the script itself?
 
Hi ! Ponerse

I have given permission to everyone on index.pl script file.
Still its same error.
 
Do you have that directory configured like:

[tt]ScriptAlias /myttmtech/ "/usr/local/www/data/myttmtech"[/tt]

(or whereever the actual directory is located)
 
(This is certainly an apache issue, by the way, not a perl one.)
 
In the httpd.conf file, is the option ExecCGI set for for the particular directory that the file exists in?

Also, do you have the AddHandler lines for .cgi and .pl files in apache turned on?

These lines should be somewhere in you file.
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
 
Hi ! bpinos

Thanks for your reply. Can you tell me in httpd.conf file where can I put the option ExecCGI for the particular directory that the file exists in. Can you also give example of it with code line ?

Thanks for your help.

TTMTECH
 
There should be a line like:

<Directory &quot;/var/apache/htdocs&quot;>
with some lines in between
then
</Directory>

In between those tags should be a line that says:

Options blah blah blah

For CGI's to work, one of those options has to be either ExecCGI, or all.

So in the end, it should look something like this (It may have a lot of comments in the middle and other directives):

<Directory /var/apache/htdocs>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes ExecCGI
</Directory>


I hope this helps!
 
It works Bpinos
Thanks a lot for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top