PDA

View Full Version : My Form CGI doesn't work, please help


chesky
11-21-2002, 07:45 PM
Hello, I just found this forum, and I hope it helps me! I've been trying to install several cgi scripts on my site. I recently moved my site to a reseller program type hosting, and I've been trying since then to activate my cgi's and I can't get them to work.
There's one specific problem that I need to solve as soon as possible, and that's a form script.
I have tried several different scripts, and none of them work! I install them and follow the instructions, and theorically they should work, there shouldn't be nothing wrong with them, but everytime I try to execute the form, either send it or try to execute the script itself I get the 500 Internal Server Error. I know that is suppose to be a CHMOD problem, but my CHMOD is exactly what the script calls for, not to mention that I had the script installed before on my other server and it worked perfectly. But, now I can't get it to work and my hosting company says there's really not a problem with the way my account is set up and everything in the scripts looks normal but they can't give me any more support.
Does anybody here have any suggestions ?? Maybe someone would be kind enough to take a look at it and let me know? I don't know anything about CGI...please help me!
You can email me at
fbensi@bellsouth.net
Thanks in advance for all your help and suggestions!

AgentJones
11-21-2002, 10:32 PM
The heading may have changed on the new server. (#!/usr/bin/perl) This happened to me when my host switched servers. Ask them if the new head is different.

pb&j
11-22-2002, 05:35 AM
Did you upload the script in ASCII mode? Sometimes the FTP is set to BINARY or AUTO. Scripts should be uploaded in ASCII (I think).

reubenb
11-22-2002, 06:55 AM
maybe the host doesnt support/allow cgi sctripts
you should ask them

wap3
11-23-2002, 10:00 AM
I don't know if your using sendmail to process your form but have you checked the location of sendmail to see if you have that written correctly to ??

Also does your host not have a servor error log ?? If they do that might give you an indication of what the problem may be.

:thumbsup:

chesky
11-25-2002, 02:10 AM
Thanks for all your comments, I checked about the heading, it's correct, the sendmail is correct, and the server does support cgi's because they even recommended a different form script, and that's what I have now, and still the same problem.
About the logs, this is what I get I don't know what it means:

"POST /cgi-bin/FormMail.pl HTTP/1.1" 500 619 "http://www.glycocentral.com/contact.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 3.0)"

500 I know is the internal server error, but what other information is that giving me?

Also, on the bottom of the error page I get when I try to execute I get this:

Apache/1.3.26 Server at glycocentral.com Port 80

Any other comments??

Grizz2
11-25-2002, 05:58 AM
Hi Chesky,
Usually a 500 server error is from a syntax mistake. First make sure there are no spaces after the path to perl. Then if you had to set any variables, make sure you didnt leave out any quotes or semi colons. If you still cant get it working I'll have a look at it for you.
Grizz

chesky
12-06-2002, 04:57 AM
Hey Grizz2, I would really appreciate it if you would take a look at it, I can't get it to work, I redownloaded the script, I checked for spaces, I found a semicolon and a quotation that didn't seem to belong after the sendmail but deleting that didn't solve it either, I still have the same problem. Please email me at fbensi@bellsouth.net so I can have your email, or post it here, and I'll send you the script and all the info!
Thanks a lot for doing this......I'll be waiting for your email.

Grizz2
12-06-2002, 06:53 AM
You can email me here.
roadkillchuck@netscape.net
Grizz