Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-09
6
Medium Priority
?
206 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
What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

636 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