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 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@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@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@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;
Alfred - C4::Database is a Koha module. Look in /usr/local/koha/intranet/modules/C4 and you'll find Database.pm I would guess your problem relates to your Apache config. Stephen Alfred Vahau said:
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
-- Stephen Hedges Skemotah Solutions, USA www.skemotah.com -- shedges@skemotah.com
Hi Stephen, The Apache error_log shows shows that C4/Database.pm can't be found. i.e the path to Database.pm in not included in the standard Perl paths shown by the array @INC. I must do some tweaking to have the /usr/local/koha/intranet/module/C4 included in the Perl paths. There are several ways of doing this in Perl. Alfred, Stephen Hedges wrote:
Alfred -
C4::Database is a Koha module. Look in /usr/local/koha/intranet/modules/C4 and you'll find Database.pm
I would guess your problem relates to your Apache config.
Stephen
Alfred Vahau said:
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
participants (2)
-
Alfred Vahau -
Stephen Hedges