?
Solved

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

Posted on 2004-04-09
6
Medium Priority
?
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
Morcalavin earned 2000 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
RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

 
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Suggested Courses

777 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