• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

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
0
ShawnCurry
Asked:
ShawnCurry
  • 4
  • 2
1 Solution
 
MorcalavinCommented:
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now