Softwares |
Main /
PrematureEndOfScriptHeadersErrorMain.PrematureEndOfScriptHeadersError HistoryHide minor edits - Show changes to output Changed line 23 from:
*Check /var/log/apache/suexec.log file that should give a solution. http://httpd.apache.org/docs/ to:
*Check /var/log/apache/suexec.log file that should give a solution. http://httpd.apache.org/docs/current/suexec.html Changed lines 1-7 from:
#!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type print "Hello, world!\n"; to:
(:Google1:) (:Googlemm:) Added lines 4-20:
!!Finding Reason for Errors. Sample hello world script.. (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) [@ #!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n"; @] (:tableend:) '''Where to check for errors''' Changed lines 25-33 from:
*Set the permission of the file to 755, which allows %green%Tracking Errors in the Script perl -wc helloworld to:
'''Upload your script is ASCII mode''' -Upload your Perl script in ASCII mode. -Set the permission of the file to 755, which allows the script to be executed by everybody. '''Tracking Errors in the Script''' (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) perl -wc helloworld.pl (:tableend:) Changed line 41 from:
to:
'''Running it without the syntax check options''': Changed lines 43-45 from:
to:
(:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) perl -w helloworld.pl (:tableend:) If something strange has gone wrong with your program and youre not sure where you should look for help, try the -w switch first. It will often point out exactly where the trouble is. ---- (:Google1:) (:Googlemm:) Added lines 1-8:
%blue%Sample hello world script #!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n"; ---- Changed lines 11-14 from:
*Check /var/log/apache/suexec.log file that should give a solution. http://httpd.apache.org/docs/1.3/suexec.html to:
*Check /var/log/apache/suexec.log file that should give a solution. http://httpd.apache.org/docs/1.3/suexec.html Added lines 1-20:
*Check domain/apache error log file. *Check /var/log/apache/suexec.log file that should give a solution. *Upload your Perl script in ASCII mode. *Set the permission of the file to 755, which allows the script to be executed by everybody. %green%Tracking Errors in the Script perl -wc helloworld.pl Will cause the Perl interpreter to check your script for syntax errors. %green%Running it without the syntax check options: perl -w helloworld.pl *If something strange has gone wrong with your program and not sure where you should look for help, try the -w switch first. It will often point out exactly where the trouble is. |