Lawliet has asked for the wisdom of the Perl Monks concerning the following question:
Let me start off saying I have searched Perlmonks as well as the internets for answers. Obviously none were found.
Now, I have a Perl script, 'index.pl', that I am using as the home page of a website. I wrote it using CGI::Pretty and DBI (as well as CGI::Carp qw(fatalsToBrowser) - so don't bother suggesting that; it does not output anything other than 500 Internal Server Error). I have chmodded it to 755 as well - so it would be pointless to suggest that. I have tested another perl script:
#!/usr/bin/perl -Tw use strict; use DBI; use CGI::Pretty; use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; print "This is a URL test";
Which printed "This is a URL test". I tried moving the print $query->header; in index.pl to the fourth line (right after I use CGI) to no avail. I tested the syntax with the -c run time operator and Perl had no complaints. I checked the log file and it stated Premature end of script headers: index.pl which did not help at all because I am told (by the internets) that that error could be sundry problems.
I think I covered all the automated responses...
So - I ask (not limited to but including) you: what do I need to do to fix this issue?
Let me clear a few things up in case the solution is obvious and I have been looking at the code too long:
print $query->header, $query->start_html(-title => $headertitle, -head => meta({-http_equiv => 'Content-Typ +e', -content => 'text/html'}), -meta => { 'description' => $metadesc, 'ke +ywords' => $metakeyw }, -style => {'src' => $cssfile}, );
</wall_o'_text>
Update (15 hours after initial post): Got it working. I used ikegami's method of commenting everything out et cetera and found out the ftp client I was using failed at chmodding. Thanks for your help.
I'm so adjective, I verb nouns!
chomp; # nom nom nom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Internal Server Error
by ikegami (Patriarch) on Sep 30, 2008 at 04:46 UTC | |
|
Re: Internal Server Error
by moritz (Cardinal) on Sep 30, 2008 at 07:51 UTC | |
by sasdrtx (Friar) on Sep 30, 2008 at 11:41 UTC | |
by moritz (Cardinal) on Sep 30, 2008 at 12:33 UTC | |
|
Re: Internal Server Error
by NetWallah (Canon) on Sep 30, 2008 at 05:13 UTC | |
|
Re: Internal Server Error
by Popcorn Dave (Abbot) on Sep 30, 2008 at 04:34 UTC | |
|
Re: Internal Server Error
by kubrat (Scribe) on Sep 30, 2008 at 16:14 UTC |