It may need to be owned by apache or httpd.
Whoever is running httpd.

On Wed, Jun 18, 2014 at 11:08 AM, Philippe Rousselot
<rousse...@rousselot.org> wrote:
> 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
>
>



-- 
-----------------
Hal Wigoda
Chicago

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to