I'm very new to CGI, and I was trying to write a program to display some text. I finally figured out how to get it to work on my testing server, but when I uploaded it, it said there was an internal error. I checked the error log and it said the file (script.exe) did not have execute permissions. So think I looked up CGI scripts and found a sample script called first.pl, so I uploaded this too, and it gave me the same error. What am I doing wrong?
CGI-bin script help
Be sure the script has been uploaded rather in ASCII than in binary mode.
Check its execute permissions out.
Check its execute permissions out.
Hmm... None of those worked. I checked the error log; it send premature end of headers. I know I've made the headers right because they work on mine. Now, this could have something to do with it: My program is mandelbrot.exe. If the server is running linux, can it run .exe files? If not, what should I do with my C++ source code to compile it for linux?
Thanks.
Thanks.
Related topics
