1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

500 internal server error

Discussion in 'Plesk for Linux - 8.x and Older' started by charlz, May 10, 2006.

  1. charlz

    charlz Guest

    0
     
    I have a helloworld cgi file and keep getting this (error logs say the same "Premature end of script headers: test.cgi "

    NOTE: when I run it from the command line <b>it works</b> ./test.cgi
    PHP:
    #!/usr/bin/perl

    print "Content-type: text/html\n\n";
    print 
    "test";
    But form browser gives this:

    After reading through the forums I have made sure that all these things:
    1. files and folders are 755
    2. was loaded in ascii format
    3. CGI is turned on in plesk
    4. code is sound (as above) no missing semi-colons etc..
    5 psa-suexec is up to date.

    What else could be the problem? I have tried it with and w/out mod perl being active all with the same result.

    thanks!
     
  2. jspilon

    jspilon Guest

    0
     
    may sound like a stupid question ( but you did not say so in your post... )

    is it in your cgi-bin folder ?
     
  3. charlz

    charlz Guest

    0
     
    yes it is in there and cgi is enabled.
     
  4. brainlag

    brainlag Guest

    0
     
    Try to Chmod in 750
     
  5. charlz

    charlz Guest

    0
     
    no go I am afraid
     
Loading...