wiccan1 Posted January 28, 2003 Posted January 28, 2003 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!!! Quote
KevinW Posted January 28, 2003 Posted January 28, 2003 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 Quote
wiccan1 Posted January 28, 2003 Author Posted January 28, 2003 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 WOW! That was quick lol. I have already done the steps that you outlined but still get the same error 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.