On Thu, Sep 26, 2002 at 09:00:38AM -0500, Justin Ryan wrote: > Heya all.. > > Sorry for the cross-post but it seemed reasonably applicable to > debian-user and debian-isp.. > > I'm trying a simple "Hello Web" script in python and (to prove that it > isn't python related) as a simple shell script. Both work on my > Debian/sid workstation, which has a default apache configuration. > However, on my Debian/woody web server, which has several virtual hosts, > I get 500/Internal Server Error. /var/log/apache/error.log says > "Premature end of script headers". [snip] > hello.sh: > #!/bin/sh > echo "Content-Type: text/plain" > echo > echo "Hello Web!" This could be because you don't have the execute bit set on your script. Did you chmod +x the file? -Mark
Attachment:
pgpwp3Aj5DZDS.pgp
Description: PGP signature