Closed Thread
Results 1 to 2 of 2

Thread: Internal server error

  1. #1
    hhheng is offline Newbie
    Join Date
    Nov 2007
    Posts
    8
    Rep Power
    0

    Internal server error

    I just upload a simple script like this:

    #!/usr/bin/perl

    print "Hello,world!\n";

    And after uploaded to my server, changed it to 755. But when executed, it will report internl server error. I tried the same script on 2 servers, and still the same problem.

    What wrong with the script or the server?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0

    Re: Internal server error

    if you run it as a CGI from a webbrowser it needs an http header printed first:

    Code:
    #!/usr/bin/perl
    print "Content-type: text/html\n\n";
    print "Hello,world!\n";

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Server Error in '/' Application.
    By lol33d in forum ASP, ASP.NET and Coldfusion
    Replies: 1
    Last Post: 03-22-2011, 03:55 PM
  2. Replies: 1
    Last Post: 11-10-2009, 12:27 AM
  3. warning:internal error
    By skb_mys in forum C and C++
    Replies: 2
    Last Post: 07-13-2009, 08:38 AM
  4. Internal Error failed to initialize HAL!
    By WhyLinux in forum Linux/Unix General
    Replies: 7
    Last Post: 07-07-2009, 07:49 AM
  5. Download problem, internal Server Error
    By j3cubcapt in forum ionFiles
    Replies: 1
    Last Post: 07-02-2007, 07:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

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