Well, I think I followed the directions... I have virtual hosted koha and opac on my Apache server. I can hit all of the html pages for koha, but when I link to anything in the cgi-bin directories, I get an apache error message which is not particularly helpful: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request" Here is what I have checked: My directory structure: /var/www/koha ../html (contains the index.html and all of the subdirectories {images, acquisitions, admin, catalogue, etc) ../modules (contains all the .pm files) ../cgi-bin (contains all of the .pl files, circ directory, etc) My /etc/httpd/conf/httpd.conf files contains the following: NameVirtualHost 192.168.1.5 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # #<VirtualHost ip.address.of.host.some_domain.com> # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common #</VirtualHost> #ADDED FOR KOHA <VirtualHost 192.168.1.5> ServerName server # ServerPath /var/www/html DocumentRoot /var/www/html ScriptAlias /cgi-bin "/var/www/cgi-bin/" <Directory "/var/www/html"> AllowOverride None Options +Includes -FollowSymlinks -Indexes AddHandler server-parsed .html </Directory> </VirtualHost> <VirtualHost 192.168.1.5> ServerName koha ServerPath /var/www/html/koha DocumentRoot /var/www/koha/html Alias /images/ "/var/www/koha/html/images/" ScriptAlias /cgi-bin/koha/ "/var/www/koha/cgi-bin/" SetEnv PERL5LIB "/var/www/koha/modules" ErrorLog /var/log/httpd/koha-error_log <Directory "/var/www/koha/html"> AllowOverride None Options +Includes -FollowSymlinks -Indexes AddHandler server-parsed .html </Directory> </VirtualHost> <VirtualHost 192.168.1.5> ServerName opac ServerPath /var/www/opac/html DocumentRoot /var/www/opac/html Alias /images/ "/var/www/opac/html/images/" ScriptAlias /cgi-bin/koha/ "/var/www/opac/cgi-bin/" # SetEnv PERL5LIB "/var/www/opac/modules" ErrorLog /var/log/httpd/opac-error_log <Directory "/var/www/opac/html"> AllowOverride None Options +Includes -FollowSymlinks -Indexes AddHandler server-parsed .html </Directory> </VirtualHost> #<VirtualHost _default_:*> #</VirtualHost> #################### My /etc/koha.conf reads: database=Koha hostname=localhost user=koha password=koha ################## My Output.pm file contains the $path modification: $path="/var/www/koha/html/includes/" (which is where the includes are living). ################## What am I missing??? Many thanks! Pete Dubler, a volunteer for the Ridgeview Classical Schools, a charter K-12 campus in Fort Collins, Colorado
On Mon, 2002-06-17 at 16:52, Pete Dubler wrote:
Well, I think I followed the directions...
I have virtual hosted koha and opac on my Apache server. I can hit all of the html pages for koha, but when I link to anything in the cgi-bin directories, I get an apache error message which is not particularly helpful: [snip]
####################
My /etc/koha.conf reads:
database=Koha hostname=localhost user=koha password=koha
Ahh here is the problem, there is a bug in the installer which is creating the koha.conf field slightly different to what it should. It should be pass=koha (or whatever your password is) Ill add the bug into bugzillla, (thanks to CJ Lynce) for spotting it a little earlier. And get a fixed installer.pl out soon. For the meantime if you edit the koha.conf and change it, everything should work again. Hope this helps Chris -- Chris Cormack chris@katipo.co.nz Programmer 025 500 579 Katipo Communications www.katipo.co.nz
Chris, Thanks for your quick reply. Unfortunately, I mis-typed the contents of koha.conf in my original message. It DOES actually already read pass=koha So, unfortunately that is not the problem. Here are some entries from my error log perhaps they can provide some insight. ################# [Sun Jun 16 21:00:02 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/cgi-bin/koha/loadmodules.pl Can't locate C4/Output.pm in @INC (@INC contains: /var/www/html/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/cgi-bin/koha/maint/catmaintain.pl line 9. BEGIN failed--compilation aborted at /var/www/cgi-bin/koha/maint/catmaintain.pl line 9. [Sun Jun 16 21:00:28 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/cgi-bin/koha/maint/catmaintain.pl Can't locate C4/Output.pm in @INC (@INC contains: /var/www/html/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/cgi-bin/koha/member.pl line 7. BEGIN failed--compilation aborted at /var/www/cgi-bin/koha/member.pl line 7. [Sun Jun 16 21:03:00 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/cgi-bin/koha/member.pl Can't locate C4/Output.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/member.pl line 7. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/member.pl line 7. [Sun Jun 16 22:00:41 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/member.pl Can't locate C4/Output.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/admin/printers.pl line 23. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/admin/printers.pl line 23. [Sun Jun 16 22:00:59 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/admin/printers.pl Can't locate C4/Output.pm in @INC (@INC contains: /var/www/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/member.pl line 7. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/member.pl line 7. [Sun Jun 16 22:07:57 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/member.pl Can't locate C4/Stats.pm in @INC (@INC contains: /var/www/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/stats.pl line 6. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/stats.pl line 6. [Sun Jun 16 22:08:06 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/stats.pl Can't locate C4/Acquisitions.pm in @INC (@INC contains: /var/www/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/loadmodules.pl line 7. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/loadmodules.pl line 7. [Sun Jun 16 22:08:12 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl Can't locate C4/Output.pm in @INC (@INC contains: /var/www/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/admin/printers.pl line 23. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/admin/printers.pl line 23. [Sun Jun 16 22:09:05 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/admin/printers.pl Can't locate C4/Output.pm in @INC (@INC contains: /var/www/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/member.pl line 7. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/member.pl line 7. [Sun Jun 16 22:23:06 2002] [error] [client 192.168.1.11] Premature end of script headers: /var/www/koha/cgi-bin/member.pl Can't locate C4/Output.pm in @INC (@INC contains: /var/www/koha/modules /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/koha/cgi-bin/admin/categorie.pl line 22. BEGIN failed--compilation aborted at /var/www/koha/cgi-bin/admin/categorie.pl line 22. [Sun Jun 16 22:49:24 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/admin/categorie.pl ################ Now, the C4 directory is in place at: /usr/lib/perl5/site_perl/C4 It this not a correct location? Also, I thought I might uninstall and reinstall some of the RPMs, but when I go to do that I get contradicting messages. When I go to rpm -e one of the perl rpms I get the message that it is not installed. When I go to rpm -i or rpm -U the rpm, I get the message that it is already installed. Does this provide any clues. Sorry to be so dense... Thanks, Pete
you are using 192.168.2.5 twice use two different numbers i.e. 192.168.2.5 and 192.168.2.6 or any other like that, for that you hav to set two ip addresses for your machine using netconfig command or other. Md.Aftabuddin On Sun, 16 Jun 2002, Pete Dubler wrote:
Well, I think I followed the directions...
I have virtual hosted koha and opac on my Apache server. I can hit all of the html pages for koha, but when I link to anything in the cgi-bin directories, I get an apache error message which is not particularly helpful:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request"
Here is what I have checked:
My directory structure:
/var/www/koha ../html (contains the index.html and all of the subdirectories {images, acquisitions, admin, catalogue, etc) ../modules (contains all the .pm files) ../cgi-bin (contains all of the .pl files, circ directory, etc)
My /etc/httpd/conf/httpd.conf files contains the following: NameVirtualHost 192.168.1.5
# # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # #<VirtualHost ip.address.of.host.some_domain.com> # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common #</VirtualHost>
#ADDED FOR KOHA
<VirtualHost 192.168.1.5> ServerName server # ServerPath /var/www/html DocumentRoot /var/www/html ScriptAlias /cgi-bin "/var/www/cgi-bin/" <Directory "/var/www/html"> AllowOverride None Options +Includes -FollowSymlinks -Indexes AddHandler server-parsed .html </Directory> </VirtualHost>
<VirtualHost 192.168.1.5> ServerName koha ServerPath /var/www/html/koha DocumentRoot /var/www/koha/html Alias /images/ "/var/www/koha/html/images/" ScriptAlias /cgi-bin/koha/ "/var/www/koha/cgi-bin/" SetEnv PERL5LIB "/var/www/koha/modules" ErrorLog /var/log/httpd/koha-error_log <Directory "/var/www/koha/html"> AllowOverride None Options +Includes -FollowSymlinks -Indexes AddHandler server-parsed .html </Directory> </VirtualHost>
<VirtualHost 192.168.1.5> ServerName opac ServerPath /var/www/opac/html DocumentRoot /var/www/opac/html Alias /images/ "/var/www/opac/html/images/" ScriptAlias /cgi-bin/koha/ "/var/www/opac/cgi-bin/" # SetEnv PERL5LIB "/var/www/opac/modules" ErrorLog /var/log/httpd/opac-error_log <Directory "/var/www/opac/html"> AllowOverride None Options +Includes -FollowSymlinks -Indexes AddHandler server-parsed .html </Directory> </VirtualHost>
#<VirtualHost _default_:*> #</VirtualHost>
####################
My /etc/koha.conf reads:
database=Koha hostname=localhost user=koha password=koha
##################
My Output.pm file contains the $path modification:
$path="/var/www/koha/html/includes/"
(which is where the includes are living).
##################
What am I missing???
Many thanks!
Pete Dubler, a volunteer for the Ridgeview Classical Schools, a charter K-12 campus in Fort Collins, Colorado
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Chris Cormack -
Md. Aftabuddin -
Pete Dubler