Submit Your Article Forum Rules

Results 1 to 6 of 6

Thread: "Internal Server Error" problem

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    23

    "Internal Server Error" problem

    Hey Guys & Gals,

    I'm pulling my hair out here :) I'm trying to get this survey to process on my site... and I'm running into some trouble. I keep getting the "Internal Server Error" problem and my Error logs are saying Premature End of Script Headers. Can Someone help me out? I'm not sure if I'm aloud to post URL's or not, so if you're willing to help, let me know what you need from me.... I really appreciate it guys... Thanks in advance.
    Dot_Commer

  2. #2
    Senior Member
    Join Date
    Apr 2004
    Posts
    279
    500 internal server error means the server cannot read/find the file specified. Premature End of Script Headers is usually a perl error.

    Check your permissions, most cgi (perl) scripts have to be executable, so chmod the file 755.

    Is your host using suEXEC make sure you set the proper user/group for the file.

    Make sure the shebang line (first line of the script usually #!/usr/bin/perl) contains the proper path to perl on your server/host.

    Make sure you are setting the content type and that you have two line feeds after it ala,
    #!/usr/bin/perl
    print "Content-type: text/html\n\n";

    Are you sure your host/server supports the script extension you are using? .cgi .pl?

    Did you upload in ascii not binary?

    You've got a bit of hunting down to do, the pleasures of perl :) ( I almost forgot why I switched to php).

    One thing that help in debugging perl is to output the errors to the browser by adding
    use CGI::Carp qw(fatalsToBrowser);
    after the shebang (#!/usr/bin/perl) line.
    Be sure to remove it once you get the script working.

    [edit]
    Just thought of another possible problem. Line endings. If you are editing the file in a windows text editor and uploading to a unix server then you are going to hit problems as *nix servers will not recognise the windows end of line character (carriage return), use a text editor that can save the file with *nix type line endings (line feed) crimson editor is a good one for windows with syntax highlighting.
    [/edit]
    "I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
    "The secret to creativity is knowing how to hide your sources" - Albert Einstein.

  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    23
    Hey Easywebdev,

    Thanks alot for the reply... I really do appreciate it. I'm not all that familiar with Perl, I used a program called Visual Form Mail to generate this script for the form I had made.. They say it's easy to use, however, it doesn't seem to be all that easy. Anyways, I've checked out most of the stuff you mentioned, and still no dice! I will continue to plug away at it, again I appreciate the advice.. If you have anymore.. It's always welcome :) Take Care!
    Dot_Commer

  4. #4
    Senior Member
    Join Date
    Apr 2004
    Posts
    279
    If its not permissions then perhaps the script is including other files that it cannot find. No way of knowing without you posting the html page and the script.
    If your post them I can check them on my local server and see if its a script problem or something on your server.

    Remove any personal data such as emails/ips/domains in the script before posting.
    "I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
    "The secret to creativity is knowing how to hide your sources" - Albert Einstein.

  5. #5
    Junior Member
    Join Date
    Jan 2004
    Posts
    23
    Easywebdev,

    I pm'd you.. Please check your inbox... Thanks!!!
    Dot_Commer

  6. #6
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,739
    I've used a php survey in the past. Can't remember which one though.

    This one looks pretty good
    http://phpsurveyor.sourceforge.net/
    Web Hosting Guru
    | Need Hidden Content ?

Similar Threads

  1. Solving "An Unexpected HTTP Error occurred during the API request"
    By cleanweb in forum WordPress Discussion Forum
    Replies: 2
    Last Post: 01-08-2010, 12:22 AM
  2. Internal and external links and the rel="nofollow" attribute
    By kgun in forum Google Discussion Forum
    Replies: 93
    Last Post: 01-06-2009, 09:45 PM
  3. Is "Jagger" a Major Google Marketing Error?
    By greeneagle in forum Google Discussion Forum
    Replies: 136
    Last Post: 10-27-2005, 07:33 PM
  4. MS Access "Numeric Field Overflow" Error
    By richkoi in forum Database Discussion Forum
    Replies: 1
    Last Post: 01-13-2005, 07:41 PM
  5. Why do search engine "bots" appear to read error l
    By StripersOnline in forum Search Engine Optimization Forum
    Replies: 10
    Last Post: 05-13-2004, 10:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •