Jump to content

Recommended Posts

Posted

I'm new and need a little help! I have recently installed a cgi script to my account and keep getting a 500 internal service error. I have edited the script, saved it as a text file and also chmod it to 755 as the instruction stated. i even transfered it in ascii format.

 

The only thing i can think of is my path in the cgi is wrong. The installation instructions state to use the "path" not the "url".

 

Can anyone give me some help with this.

 

Thanks in advance!!!

Posted

The 1st line of your CGI script indicates "where" to find the Perl interpreter. For TCH, that first line should read:

 

#!/usr/bin/perl

 

If you are uploading your CGI script via FTP to your web site, be sure that you go to the public_html directory on your web site, and from there, go to the cgi-bin directory. That's where your script should belong.

 

Then, as you indicated, change the permission for your script to 755.

 

Finally, to run/access your script, you would use URL http://www.yoursite.com/cgi-bin/yourscript.pl (note, you do NOT include the public_html ... your server is already set up to redirect all http requests to the public_html directory.

 

HTH

-kw

Posted
The 1st line of your CGI script indicates "where" to find the Perl interpreter. For TCH, that first line should read:

 

#!/usr/bin/perl

 

If you are uploading your CGI script via FTP to your web site, be sure that you go to the public_html directory on your web site, and from there, go to the cgi-bin directory. That's where your script should belong.

 

Then, as you indicated, change the permission for your script to 755.

 

Finally, to run/access your script, you would use URL http://www.yoursite.com/cgi-bin/yourscript.pl (note, you do NOT include the public_html ... your server is already set up to redirect all http requests to the public_html directory.

 

HTH

-kw

:P WOW! That was quick lol.

 

I have already done the steps that you outlined but still get the same error :blink:

 

Inside the script it does as for a path simular to /home/"username"/www/ etc.

 

I think this is where i am messing up lol. Can you tell me if by using /home/"my username"/public_html/cgi-bin/ is the correct path that i need to put in there?

 

Thanks again...i appreciate your help :)

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...