http://www.perlmonks.org?node_id=1190099


in reply to Problem with apache server

Hi,

Like CGI Help Guide says  use CGI::Carp qw/ fatalsToBrowser /;

This avoids both the problems you reported, permission denied to open log file (an "admin" problem, he who configure apache and grant permissions), and premature end of script headers (your program)

Every perl/CGI problem can be solved if you work through CGI Help Guide

When you find a problem on the list, use a solution from the list,

If you get stuck or find a problem not on the list, post the error message and problem description here