I had the same problem -- make sure these three lines are at the beginning of each of your .pl's (right after the comment section):
use CGI; my $q = CGI->new(); print $q->header(); That fixed it for me. Jim Shilliday IT Director Equal Justice Center 1315 Walnut St. Suite 400 Philadelphia PA 19107 215-238-6970 -----Original Message----- From: Shekhar Prasad [mailto:[EMAIL PROTECTED] Sent: Saturday, September 04, 2004 2:19 PM To: [EMAIL PROTECTED] Cc: Taemoor Abbasi Subject: [Asterisk-Users] Help Running am-main.pl Perl/CGI on Apache Server Hi all, I've installed Asterisk on Linux Red Had 9. Now, I was trying to set up a GUI based system for the PBX. I downloaded some packages, but I have to have Perl running CGI scripts through the webserver. It does not allow me to. I am able to run a basic script that just just prints out html messages and nothing else. However, when I try to run am-main.pl or config.pl or any other cgi-bin scripts that came with Asterisk, I get a 500 error: Premature End of Script Header. I've tried changing the chmod to -x or 755 and also have included the header required to display the html script. However, no luck. I am able to run it in command line, but not through the Mozilla browser. Is this enough information I've provided? You can contact me directly if you need more information. shekhar . prasad at gmail . com shekhar _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
