RE: [greenstone-users] Gibberish displayed attempting to open library

From H.M. Gladney
DateWed, 6 Jun 2007 06:42:19 -0700
Subject RE: [greenstone-users] Gibberish displayed attempting to open library
In-Reply-To (46663AB4-40504-cs-waikato-ac-nz)
Michael, thank you for your prompt reply.  However I believe the problem is not quite so simple.
 
I am using Apache 2.0.  At the end of the pertinent configuration file (/etc/apache2/apache2.conf), I had appended the following lines:
 
#
# 3rd June 2007
ScriptAlias /cgi-bin/ "/home/gladney/gsdl/cgi-bin/"
     <Directory "/home/gladney/gsdl/cgi-bin">
         AllowOverride None
         Options None
         Order allow,deny
         Allow from all
     </Directory>

Alias /gsdl/ "/home/gladney/gsdl/"
     <Directory "/home/gladney/gsdl">
         Options Indexes MultiViews FollowSymLinks
         AllowOverride None
         Order allow,deny
         Allow from all
     </Directory>

As I understand it (e.g., from http://wiki.apache.org/httpd/Info/DistrosDefaultLayout), "httpd.conf" is deprecated in favor of "apache2.conf".  (On the cited webpage, see under "Debian, Ubuntu (Apache 2):")  In my /etc/apache2/ directory, there is an empty httpd.conf file in addition to the aforementioned apache2.conf.
 
I added the ScriptAlias and Alias directives to apache2.conf AFTER installing GSDL and building the collection.  Speculating sensitivity to the order of configuring and building (far-fetched), I will later today reinstall GSDL, test without my big collection, and then re-build the collection.
 
Cheerio, Henry
 


From: Michael Dewsnip [mailto:mdewsnip@cs.waikato.ac.nz]
Sent: Tuesday, June 05, 2007 9:40 PM
To: H.M. Gladney
Cc: greenstone-users@list.scms.waikato.ac.nz
Subject: Re: [greenstone-users] Gibberish displayed attempting to open library

This is due to a problem with your webserver setup: the Greenstone "cgi-bin" directory needs to be in a ScriptAlias directive (for Apache), and this must come before the general Greenstone Alias. Instructions for how to configure Apache for Greenstone are given when you install Greenstone.    ... 


H.M. Gladney wrote:

I believe that http://www.hgladney.net/gsdl/cgi-bin/library should show a proper Greenstone library instance.  However what appears looks like the printout of a binary file, and is accompanied by the Windows IE message "stack overflow at line: 0".   Could this be another error associated with the largish test files that I am using?  Whatever the answer to that, what's the remedy.

That a library build for "snotest4" has been successful is evidenced by inspecting http://www.hgladney.net/gsdl/collect/snotest4/ and various ".cfg" files there and in http://www.hgladney.net/gsdl/.   (I have inspected "main.cfg", "gsdlsite.cfg", "collect.cfg", and "build.cfg" for snotest4, but see nothing that seems anomalous.)