seminole103
06-06-2000, 08:18 PM
Hi all,
I'm trying to configure my Red Hat 6.1 box to serve web pages with perl scripts using Apache (1.3.9), perl 5.005_03 and mod_perl (1.21).
I have a very simple "Hello World!" perl script that runs fine from command line, but whenever I try to run it through a web browser I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost 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.
This is what the error_log says:
[Tue Jun 6 18:50:39 2000] [error] [client xxx.xxx.xxx.xxx] Premature end of script
headers: /home/<username>/public_html/cgi-bin/hello2.pl
Does anyone know why this would happen and more importantly how to fix it? I looked on the apache and perl web sites. They discuss this being an issue when running earlier versions of Apache with earlier versions of mod_perl/perl.
Any help would be greaty appreciated!!
Thanks,
Phil
I'm trying to configure my Red Hat 6.1 box to serve web pages with perl scripts using Apache (1.3.9), perl 5.005_03 and mod_perl (1.21).
I have a very simple "Hello World!" perl script that runs fine from command line, but whenever I try to run it through a web browser I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost 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.
This is what the error_log says:
[Tue Jun 6 18:50:39 2000] [error] [client xxx.xxx.xxx.xxx] Premature end of script
headers: /home/<username>/public_html/cgi-bin/hello2.pl
Does anyone know why this would happen and more importantly how to fix it? I looked on the apache and perl web sites. They discuss this being an issue when running earlier versions of Apache with earlier versions of mod_perl/perl.
Any help would be greaty appreciated!!
Thanks,
Phil