Apache Premature end of script headers

Pagina: 1
Acties:

  • zeikstraal
  • Registratie: April 2000
  • Laatst online: 01-05 08:34
Ik heb in mijn cgi-bin een bestand test.pl geplaatst:



#!/usr/bin/perl

print "Content-type: text/html\r\n\r\n";

print "Hello, World.";



En het a+x ge chmod.



Toch krijg ik een inernal server error als ik 't opvraag. De foutcode in het errorlog is:



Premature end of script headers: /var/www/cgi-bin/test.pl



De vraag is natuurlijk wat moet ik doen om het wel werkend te krijgen. (de documentatie van apache bood geen uitkomst)



ps:

Ik heb natuurlijk wel perl geinstalleerd in /usr/bin en dit gecontroleerd.

Quidquid id est, timeo puellas, et oscula dantes


  • we_are_borg
  • Registratie: September 2000
  • Laatst online: 25-03 16:34

we_are_borg

You will Comply

Misschien handig om Perldiver op je server te zetten hier mee zie je alle instellingen die je nodig mocht hebben.

You need the computing power of a P1, 16 MB RAM and 1 GB Harddisk to run Win95. It took the computing power of 3 Commodore 64 to fly to the Moon. Something is wrong here, and it wasn't the Apollo.


Verwijderd

#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "Hello crewl world!";
exit;
zet dit in een file, chmod hem 755

typ ./filename.pl

  • zeikstraal
  • Registratie: April 2000
  • Laatst online: 01-05 08:34
Sorry, ik had per ongeluk een paar spaties voor het #! toen ik ze weghaalde deed ie 't.

Quidquid id est, timeo puellas, et oscula dantes