All pastes #717108 Raw Edit

Anonymous

public text v1 · immutable
#717108 ·published 2007-09-27 12:14 UTC
rendered paste body
[root@localhost cgi-bin]# cd ..
[root@localhost htdocs]#  tr -cd '[:print:]\n\t' <cgi-bin/hello_the_world.pl> cgi-bin/outputfile.pl
[root@localhost htdocs]# cd cgi-bin
[root@localhost cgi-bin]# tr -cd '[:print:]\n\t' <hello_the_world.pl> outputfile.pl
[root@localhost cgi-bin]# tr -cd '[:print:]\n\t' <hello_the_world.pl> outputfile_new.pl
[root@localhost cgi-bin]# perl outputfile_new.pl
Content-Type: text/html; charset=ISO-8859-1

Hello World![root@localhost cgi-bin]# cd ..
[root@localhost htdocs]# chmod -R 755 cgi-bin
[root@localhost htdocs]#




Go to web address...

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, ....... and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.0.52 (Red Hat) Server at .....Port 80



then in error log:

[Thu Sep 27 13:13:55 2007] [error] [client 81.86.45.98] Premature end of script headers: outputfile_new.pl 
[Thu Sep 27 13:12:36 2007] [error] [client 81.86.45.98] Premature end of script headers: outputfile.pl 
[Thu Sep 27 13:12:35 2007] [error] [client 81.86.45.98] Premature end of script headers: outputfile.pl 
[Thu Sep 27 13:12:34 2007] [error] [client 81.86.45.98] Premature end of script headers: outputfile_new.pl