I can run awstats.pl fine from the command line, and can build static pages fine. but as soon as I try to run it from the browser, I get a 500 error and in the error log it says “Premature end of script headers”. I double checked the ownership and permisions, even making the whole cgi-bin 777. Made sure cgi was working (a simple hello world one ran fine), manually added the path to perl to the top of awstats.pl. Not sure what else to try. This is awstats v6.2. Were there any other little ‘tricks’ you had to do to get it to work?