Le 18/06/2014 02:46, Goke Aruna a écrit :

When you run  the scripts from the cli, what do you get on your screen?
What about Apache configuration.... is cgi script executable.
What permission do you have on your script?

Hope those questions can give you a guide.

Hi

thanks for the answer

*error message**:*

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


*rights for files and folders *      rwxr-xr-x

*error message in logs : *

[Wed Jun 18 17:43:38 2014] [error] [client xxx] [host 
www.une-histoire-de-famille.net] Premature end of script headers: geneweb



I tried any kind of permissions, checked on hidden characters in files,

this file with the same permissions works fine

~~~~~~~~~~
    #!/usr/bin/perl
    # test.cgi by Bill Weinman [http://bw.org/]
    # Copyright 1995-2008 The BearHeart Group, LLC
    # Free Software: Use and distribution under the same terms as perl.

    use strict;
    use warnings;
    use CGI;

    print foreach (
    "Content-Type: text/plain\n\n",
    "BW Test version 5.0\n",
    "Copyright 1995-2008 The BearHeart Group, LLC\n\n",
    "Versions:\n=================\n",
    "perl: $]\n",
    "CGI: $CGI::VERSION\n"
    );

    my $q = CGI::Vars();
    print "\nCGI Values:\n=================\n";
    foreach my $k ( sort keys %$q ) {
    print "$k [$q->{$k}]\n";
    }

    print "\nEnvironment Variables:\n=================\n";
    foreach my $k ( sort keys %ENV ) {
    print "$k [$ENV{$k}]\n";
    }
~~~~~~~~~~

thanks for the help.

Philippe


Reply via email to