[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>&nbsp;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, &lt;KC&gt; 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, &lt;KC&gt; line 66.<BR>Issuing rollback() for database handle being DESTROY'd without explicit disconnect() at search.pl line 76, &lt;KC&gt; 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>&lt;!doctype html public "-//w3c//dtd html 4.0 transitional//en"&gt;<BR>&lt;!--Authored by <A href="mailto:rachel at katipo.co.nz">rachel at katipo.co.nz</A> 104:38 1/11/99--&gt;<BR>&lt;!--updated by <A href="mailto:rachel at katipo.co.nz">rachel at katipo.co.nz

</A> 12:24 12/01/00--&gt;</P>
> <P>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;KOHA: INTRANET: Catalogue&lt;/title&gt;</P>
> <P><BR>&lt;style type="text/css"&gt;<BR>&lt;!--<BR>select,option {font-size:12px}<BR>--&gt;</P>
> <P>&lt;/style&gt;</P>
> <P>&lt;SCRIPT LANGUAGE="JavaScript"&gt;<BR>&lt;!--</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>&nbsp;&nbsp;&nbsp; window.onerror=null;<BR>&nbsp;&nbsp;&nbsp; if (document.forms[0]) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.forms[0].elements[0].focus();<BR>&nbsp;&nbsp;&nbsp; }<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>&nbsp; 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>&gt;</P>
> <P>&lt;/script&gt;</P>
> <P>&lt;/head&gt;<BR>&lt;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()&gt;</P>
> <P>&nbsp;</P>
> <P><BR>&lt;!--HDL Colours</P>
> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yellow = ffcc00<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; light blue = ccccff<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bright blue links = 0000ff<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auberg

ine = 663266<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; light green/grey = cccc99</P>
> <P><BR>--&gt;</P>
> <P>&lt;!------------------------MENUS--------------------------------&gt;</P>
> <P>&lt;table cellpadding=0 cellspacing=0 width="100%" border=0&gt;<BR>&lt;tr bgcolor=663266 &gt;</P>
> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&nbsp; valign=top&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;table cellpadding=0 cellspacing=0&nbsp; border=0 height=29&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr valign=top bg

color=663266 &gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td background="/images/catalogue-spot-1.gif" width="224"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height="29"&gt;&lt;font size=1 face="arial"&gt;&lt;img src="/images/holder.gif" widt

h=210 height=4 alt=" " hspace=0 vspace=0&gt;&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src="/images/holder.gif"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width=35 height=21 align=left alt=" " hspace=0 vspace=0&gt;&lt;font size="+

1"&gt;KOHA: &lt;a href="/cgi-bin/koha/mainpage.pl"&gt;Main Menu&lt;/a&gt;&lt;/font&gt;&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src="/images/holder.gif" width=210 height=1 alt=" " hspace=0 vspace=0&gt;&l!
> t;/FONT&gt;&lt;/td&gt;</P>
> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/TR&gt;&lt;/TABLE&gt; &lt;/td&gt;</P>
> <P><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&nbsp; valign=bottom align=right&gt;<BR>&lt;img src="/images/holder.gif"&nbsp; WIDTH=1&nbsp; HEIGHT=38 HSPACE=0 vspace=0&gt;&lt;/td&gt;<BR>&lt;td&nbsp; valign=bottom align=right&gt;<BR>&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;table cellpadding=0 cellspacing=0&nbsp; border=0 height=29&gt;&lt;tr&gt;&lt;td&gt;<BR>&lt;img src=/images/cat-cat.gif border="0" name=menu usemap="#map" HSPACE=0 vspace=0 &gt;&lt;/td&gt;</P>
> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/TR&gt;&lt;/TABLE&gt;&lt;/TD&gt;<BR>&lt;/tr&gt;</P>
> <P>&lt;/tr&gt;<BR>&lt;TR VALIGN=TOP BGCOLOR="000000"&gt;&lt;TD&nbsp; COLSPAN=3&gt;&lt;img src="/images/blackdot.gif"&nbsp; WIDTH=1&nbsp; HEIGHT=2&nbsp; HSPACE=0 vspace=0&gt;&lt;/TD&gt;&lt;/TR&gt;</P>
> <P>&lt;/table&gt;</P>
> <P><BR>&lt;map name="map"&gt;<BR>&lt;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'"&gt;</P>
> <P>&lt;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'"&gt;</P>
> <P>&lt;area shape="rect" coords="154,9,212,29" alt="Acquisitions"&nbsp;&nbsp; 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'"&gt;</P>
> <P>&lt;area&nbsp; shape="rect"alt="Reports"&nbsp; 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>&lt;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'"&gt

;</P>
> <P>&lt;area&nbsp; 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'"&gt;<BR>&lt;

area shape="default" nohref&gt;<BR>&lt;/map&gt;</P>
> <P>&nbsp;</P>
> <P>&lt;BLOCKQUOTE&gt;</P>
> <P><BR>&lt;center&gt;</P>
> <P><BR>&nbsp;&nbsp;&nbsp; &lt;p align=left&gt;&lt;a href=/cgi-bin/koha/userpage.pl&gt;Log In&lt;/a&gt; to Koha&lt;/p&gt;</P>
> <P>&nbsp;</P>
> <P><BR>&nbsp;&nbsp;&nbsp; You did not specify any seach criteria&lt;br&gt;</P>
> <P><BR>&nbsp;results found<BR>&lt;p&gt;</P>
> <P><BR>&nbsp;&nbsp;&nbsp; &lt;!-- Row of numbers corresponding to search result pages --&gt;</P>
> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src=/images/numbers/placeholder.gif border=0&gt;</P>
> <P>&nbsp;</P>
> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src=/images/numbers/placeholder.gif border=0&gt;</P>
> <P><BR>&nbsp;&nbsp;&nbsp; &lt;p&gt;</P>
> <P>&nbsp;</P>
> <P>&lt;!-- Search Results Table --&gt;</P>
> <P><BR>&nbsp;&nbsp;&nbsp; Try another &lt;a href=/cgi-bin/koha/catalogue-home.pl&gt;search&lt;/a&gt;</P>
> <P>&nbsp;</P>
> <P>&lt;br clear=all&gt;<BR>&lt;p&gt; &amp;nbsp; &lt;/p&gt;</P>
> <P><BR>&lt;/BLOCKQUOTE&gt;</P>
> <P>&lt;table cellpadding=0 cellspacing=0 width="100%" border=0&gt;<BR>&lt;TR VALIGN=TOP BGCOLOR="000000"&gt;&lt;TD&nbsp; COLSPAN=6&gt;&lt;img src="/images/blackdot.gif"&nbsp; WIDTH=1&nbsp; HEIGHT=2&nbsp; HSPACE=0 vspace=0&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/T

ABLE&gt;</P>
> <P><BR>&lt;CENTER&gt;<BR>&lt;FONT SIZE=2&nbsp; face="arial, helvetica"&gt;<BR>&lt;A HREF="/cgi-bin/koha/mainpage.pl"&gt;Home&lt;/a&gt; ||<BR>&lt;A HREF="/cgi-bin/koha/circ/circulation.pl"&gt;Circulation&lt;/a&gt; ||<BR>&lt;A HREF="/cgi-bin/koha/catalogu

e-home.pl"&gt;Catalogue&lt;/a&gt; ||<BR>&lt;A HREF="/cgi-bin/koha/members-home.pl"&gt;Members&lt;/a&gt; ||<BR>&lt;A HREF="/cgi-bin/koha/loadmodules.pl?module=acquisitions"&gt;Acquisitions&lt;/a&gt; ||<BR>&lt;A HREF="/cgi-bin/koha/reports-home.pl"&gt;Repor

ts&lt;/a&gt; ||<BR>&lt;A HREF="/cgi-bin/koha/admin-home.pl"&gt;System Parameters&lt;/a&gt; ||<BR>&lt;A HREF="/help/"&gt;Help&lt;/a&gt;<BR>&lt;/FONT&gt;<BR>&lt;/CENTER&gt;<BR>&lt;/BODY&gt;</P>
> <P>&lt;/HTML&gt;</P>
> <P>&nbsp;</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