Click to See Complete Forum and Search --> : I'm pooped... can't figure this out..?


kjohn
06-18-2003, 06:48 PM
Haha I said poop on a cgi scripting forum.

Anyways, my hosting service told me that I can't use a UNIX based mail script on their server, so I found one called Form2Mail that supposedly will run on a Windows NT server. I went in and put in all the info that I needed to change, but I am still not gettin any mail? Instead I am getting this error:

500 Server Error
The server encountered an error and was unable to complete your request.
Message: Shell E:/websites/SurgiMark/cgi-shl/form2mail.cgi does not exist or is not executable.

Please contact the server administrator at webmaster@webstercorp.com and inform them of the time the error occured, plus anything you know of that may have caused the error.

Also, please return to the referring document and note the hypertext link that led you here.

My input form is here: http://www.surgimark.com/html/checkouthtm.htm

and my script is attatched here.

Anyone have any clue whats going on??

Thanks!

Katie

jeffmott
06-18-2003, 07:47 PM
Have you checked what file extensions your server considers executable? If this is indeed a Windows (and non-Apache) server then the default configuration may be very different that what you are used to.

And also if this is a Windows server, #!/usr/bin/perl will have to be c:\perl\bin\perl.exe or something similar.

The first thing to do is to get a "Hello World" program running successfully.

nkaisare
06-24-2003, 05:19 PM
Originally posted by jeffmott

And also if this is a Windows server, #!/usr/bin/perl will have to be c:\perl\bin\perl.exe or something similar.
This line does not matter as the Win servers usually have default set to look for the perl (so my web support informed me). I run all my cgi script that I developed for unix/apache server on MS-IIS server without any change (and it works even if I remove the first line). Only the pipe commands like sendmail don't work.

jeffmott
06-24-2003, 05:27 PM
This line does not matter as the Win servers usually have default set to look for the perlMy guess would be that this is only true for IIS. Because it is integreated with Windows it probably has access to its file associations. I use a Win32 port of Apache, and with that the shebang line is still required.