[Koha] Internal Server Error - C4::Databse

Alfred Vahau Alf.Vahau at upng.ac.pg
Wed Dec 21 20:29:32 NZDT 2005


I have installed Koha on Ubuntu Linux 4.10 (Warty distribution) with 
Mysql 4.0.17 and Apache 1.3.33
I set up two named-based virtual hosts to one IP address and the server 
is dedicated to Koha.

My virtual hosts configs. are shown in attachment.

I access the home page by typing http://128.1.9.245:80/index.html which 
serves the "Welcome to Koha" Message
and the next page is loaded according to the meta-equiv directive in 
index.html. The URL is /cgi-bin/mainpage.pl

But the redirected page cannot load and results in the Internal Server 
Error message shown in the attachment.
I checked the error_log file and noted the error which is shown in the 
attachment. The mainpage.pl is looking
for a C4/Database.pm module as indicated by use C4::Database line.

I headed to CPAN to search for C4::Database but I couldn't locate a 
module with that specific name. The ones
which were shown, I thought, were not relevant to Koha.

So my question, where are these C4::Database, etc modules referred to in 
the mainpage.pl. Are they in Mysql
database? I fired up Mysql and tried to list the tables in Koha but got 
an error message that the contents of Koha
database could not be displayed.

I am quite a long way from getting Koha configured correctly as there 
are many dependent Perl Modules that
must interact correctly.

I have googled for the error message but on a slow network, the download 
of information is frustrating.

Thanks in advance for the assistance.

Alfred Vahau
IT Services




-------------- next part --------------
Can't locate C4/Database.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/mainpage.pl line 5.
BEGIN failed--compilation aborted at /usr/local/koha/intranet/cgi-bin/mainpage.pl line 5.
[Wed Dec 21 17:23:40 2005] [error] [client 128.1.2.245] Premature end of script headers: /usr/local/koha/intranet/cgi-bin/mainpage.pl

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

NameVirtualHost 128.1.9.245:80 

<VirtualHost 128.1.9.245:80>
    ServerAdmin webmaster at upng.ac.pg
    DocumentRoot /usr/local/koha/intranet/htdocs
#   ServerName dummy-host.example.com
#   ErrorLog logs/dummy-host.example.com-error_log
#   CustomLog logs/dummy-host.example.com-access_log common

    <Directory "/usr/local/koha/intranet/htdocs">
      AllowOverride All
#      Order allow,deny
       Options Includes
       Options ExecCGI
       Allow from all
    </Directory>

#   ScriptAlias /cgi-bin/ "/usr/local/koha/intranet/cgi-bin/"

<Directory "/usr/local/koha/intranet/cgi-bin">
       AllowOverride All
       Options +Includes
       Options +ExecCGI
       Allow from all
</Directory>

  ScriptAlias /cgi-bin/ /usr/local/koha/intranet/cgi-bin/

</VirtualHost>

 <VirtualHost 128.1.9.245:80>
    ServerAdmin webmaster at upng.ac.pg
    DocumentRoot /usr/local/koha/opac/htdocs
#   ServerName dummy-host.example.com
#   ErrorLog logs/dummy-host.example.com-error_log
#   CustomLog logs/dummy-host.example.com-access_log common

   <Directory "/usr/local/koha/opac/htdocs">
      AllowOverride All
#      Order allow,deny
       Options Includes
       Options ExecCGI
       Allow from all
   </Directory>

    <Directory "/usr/local/koha/opac/cgi-bin">
       AllowOverride All
       Options +Includes
       Options +ExecCGI
       Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/local/koha/opac/cgi-bin/
 </VirtualHost>


-------

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

Please contact the server administrator, webmaster at upng.ac.pg 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/1.3.33 Server at kmslib.upng.ac.pg Port 80


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


#!/usr/bin/perl
use HTML::Template;
use strict;
require Exporter;
use C4::Database;
use C4::Output;  # contains gettemplate
use C4::Interface::CGI::Output;
use CGI;
use C4::Auth;




More information about the Koha mailing list