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.
4. I've done some other things, but my brain is fried, as I've been looking at this problem most of the day!
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.
Thank you!
Dave
20040115 Edit by Corion: Put code tags around error message
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.