Hi there. I have just downloaded and install Koha... I got all the perl modules, but had some trouble with DBI and DBD::mysql, which I ended up installing myself (perl recognizes them as the most up to date...)... And I'm created Virtual hosts... and cgi-bin ScriptAliases... and all sorts of stuff... but I still get a 500 server error. I'm really new as this, so I'm not sure how to diagnose the problems... Here is my virtual host setup from apache (I'm running SuSE linux 7.3 with 2.4.17) <VirtualHost 10.14.0.5:80> ServerAdmin webmaster@www2.twinsburg.org DocumentRoot /usr/local/httpd/htdocs/opac-html Servername opac.koha.twinsburg.org ServerAlias www.koha.twinsburg.org ScriptAlias /cgi-bin/ "/usr/local/httpd/htdocs/opac-html/cgi-bin/" ErrorLog /var/log/httpd/opac.koha.twinsburg.org-error_log CustomLog /var/log/httpd/opac.koha.twinsburg.org-access_log combined </VirtualHost> <VirtualHost 10.14.0.5:80> ServerAdmin webmaster@www2.twinsburg.org DocumentRoot /usr/local/httpd/htdocs/intranet-html Servername staff.koha.twinsburg.org ServerAlias www.staff.koha.twinsburg.org ScriptAlias /cgi-bin/ "/usr/local/httpd/htdocs/intranet-html/cgi-bin/" ErrorLog /var/log/httpd/staff.koha.twinsburg.org-error_log CustomLog /var/log/httpd/staff.koha.twinsburg.org-access_log combined </VirtualHost> My directories are /usr/local/httpd/htdocs/intranet-html * opac-html What exactly am I missing... -- #!~ CJ Lynce #!~ Twinsburg Public Library #!~ cjlynce@twinsburg.lib.oh.us #!~ Netfinity 5100 - Dual 866 P3 #!~ 512MB RAM 18.2GB HD #!~ SuSE 7.3 2.4.17d #!~ Way to much fun!
On Thu, 2002-03-14 at 13:51, CJ Lynce wrote:
Hi there. I have just downloaded and install Koha... I got all the perl modules, but had some trouble with DBI and DBD::mysql, which I ended up installing myself (perl recognizes them as the most up to date...)...
And I'm created Virtual hosts... and cgi-bin ScriptAliases... and all sorts of stuff... but I still get a 500 server error. I'm really new as this, so I'm not sure how to diagnose the problems... Here is my virtual host setup from apache (I'm running SuSE linux 7.3 with 2.4.17)
Hi ya Can you take a look in your error logs please? /var/log/httpd/opac.koha.twinsburg.org-error_log and ErrorLog /var/log/httpd/staff.koha.twinsburg.org-error_log This should tell us what the actual error is Chris -- Chris Cormack Programmer 025 500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
This is what my last few erros from the staff side are --------------------- Can't call method "prepare" on an undefined value at /usr/lib/perl5/site_perl/5.6.1/C4/Circulation/Circ2.pm line 67, <KC> line 4. [Thu Mar 14 07:34:12 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/intranet-html /cgi-bin/koha/circ/circulation.pl DBI->connect(koha:localhost) failed: Unknown database 'koha' at /usr/lib/perl5/site_perl/5.6.1/C4/Database.pm line 77 Can't call method "prepare" on an undefined value at /usr/lib/perl5/site_perl/5.6.1/C4/Circulation/Circ2.pm line 67, <KC> line 4. [Thu Mar 14 07:34:14 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/intranet-html /cgi-bin/koha/circ/circulation.pl [Thu Mar 14 07:40:32 2002] [error] [client 10.14.0.141] File does not exist: /usr/local/httpd/htdocs/intranet-html/images/fron t-mouseover-members.gif Can't locate C4/Circulation/Circ2.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/per l5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at /usr/local/httpd/htdocs/intranet-h tml/cgi-bin/koha/circ/circulation.pl line 4. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/intranet-html/cgi-bin/koha/circ/circulation.pl line 4. [Thu Mar 14 07:40:34 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/intranet-html /cgi-bin/koha/circ/circulation.pl ---------------------------- I noticed on here that it says koha isnt a database.... but It IS created in mysql... hum.. And from the OPAC side ---------------------- Can't locate C4/Search.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_per l/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at /usr/local/httpd/htdocs/opac-html/cgi-bin/koh a/search.pl line 10. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/opac-html/cgi-bin/koha/search.pl line 10. [Thu Mar 14 07:53:18 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/opac-html/cgi -bin/koha/search.pl ------------------------ Much smaller Thanks for the help! -CJ Chris Cormack wrote:
On Thu, 2002-03-14 at 13:51, CJ Lynce wrote:
Hi there. I have just downloaded and install Koha... I got all the perl modules, but had some trouble with DBI and DBD::mysql, which I ended up installing myself (perl recognizes them as the most up to date...)...
And I'm created Virtual hosts... and cgi-bin ScriptAliases... and all sorts of stuff... but I still get a 500 server error. I'm really new as this, so I'm not sure how to diagnose the problems... Here is my virtual host setup from apache (I'm running SuSE linux 7.3 with 2.4.17)
Hi ya
Can you take a look in your error logs please? /var/log/httpd/opac.koha.twinsburg.org-error_log and ErrorLog /var/log/httpd/staff.koha.twinsburg.org-error_log
This should tell us what the actual error is
Chris
-- Chris Cormack Programmer 025 500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
On Thu, 2002-03-14 at 14:07, CJ Lynce wrote:
This is what my last few erros from the staff side are --------------------- Can't call method "prepare" on an undefined value at /usr/lib/perl5/site_perl/5.6.1/C4/Circulation/Circ2.pm line 67, <KC> line 4. [Thu Mar 14 07:34:12 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/intranet-html /cgi-bin/koha/circ/circulation.pl DBI->connect(koha:localhost) failed: Unknown database 'koha' at /usr/lib/perl5/site_perl/5.6.1/C4/Database.pm line 77 Can't call method "prepare" on an undefined value at /usr/lib/perl5/site_perl/5.6.1/C4/Circulation/Circ2.pm line 67, <KC> line 4. [Thu Mar 14 07:34:14 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/intranet-html /cgi-bin/koha/circ/circulation.pl
Hmm ok here its finding the C4 modules (C4/Database.pm etc) But its not connecting to the database. And the database exists, mysqlshow shows it there, and its not spelt Koha or anything?
[Thu Mar 14 07:40:32 2002] [error] [client 10.14.0.141] File does not exist: /usr/local/httpd/htdocs/intranet-html/images/fron t-mouseover-members.gif Can't locate C4/Circulation/Circ2.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/per l5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at /usr/local/httpd/htdocs/intranet-h tml/cgi-bin/koha/circ/circulation.pl line 4. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/intranet-html/cgi-bin/koha/circ/circulation.pl line 4.
[Thu Mar 14 07:40:34 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/intranet-html /cgi-bin/koha/circ/circulation.pl ----------------------------
This is odd now it cant find the C4 modules, (the ones it just found 6 minutes before hand) They havent been moved or anything?
I noticed on here that it says koha isnt a database.... but It IS created in mysql... hum..
And from the OPAC side ---------------------- Can't locate C4/Search.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_per l/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at /usr/local/httpd/htdocs/opac-html/cgi-bin/koh a/search.pl line 10. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/opac-html/cgi-bin/koha/search.pl line 10. [Thu Mar 14 07:53:18 2002] [error] [client 10.14.0.141] Premature end of script headers: /usr/local/httpd/htdocs/opac-html/cgi -bin/koha/search.pl ------------------------
Yeah this is just not finding the C4 modules again. They are all in /usr/lib/perl5/site_perl/5.6.1/C4/ ? Chris -- Chris Cormack Programmer 025 500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
participants (2)
-
Chris Cormack -
CJ Lynce