> I've installed AM Lite on an HP-UX 11.0 system running Apache 2 with PERL
> 5.8.0. When accessing http://root/cgi-bin/amadmin.pl, I get the following
> error:
>
> Server error!
> Error message:
> Premature end of script headers:
/opt/apache2/lib/htdocs/cgi-bin/amadmin.pl
> If you think this is a server error, please contact the webmaster
> Error 500
>
> I've done the following:
>
> 1. Validated that the path to perl is correct.
> 2. Ensured permissions on the cgi-bin dir and the file are loose enough
> (755).
> 3. Run the script from the command line to ensure the PERL binary is
> accessible by the user www.
> 3. I've done some other things, but my brain is fried, as I've been
> looking at this problem most of the day!
>
Kudos for not just telling us you had a 500 error.
> Following are the errors in the Apache error_log:
>
> syntax error in file amadmin.pl at line 221, next 2 tokens "grep {"
> syntax error in file amadmin.pl at line 224, next 2 tokens "@file)"
> syntax error in file amadmin.pl at line 241, next token "}"
> syntax error in file amadmin.pl at line 252, next token "}"
> syntax error in file amadmin.pl at line 275, next token "}"
> syntax error in file amadmin.pl at line 327, next token "}"
> syntax error in file amadmin.pl at line 381, next token "}"
> syntax error in file amadmin.pl at line 389, next 2 tokens "grep {"
> syntax error in file amadmin.pl at line 479, next token "}"
> syntax error in file amadmin.pl at line 485, next 2 tokens "grep {"
> amadmin.pl has too many errors.
> [Wed Jan 14 15:28:14 2004] [error] [client 172.28.6.107] Premature end of
> script headers: /opt/apache2/lib/htdocs/cgi-bin/amadmin.pl
>
> Since the file is a bit large to post, please see
> http://www.angelfire.com/fl5/davidlt77/index.html.
>
> By the way, I'm submitting to this newsgroup, rather than the CGI
> newsgroup, because the error is in the PERL code. It bombs at the command
> line--not just from a Web browser.
>
I would suggest you talk to the CGI Script Center, as well as taking it
off the web, unless of course you do have the permission to distribute it:
"Account
# Manager LITE may not under any circumstances be sold
# or redistributed without the written consent of CGI Script Center and
# its owner Diran Alemshah"
Do you have said consent?
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>