[Koha] Internal server error (fwd)
Ron Wickersham
rjw at alembic.com
Sat Apr 19 10:29:13 NZST 2003
hi Mohamed,
last weekend i installed Mandrake 9.0 and Koha 1.9.2, so a different version,
but i think the same things will apply.
the installer script for 1.9.2 set up virtual hosting entries in
/etc/httpd/conf/httpd.conf. in the default Mandrake apache configuration,
the cgi scripts won't execute since the Koha installer needs to put the
cgi-scripts in it's own directory structure.
i added the directory section in the opac virtual host section after the line
ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
<Directory /usr/local/koha/opac/cgi-bin>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
in the intranet virtual host section after the line
ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/"
<Directory /usr/local/koha/intranet/cgi-bin>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
then you need to apache. (mandrake 9.0 has apachectl in the default
path so you can just type apachectl at a command prompt)
# apachectl configtest
(which should say OK)
# apachectl graceful
and at that point the cgi scripts are authorized to run.
-ron
On Thu, 17 Apr 2003, Mohamed Amin wrote:
> Date: Thu, 17 Apr 2003 15:45:11 +0000
> From: Mohamed Amin <abo_amin at hotmail.com>
> To: chris at katipo.co.nz
> Subject: [Koha] Internal server error
>
> <html><div style='background-color:'><P>Hi <BR>I've installed Koha 1.2.3 on Linux Mandrake , Mysql , Perl5.8, and it's installed successfully .<BR>but it does not work , the browser gives me an error</P>
> <P> said " Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. "</P>
> <P>this error appears when I try to execute any perl script . All html files are working properly <BR>I tried to execute these scripts from the command prompt like ( # perl search.pl )<BR>it gave an output but with this header </P>
> <P>[root at lib cgi-bin]# perl search.pl<BR>Issuing rollback() for database handle being DESTROY'd without explicit disconnect() at search.pl line 18, <KC> line 33.<BR>Issuing rollback() for database handle being DESTROY'd without explicit disconnect
() at /usr/lib/perl5/site_perl/5.6.0/i386-linux/C4/Search.pm line 203, <KC> line 66.<BR>Issuing rollback() for database handle being DESTROY'd without explicit disconnect() at search.pl line 76, <KC> line 66.<BR>Set-Cookie: sessionID=; path=/;
expires=Fri, 16-Apr-2004 17:30:10 GMT<BR>Date: Thu, 17 Apr 2003 17:30:10 GMT<BR>Content-Type: text/html; charset=ISO-8859-1</P>
> <P><!doctype html public "-//w3c//dtd html 4.0 transitional//en"><BR><!--Authored by <A href="mailto:rachel at katipo.co.nz">rachel at katipo.co.nz</A> 104:38 1/11/99--><BR><!--updated by <A href="mailto:rachel at katipo.co.nz">rachel at katipo.co.nz
</A> 12:24 12/01/00--></P>
> <P><html><BR><head><BR><title>KOHA: INTRANET: Catalogue</title></P>
> <P><BR><style type="text/css"><BR><!--<BR>select,option {font-size:12px}<BR>--></P>
> <P></style></P>
> <P><SCRIPT LANGUAGE="JavaScript"><BR><!--</P>
> <P>// go to page selected from options menu</P>
> <P>function leapto(form) {<BR>var myindex=form.dest.selectedIndex<BR>parent.location.href=(form.dest.options[myindex].value);<BR>}</P>
> <P>function focusinput() {<BR> window.onerror=null;<BR> if (document.forms[0]) {<BR> document.forms[0].elements[0].focus();<BR> }<BR>}</P>
> <P>if (document.images){</P>
> <P>menu=new Image;<BR>menu.src ="/images/cat-cat.gif"</P>
> <P>}</P>
> <P>function messenger(url){<BR> window1=window.open(url,"window1","height=250,width=350,left=150,top=50,350,screenY=50");</P>
> <P>}</P>
> <P><A href="file://--">file://--</A>></P>
> <P></script></P>
> <P></head><BR><body text="black" bgcolor="white" link="#0000ff"<BR>vlink="#0000ff" "3366cc" Alink="#cc3300"<BR>marginheight=0 marginwidth=0 leftmargin=0 topmargin=0<BR>onLoad=focusinput()></P>
> <P> </P>
> <P><BR><!--HDL Colours</P>
> <P> Yellow = ffcc00<BR> light blue = ccccff<BR> bright blue links = 0000ff<BR> auberg
ine = 663266<BR> light green/grey = cccc99</P>
> <P><BR>--></P>
> <P><!------------------------MENUS--------------------------------></P>
> <P><table cellpadding=0 cellspacing=0 width="100%" border=0><BR><tr bgcolor=663266 ></P>
> <P> <td valign=top><BR> <table cellpadding=0 cellspacing=0 border=0 height=29><BR> <tr valign=top bg
color=663266 ><BR> <td background="/images/catalogue-spot-1.gif" width="224"<BR> height="29"><font size=1 face="arial"><img src="/images/holder.gif" widt
h=210 height=4 alt=" " hspace=0 vspace=0><br><BR> <img src="/images/holder.gif"<BR> width=35 height=21 align=left alt=" " hspace=0 vspace=0><font size="+
1">KOHA: <a href="/cgi-bin/koha/mainpage.pl">Main Menu</a></font><br><BR> <img src="/images/holder.gif" width=210 height=1 alt=" " hspace=0 vspace=0>&l!
> t;/FONT></td></P>
> <P> </TR></TABLE> </td></P>
> <P><BR> <td valign=bottom align=right><BR><img src="/images/holder.gif" WIDTH=1 HEIGHT=38 HSPACE=0 vspace=0></td><BR><td valign=bottom align=right><BR>
<table cellpadding=0 cellspacing=0 border=0 height=29><tr><td><BR><img src=/images/cat-cat.gif border="0" name=menu usemap="#map" HSPACE=0 vspace=0 ></td></P>
> <P> </TR></TABLE></TD><BR></tr></P>
> <P></tr><BR><TR VALIGN=TOP BGCOLOR="000000"><TD COLSPAN=3><img src="/images/blackdot.gif" WIDTH=1 HEIGHT=2 HSPACE=0 vspace=0></TD></TR></P>
> <P></table></P>
> <P><BR><map name="map"><BR><area shape="rect" coords="18,8,84,27" href="/cgi-bin/koha/catalogue-home.pl" alt="Catalogue" onMouseOver="if(document.images)document.menu.src='/images/cat-cat.gif'" onMouseOut="if(document.images)document.menu.src='
/images/cat-cat.gif'"></P>
> <P><area shape="rect" coords="94,8,149,28" href="/cgi-bin/koha/members-home.pl" alt="Members" onMouseOver="if(document.images)document.menu.src='/images/cat-mem.gif'" onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'"></P>
> <P><area shape="rect" coords="154,9,212,29" alt="Acquisitions" href="/cgi-bin/koha/loadmodules.pl?module=acquisitions" onMouseOver="if(document.images)document.menu.src='/images/cat-acq.gif'" onMouseOut="if(document.images)document.menu.s
rc='/images/cat-cat.gif'"></P>
> <P><area shape="rect"alt="Reports" coords="217,7,289,27"href="/cgi-bin/koha/reports-home.pl" onMouseOver="if(document.images)document.menu.src='/images/cat-rep.gif'" onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'"&
gt;</P>
> <P><area shape="rect" coords="306,8,352,27" href="/cgi-bin/koha/circ/circulation.pl" alt="Circulation" onMouseOver="if(document.images)document.menu.src='/images/cat-crc.gif'" onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'">
;</P>
> <P><area shape="rect" alt="Home" coords="374,9,419,29" href="/cgi-bin/koha/mainpage.pl" onMouseOver="if(document.images)document.menu.src='/images/cat-hom.gif'" onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'"><BR><
area shape="default" nohref><BR></map></P>
> <P> </P>
> <P><BLOCKQUOTE></P>
> <P><BR><center></P>
> <P><BR> <p align=left><a href=/cgi-bin/koha/userpage.pl>Log In</a> to Koha</p></P>
> <P> </P>
> <P><BR> You did not specify any seach criteria<br></P>
> <P><BR> results found<BR><p></P>
> <P><BR> <!-- Row of numbers corresponding to search result pages --></P>
> <P> <img src=/images/numbers/placeholder.gif border=0></P>
> <P> </P>
> <P> <img src=/images/numbers/placeholder.gif border=0></P>
> <P><BR> <p></P>
> <P> </P>
> <P><!-- Search Results Table --></P>
> <P><BR> Try another <a href=/cgi-bin/koha/catalogue-home.pl>search</a></P>
> <P> </P>
> <P><br clear=all><BR><p> &nbsp; </p></P>
> <P><BR></BLOCKQUOTE></P>
> <P><table cellpadding=0 cellspacing=0 width="100%" border=0><BR><TR VALIGN=TOP BGCOLOR="000000"><TD COLSPAN=6><img src="/images/blackdot.gif" WIDTH=1 HEIGHT=2 HSPACE=0 vspace=0></TD></TR></T
ABLE></P>
> <P><BR><CENTER><BR><FONT SIZE=2 face="arial, helvetica"><BR><A HREF="/cgi-bin/koha/mainpage.pl">Home</a> ||<BR><A HREF="/cgi-bin/koha/circ/circulation.pl">Circulation</a> ||<BR><A HREF="/cgi-bin/koha/catalogu
e-home.pl">Catalogue</a> ||<BR><A HREF="/cgi-bin/koha/members-home.pl">Members</a> ||<BR><A HREF="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Acquisitions</a> ||<BR><A HREF="/cgi-bin/koha/reports-home.pl">Repor
ts</a> ||<BR><A HREF="/cgi-bin/koha/admin-home.pl">System Parameters</a> ||<BR><A HREF="/help/">Help</a><BR></FONT><BR></CENTER><BR></BODY></P>
> <P></HTML></P>
> <P> </P>
> <P>Plz help me <BR></P></div><br clear=all><hr>Help STOP SPAM with <a href="http://g.msn.com/8HMTEN/2731">the new MSN 8 </a> and get 2 months FREE*</html>
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
More information about the Koha
mailing list