Premature end of script headers
Dear All, I have installed Koha without any error. But, when I open the site http://localhost, I get a quick message stating that Koha has been installed successfully, following which I get the following error message: Premature end of script headers: opac-main.pl I understand that this issue was dealt in the following thread: http://lists.katipo.co.nz/public/koha/2003/006996.html and that the solution suggested is to give the web server permission to execute the Perl scripts ( http://lists.katipo.co.nz/public/koha/2003/006997.html) 1. My question/doubt : How does one do this on Windows ? All that I could possibly think of was to remove the read-only attribute of C:\usr\koha228\opac\cgi-bin\koha, which contains opac-main.pl file. If so, I tried doing this, but for some reason, the read only attribute does not get removed. (I am the computer administrator) 2. If this issue has been answered elsewhere, please redirect me. I tried searching the Koha archives, and the links listed above were the ones I could find. 3. I also looked at : http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_wh..., but couldn't solve the problem. Please help me solve this problem. -- Thanks & Regards, Sharath B Raju
"sharath raju" <brsharath@gmail.com> wrote: [...]
successfully, following which I get the following error message: Premature end of script headers: opac-main.pl
I understand that this issue was dealt in the following thread: http://lists.katipo.co.nz/public/koha/2003/006996.html and that the solution suggested is to give the web server permission to execute the Perl scripts [...]
That message can also happen for other reasons. About the time of the above thread, one or other of the main Apache distributors had stopped enabling CGI by default (because it can burn new sysadmins) which is why it was suggested. But that sounds like it is unlikely to be the problem on Windows. Check the error log (location in koha-httpd.conf usually) for more information on what the problem may be. Best wishes, -- MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
On Jan 29, 2008 4:56 AM, MJ Ray <mjr@phonecoop.coop> wrote:
"sharath raju" <brsharath@gmail.com> wrote: [...]
successfully, following which I get the following error message: Premature end of script headers: opac-main.pl
I understand that this issue was dealt in the following thread: http://lists.katipo.co.nz/public/koha/2003/006996.html and that the solution suggested is to give the web server permission to execute the Perl scripts [...]
That message can also happen for other reasons. About the time of the above thread, one or other of the main Apache distributors had stopped enabling CGI by default (because it can burn new sysadmins) which is why it was suggested.
But that sounds like it is unlikely to be the problem on Windows. Check the error log (location in koha-httpd.conf usually) for more information on what the problem may be.
I don't know where to find koha-http.conf. Instead, I have posted the contents of the log files at C:\Program Files\Apache Group\Apache2\logs to this thread.
Best wishes, -- MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/ _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Regards, Sharath B Raju
This is not the real log file. After installation of Koha the error logs are maintained in intranet-error_log file in the location: C:\Program Files\Apache Group\Apache2\logs\ Ata On Jan 29, 2008 11:02 AM, sharath raju <brsharath@gmail.com> wrote:
On Jan 29, 2008 4:56 AM, MJ Ray <mjr@phonecoop.coop> wrote:
"sharath raju" <brsharath@gmail.com> wrote: [...]
successfully, following which I get the following error message: Premature end of script headers: opac-main.pl
I understand that this issue was dealt in the following thread: http://lists.katipo.co.nz/public/koha/2003/006996.html and that the solution suggested is to give the web server permission to execute the Perl scripts [...]
That message can also happen for other reasons. About the time of the above thread, one or other of the main Apache distributors had stopped enabling CGI by default (because it can burn new sysadmins) which is why it was suggested.
But that sounds like it is unlikely to be the problem on Windows. Check the error log (location in koha-httpd.conf usually) for more information on what the problem may be.
I don't know where to find koha-http.conf. Instead, I have posted the contents of the log files at C:\Program Files\Apache Group\Apache2\logs to this thread.
Best wishes, -- MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/ _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Regards, Sharath B Raju _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On Jan 29, 2008 6:31 AM, Rob Weir <robweir@alum.drexel.edu> wrote:
You'll find a paragraph with some suggestions for troubleshooting this error on a windows machine on the wiki at: http://wiki.koha.org/doku.php?id=kohawintroubleshoot
I checked the error logs. Here is the report: I started and stopped Apache. Here is the corresponding entry in C:\Program Files\Apache Group\Apache2\logs\error.log. From, what I understand, it is normal:
[Tue Jan 29 10:24:26 2008] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations [Tue Jan 29 10:24:26 2008] [notice] Server built: Jul 27 2006 15:55:03 [Tue Jan 29 10:24:26 2008] [notice] Parent: Created child process 2008 [Tue Jan 29 10:24:26 2008] [notice] Child 2008: Child process is running [Tue Jan 29 10:24:26 2008] [notice] Child 2008: Acquired the start mutex. [Tue Jan 29 10:24:26 2008] [notice] Child 2008: Starting 250 worker threads. [Tue Jan 29 10:26:13 2008] [notice] Parent: Received shutdown signal -- Shutting down the server. [Tue Jan 29 10:26:13 2008] [notice] Child 2008: Exit event signaled. Child process is ending. [Tue Jan 29 10:26:14 2008] [notice] Child 2008: Released the start mutex [Tue Jan 29 10:26:15 2008] [notice] Child 2008: Waiting for 250 worker threads to exit. [Tue Jan 29 10:26:15 2008] [notice] Child 2008: All worker threads have exited. [Tue Jan 29 10:26:15 2008] [notice] Child 2008: Child process is exiting 2. I also checked the C:\Program Files\Apache Group\Apache2\logs\opac- error.log. I couln't find much information: [Tue Jan 29 10:26:08 2008] [error] [client 127.0.0.1] Premature end of script headers: opac-main.pl [Tue Jan 29 10:31:03 2008] [error] [client 127.0.0.1] Premature end of script headers: opac-main.pl I also saw the following line: [Mon Jan 28 19:37:31 2008] [error] [client 127.0.0.1] File does not exist: C:/usr/koha228/opac/htdocs/favicon.ico But when I searched for the favicon.ico file, I found it at C:\usr\koha228\opac\htdocs\opac-tmpl\npl\en\includes\favicon <http://wiki.koha.org/doku.php?id=kohawintroubleshoot>
If you still need help, post the last few lines of your error log to the list.
Strangely, I am faced with a new problem. When I try to open
http://127.0.0.1, in firefox, the status bar shows Waiting for 127.0.0.1 and a blank DOS window titled C:\usr\bin\perl.hwd opens. If I close this DOS window, then I get the usual "Premature end of script header" message
ROb
sharath raju wrote:
Dear All,
I have installed Koha without any error. But, when I open the site http://localhost, I get a quick message stating that Koha has been installed successfully, following which I get the following error message: Premature end of script headers: opac-main.pl
I understand that this issue was dealt in the following thread: http://lists.katipo.co.nz/public/koha/2003/006996.html and that the solution suggested is to give the web server permission to execute the Perl scripts ( http://lists.katipo.co.nz/public/koha/2003/006997.html)
1. My question/doubt : How does one do this on Windows ? All that I could possibly think of was to remove the read-only attribute of C:\usr\koha228\opac\cgi-bin\koha, which contains opac-main.pl file. If so, I tried doing this, but for some reason, the read only attribute does not get removed. (I am the computer administrator)
2. If this issue has been answered elsewhere, please redirect me. I tried searching the Koha archives, and the links listed above were the ones I could find.
3. I also looked at : http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_wh..., but couldn't solve the problem.
Please help me solve this problem. -- Thanks & Regards, Sharath B Raju
------------------------------
_______________________________________________ Koha mailing listKoha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Regards, Sharath B Raju
Apache is configured to use virtual hosts, so you should be typing either "opac" or "intranet" in the address bar of your browser to access koha, not 127.0.0.1. If apache is running, you should get the apache default splash screen when you access 127.0.0.1. On my system, it just says "It works!" What version of perl is installed? Did all the perl modules install correctly when you did the koha install? Rob sharath raju wrote:
Strangely, I am faced with a new problem. When I try to open http://127.0.0.1, in firefox, the status bar shows Waiting for 127.0.0.1 <http://127.0.0.1> and a blank DOS window titled C:\usr\bin\perl.hwd opens. If I close this DOS window, then I get the usual "Premature end of script header" message
Dear All, Referring to Ata ur Rehman's suggestion, here are the contents of my intranet-error log file: [Wed Jan 30 20:07:16 2008] [error] [client 127.0.0.1] File does not exist: C:/usr/koha228/intranet/htdocs/favicon.ico [Wed Jan 30 20:07:16 2008] [error] [client 127.0.0.1] Premature end of script headers: mainpage.pl (It has the same contents as my opac-error.log ! ) Referring to Rob Weir's suggestion, http://127.0.0.1 and http://opac give the same error (Premature end..) http://intranet also gives the same error, though in this case, the error refers to mainpage.pl rather than opac-main.pl Perl Version: ActivePerl-5.8.8.817-MSWin32-x86-257965 All the Perl modules installed correctly. The strange problem, I was referring to in my previous post (blank DOS window titled C:\usr\bin\perl.hwd appears) has disappeared for some unknown reason ! :) Thanks you for the help people. On Jan 30, 2008 12:38 AM, Rob Weir <robweir@alum.drexel.edu> wrote:
Apache is configured to use virtual hosts, so you should be typing either "opac" or "intranet" in the address bar of your browser to access koha, not 127.0.0.1.
If apache is running, you should get the apache default splash screen when you access 127.0.0.1. On my system, it just says "It works!"
What version of perl is installed? Did all the perl modules install correctly when you did the koha install?
Rob
sharath raju wrote:
Strangely, I am faced with a new problem. When I try to open http://127.0.0.1, in firefox, the status bar shows Waiting for 127.0.0.1and a blank DOS window titled C:\usr\bin\perl.hwd opens. If I close this DOS window, then I get the usual "Premature end of script header" message
-- Regards, Sharath B Raju
Hey people, Does anyone have any more suggestions to solve the "Premature end of script headers" problem ? On Jan 30, 2008 8:17 PM, sharath raju <brsharath@gmail.com> wrote:
Dear All,
Referring to Ata ur Rehman's suggestion, here are the contents of my intranet-error log file: [Wed Jan 30 20:07:16 2008] [error] [client 127.0.0.1] File does not exist: C:/usr/koha228/intranet/htdocs/favicon.ico [Wed Jan 30 20:07:16 2008] [error] [client 127.0.0.1] Premature end of script headers: mainpage.pl
(It has the same contents as my opac-error.log ! )
Referring to Rob Weir's suggestion, http://127.0.0.1 and http://opac give the same error (Premature end..) http://intranet also gives the same error, though in this case, the error refers to mainpage.pl rather than opac-main.pl
Perl Version: ActivePerl-5.8.8.817-MSWin32-x86-257965 All the Perl modules installed correctly.
The strange problem, I was referring to in my previous post (blank DOS window titled C:\usr\bin\perl.hwd appears) has disappeared for some unknown reason ! :)
Thanks you for the help people.
On Jan 30, 2008 12:38 AM, Rob Weir <robweir@alum.drexel.edu> wrote:
Apache is configured to use virtual hosts, so you should be typing either "opac" or "intranet" in the address bar of your browser to access koha, not 127.0.0.1.
If apache is running, you should get the apache default splash screen when you access 127.0.0.1. On my system, it just says "It works!"
What version of perl is installed? Did all the perl modules install correctly when you did the koha install?
Rob
sharath raju wrote:
Strangely, I am faced with a new problem. When I try to open http://127.0.0.1, in firefox, the status bar shows Waiting for 127.0.0.1and a blank DOS window titled C:\usr\bin\perl.hwd opens. If I close this DOS window, then I get the usual "Premature end of script header" message
-- Regards, Sharath B Raju
-- Regards, Sharath B Raju
sharath raju wrote:
Does anyone have any more suggestions to solve the "Premature end of script headers" problem ?
Handy hint: In the file that is causing trouble (mainpage.pl) change the perl source so that the CGI lists fatal errors to the browser: use CGI; use CGI::Carp qw(fatalsToBrowser); # add this line HTH! cheers rickw -- _________________________________ Rick Welykochy || Praxis Services Say what you will about the miracle of unquestioning faith, I consider a capacity for it terrifying and absolutely vile. -- Howard W Campbell in Kurt Vonnegut Jr's "Mother Night"
hello, i' m from Chile, sorry for my english. can u help me?. [Koha] Premature end of script headers Premature end of script headers? best regards --------------------------------------------------------------------- La informacion contenida en esta transmision (y sus documentos adjuntos), es confidencial y no puede ser usada o difundida por personas distintas a su(s) destinatario(s). El uso no autorizado de la informacion contenida en esta transmision puede ser sancionado criminalmente de conformidad con la ley chilena. Si ha recibido esta transmision por error, por favor destruyala y notifique al remitente. Atendido que no existe certidumbre que el presente mensaje no sera modificado como resultado de su transmision por correo electronico, nuestra empresa, no sera responsable si el contenido del mismo ha sido modificado".
2009/12/18 Jorge Pino <jorge.pino@exceed.cl>:
hello, i' m from Chile, sorry for my english. can u help me?. [Koha] Premature end of script headers Premature end of script headers?
best regards
Please provide us with more information regarding the error you are getting. When do you get this error. Have you installed Koha properly? Which Operating System you are using for Koha? Above information will help us to understand your problem. -- With Regards Abhishek Amberkar http://www.kohaindia.org/ RDG Library Services Mumbai, India
participants (7)
-
Abhishek Amberkar [अभिषेक] -
Ata ur Rehman -
Jorge Pino -
MJ Ray -
Rick Welykochy -
Rob Weir -
sharath raju