Jump to content

Recommended Posts

Posted

Hi,

This is my first post but have been with TCH for a while now.

 

 

I seem to be getting the same error message everytime I try to fill out my online form.

 

"Forbidden

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

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

 

Can somebody help? Thanks !

 

Newbie

Posted

What are the permissions on the cgi script that you're using? Have you tried changing them to 755? Most cgi scripts, in my experience, need 755 to work on TCH servers.

Posted

I must be doing something wrong. I tested the the script hello world and keep getting the same 403 Forbidden error.

 

Here is the script i'm using:

 

#!/usr/bin/perl

# simple Hello World script

print "Content-type: text/plain\n\n";

print 'Hello World!';

 

 

I uploaded in ascii then changed permissions chmod 755 /public_html/cgi-bin/helloworld.cgi

 

 

Help would be appreciated. Thanks!

Posted (edited)

Excuse me for asking but what are the permissions of the cgi-bin folder in the public_html folder? And you have not web protected the cgi-bin folder have you?

 

The permissions of the cgi-folder should be 755

Edited by TCH-Bruce

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...