500 Error (sorry I'm new at this :)

This will probably be an easy one..  I know a little bit about cgi..  I have a book example I'm playing with; it uses a c program to decode the form an spit out a response.  I've compiled it (on a windows box) and uploaded it to my website(nix).  Fill out the form, submit; 500 - Internal Server Error..  The form's pointing to the right place.  Do I need to compile this on 'nix??

I downloaded the code right from the book's site..  And, of course, it doesn't seem to do anything if I try to run it locally..

Thanks,

Shawn
LVL 3
ShawnCurryAsked:
Who is Participating?
 
MorcalavinConnect With a Mentor Commented:
1) Check your permissions.
2) use the CGI::Carp qw (fatalsToBrowser) to give you a better error message other than the generice 500 error.
0
 
MorcalavinCommented:
Bah.  I can't read apparently.  You are using c not perl.  Disregard step 2.
0
 
ShawnCurryAuthor Commented:
Ohh yeahh... Probably help if I made it executable huh??
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ShawnCurryAuthor Commented:
Hmm..  Well I gave the execute permission to it, but it still doesn't work..  Guess I'll try compiling it on 'nix tomarrow. The html points to the right place, and if I run the file, it does print out the html tags.
0
 
ShawnCurryAuthor Commented:
>> and if I run the file,

Locally..
0
 
ShawnCurryAuthor Commented:
Turns out all I needed to do was complile on 'nix (and give it the execute permission)

Thanks,

Shawn
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.