in reply to a classic : 'Premature end of script headers' problem

Regarding your update: the default cgi-bin directory (for apache) is /var/www/cgi-bin, but you can change this. Read about the "scriptalias" directive in the apache docs, or just modify the httpd.conf file and change /var/www/cgi-bin to whatever you want it to be. Just be careful - you'll have to change it in more than one place. Be sure to search for them all.
  • Comment on Re: a classic : 'Premature end of script headers' problem