Solved

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

Posted on 2004-04-09
6
201 Views
Last Modified: 2013-12-25
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
Comment
Question by:ShawnCurry
  • 4
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
Morcalavin earned 500 total points
ID: 10795684
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
 
LVL 18

Expert Comment

by:Morcalavin
ID: 10795688
Bah.  I can't read apparently.  You are using c not perl.  Disregard step 2.
0
 
LVL 3

Author Comment

by:ShawnCurry
ID: 10795701
Ohh yeahh... Probably help if I made it executable huh??
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 3

Author Comment

by:ShawnCurry
ID: 10795738
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
 
LVL 3

Author Comment

by:ShawnCurry
ID: 10795739
>> and if I run the file,

Locally..
0
 
LVL 3

Author Comment

by:ShawnCurry
ID: 10799228
Turns out all I needed to do was complile on 'nix (and give it the execute permission)

Thanks,

Shawn
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange, scripts 3 73
Register AutoHotkey 12 83
Gotten a bit confused with my rather simple PowerShell script 3 29
remove computer from using logon script 17 37
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This article will show, step by step, how to integrate R code into a R Sweave document
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question