in reply to Re^3: How to configure Apache for running perl scripts.
in thread How to configure Apache for running perl scripts.

I have commented out "AllowOverride None"
But now I am getting follwing log message
"malformed header from script. Bad header = hello: /var/www/cgi-bin/a.pl"

a.pl contains
#!/usr/bin/perl
use strict;
use CGI;
my $q =CGI->new();
print $q->header("text/html");
print "hello";
  • Comment on Re^4: How to configure Apache for running perl scripts.

Replies are listed 'Best First'.
Re^5: How to configure Apache for running perl scripts.
by Gilimanjaro (Hermit) on Aug 09, 2004 at 09:43 UTC
    Okay!

    Now it's at least running your script, but something is not 100% with the output... Try:

    #!/usr/bin/perl use strict; use warnings; use CGI qw(:all); print header; print "hello!";
    And chmod 755 a.pl just to be sure.

    If it still gives the error, run the script from the command line (./a.pl) and paste the output...

    (We'll get there yet!)