Koha 2.2, browser wants to download mainpage.pl or opac-main.pl
ok, I am back to Koha 2.2.9 because everything went bezerk here with 3.0 Reinstalling 2.2.9 went very smooth compared to 3.0, but when I type the koha address in the browser, the browser opens a window that says 'opening mainpage.pl You have chosen to open mainpage.pl which is a: PL file from: http://debian:8080 What should Iceweasel do with this file? I don't want it to open it or save it to disk. cgi.load is enabled in apache I need help! Marty koha-error_log output: [Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] DBI connect(':','',...) failed: Access denied for user 'www-data'@'localhost' (using p$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] Can't call method "prepare" on an undefined value at /usr/local/koha/intranet/modules/$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] Premature end of script headers: mainpage.pl opac-access_log output; 127.0.1.1 - - [14/Dec/2009:20:56:43 -0500] "GET / HTTP/1.1" 304 - 127.0.1.1 - - [14/Dec/2009:20:56:43 -0500] "GET /cgi-bin/koha/opac-main.pl HTTP/1.1" 500 692 opac-error_log output; [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] DBI connect(':','',...) failed: Access denied for user 'www-data'@'localhost' (using password: NO) at /usr/local/koha/intranet/modules/C4/Context.pm line 411 [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4/Context.pm line 229. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] DBI connect(':','',...) failed: Access denied for user 'www-data'@'localhost' (using password: NO) at /usr/local/koha/intranet/modules/C4/Context.pm line 411 [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] Can't call method "prepare" on an undefined value at /usr/local/koha/opac/cgi-bin/opac-main.pl line 17. [Mon Dec 14 20:56:44 2009] [error] [client 127.0.1.1] Premature end of script headers: opac-main.pl __________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.
Marty wrote:
Reinstalling 2.2.9 went very smooth compared to 3.0, but when I type the koha address in the browser, the browser opens a window that says 'opening mainpage.pl You have chosen to open mainpage.pl which is a: PL file from: http://debian:8080
That's symptomatic of the Koha mainpage crashing before it sends anything, even the html headers. Apache or Iceweasel then guess what to do with .pl files and get it wrong. Check the error log...
koha-error_log output: /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] read_config_file(/etc/koha.conf) returned undef at /usr/local/koha/intranet/modules/C4$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] DBI connect(':','',...) failed: Access denied for user 'www-data'@'localhost' (using p$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] Can't call method "prepare" on an undefined value at /usr/local/koha/intranet/modules/$[Mon Dec 14 21:16:30 2009] [error] [client 127.0.1.1] Premature end of script headers: mainpage.pl
So "Premature end of script headers" also suggests that it crashed before sending the html headers. Just before that "read_config_file(/etc/koha.conf) returned undef" suggests that /etc/koha.conf is unreadable for some reason. I'd check it. Hope that helps, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
participants (2)
-
Marty -
MJ Ray