Problems with 1.2.1 on Red Hat 7.2
Hi all, I just installed Koha 1.2.1 on a Red Hat 7.2 machine running Apache 1.3.22 using the installer.pl script. Everything looked good, but when I tried out the search engine I got the following error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, jferraro@athenscounty.lib.oh.us 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. The /var/log/httpd/error_log file contains the following entries: Can't locate Set/Scalar.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-lin ux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5 /site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_p erl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.6.1/i386-linux/C4/Sear ch.pm line 8. BEGIN failed--compilation aborted at /usr/lib/perl5/5.6.1/i386-linux/C4/Search.p m line 8. Compilation failed in require at /usr/local/koha/opac/cgi-bin/search.pl line 5. BEGIN failed--compilation aborted at /usr/local/koha/opac/cgi-bin/search.pl line 5. [Fri Jul 5 15:13:41 2002] [error] [client 66.213.78.100] Premature end of scrip t headers: /usr/local/koha/opac/cgi-bin/search.pl [Fri Jul 5 15:21:09 2002] [notice] caught SIGTERM, shutting down [Fri Jul 5 15:21:12 2002] [notice] Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_ss l/2.8.5 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.26 configured -- resuming normal operations [Fri Jul 5 15:21:12 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin /suexec) [Fri Jul 5 15:21:12 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) Any ideas? Joshua Ferraro Systems Administrator Nelsonville Public Library System
On Fri, 5 Jul 2002, Joshua Ferraro wrote:
Hi all,
I just installed Koha 1.2.1 on a Red Hat 7.2 machine running Apache 1.3.22 using the installer.pl script. Everything looked good, but when I tried out the search engine I got the following error:
Can't locate Set/Scalar.pm in @INC (@INC contains:
The installer.pl script should have warned you that you needed to have the Scalar perl module installed. Did you miss it, forget it, or did it never show up? In any case, try running: perl -MCPAN -e 'install Set::Scalar' and perl will install the module from the CPAN network. Steve.
On Fri, 5 Jul 2002, Joshua Ferraro wrote:
Can't locate Set/Scalar.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-lin ux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5 /site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_p erl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.6.1/i386-linux/C4/Sear ch.pm line 8.
I'm also a little surprised that the intranet/modules directory isn't included in the @INC variable. I would suspect that the SetEnv directive is not working for you, and you are probably using the old C4 directory on that machine. Actually, I'm certain you are as Search.pm is in /usr/lib/perl5/5.6.1/i386-linux/C4/. With Koha 1.2.1, this directory is now installed in your intranet folder under intranet/modules/C4. Can you send a copy of your VirtualHost configurations from apache? They probably need to be modified a bit. Steve.
I installed Set::Scalar and I get the same error. Now the log has the following: [Fri Jul 5 16:09:55 2002] [notice] Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_s l/2.8.5 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.26 configured -- resuming normal operations [Fri Jul 5 16:09:55 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/sbi /suexec) [Fri Jul 5 16:09:55 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) Here is the VirtualHost configuration: # Ports to listen to for Koha Listen 80 Listen 8080 # NameVirtualHost is used by one of the optional configurations detailed below #NameVirtualHost 11.22.33.44 # KOHA's OPAC Configuration <VirtualHost koha.athenscounty.lib.oh.us:80> ServerAdmin jferraro@athenscounty.lib.oh.us DocumentRoot /usr/local/koha/opac/htdocs ServerName koha.athenscounty.lib.oh.us ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/ ErrorLog /var/log/httpd/opac-error_log TransferLog /var/log/httpd/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" Options +Includes AddHandler server-parsed .html </VirtualHost> # KOHA's INTRANET Configuration <VirtualHost koha.athenscounty.lib.oh.us:8080> ServerAdmin jferraro@athenscounty.lib.oh.us DocumentRoot /usr/local/koha/intranet/htdocs ServerName koha.athenscounty.lib.oh.us ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/" ErrorLog /var/log/httpd/koha-error_log TransferLog /var/log/httpd/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" Options +Includes AddHandler server-parsed .html </VirtualHost> # If you want to use name based Virtual Hosting: # 1. remove the two Listen lines # 2. replace koha.athenscounty.lib.oh.us:80 wih your.opac.domain.name # 3. replace ServerName koha.athenscounty.lib.oh.us wih ServerName your.opac.d omain.name # 4. replace koha.athenscounty.lib.oh.us:8080 wih your intranet domain name # 5. replace ServerName koha.athenscounty.lib.oh.us wih ServerName your.intran et.domain.name # # If you want to use NameVirtualHost'ing (using two names on one ip address): # 1. Follow steps 1-5 above # 2. Uncomment the NameVirtualHost line and set the correct ip address <Directory /usr/local/koha/intranet> AuthUserFile /etc/kohaintranet.pass AuthType Basic AuthName "Koha Intranet (for librarians only)" Require valid-user </Directory> -----Original Message----- From: koha-admin@lists.katipo.co.nz [mailto:koha-admin@lists.katipo.co.nz]On Behalf Of Tonnesen Steve Sent: Friday, July 05, 2002 4:17 PM To: Joshua Ferraro Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Problems with 1.2.1 on Red Hat 7.2 On Fri, 5 Jul 2002, Joshua Ferraro wrote:
Can't locate Set/Scalar.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-lin ux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5 /site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_p erl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.6.1/i386-linux/C4/Sear ch.pm line 8.
I'm also a little surprised that the intranet/modules directory isn't included in the @INC variable. I would suspect that the SetEnv directive is not working for you, and you are probably using the old C4 directory on that machine. Actually, I'm certain you are as Search.pm is in /usr/lib/perl5/5.6.1/i386-linux/C4/. With Koha 1.2.1, this directory is now installed in your intranet folder under intranet/modules/C4. Can you send a copy of your VirtualHost configurations from apache? They probably need to be modified a bit. Steve. _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Joshua Ferraro -
Tonnesen Steve