Re: [greenstone-users] Install on CentOS 4 problem

From Michael Dewsnip
DateThu, 25 May 2006 11:29:04 +1200
Subject Re: [greenstone-users] Install on CentOS 4 problem
In-Reply-To (b8921a10605222148n312bd6aeodb3c286cc73e946a-mail-gmail-com)
Hi Pete,

The ScriptAlias directive must come before the Alias directive in the
httpd.conf file.

Regards,

Michael

Pete Januarius wrote:

> Hi Anson,
>
> Thanks for your reply:
>
> I had already configured the Alias/ScriptAlias. I did reinstall using
> Install.sh (accepting all the defaults) but got the same problems. my
> config is below:
>
> Alias /gsdl/ "/usr/local/gsdl/"
>
> <Directory "/usr/local/gsdl">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> <IfModule mod_dav_fs.c>
> # Location of the WebDAV lock database.
> DAVLockDB /var/lib/dav/lockdb
> </IfModule>
>
> #
> # ScriptAlias: This controls which directories contain server scripts.
> # ScriptAliases are essentially the same as Aliases, except that
> # documents in the realname directory are treated as applications and
> # run by the server when requested rather than as documents sent to
> the client.
> # The same rules about trailing "/" apply to ScriptAlias directives as to
> # Alias.
> #
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
> ScriptAlias /gsdl/cgi-bin/ "/usr/local/gsdl/cgi-bin/"
>
> <Directory "/usr/local/gsdl/cgi-bin">
> AllowOverride None
> Options None
> </Directory>
>
> The other 'strange' thing was that on a restart of Apache the
> following warnings were reported:
>
> Tue May 23 14:44:53 2006] [warn] The Alias directive in
> /etc/httpd/conf/httpd.conf at line 494 will probably never match
> because it overlaps an earlier AliasMatch.
> [Tue May 23 14:44:53 2006] [warn] The ScriptAlias directive in
> /etc/httpd/conf/httpd.conf at line 519 will probably never match
> because it overlaps an earlier Alias.
>
> Even though the ScriptAlias for the cgi-bin directory is there the
> browser still wants to open the file rather than run the binary.
>
> Pete...
>
>
> [root@localhost cgi-bin]#
>
> On 5/22/06, *anson@treebay.org <mailto:anson@treebay.org>* <
> anson@treebay.org <mailto:anson@treebay.org>> wrote:
>
> Hi Pete -
> we're running greenstone 2.7 on centos 4 and apache2-
>
> Perhaps your httpd.conf for apache file needs a scriptalias call
> in it?
>
>
> ScriptAlias /gsdl/cgi-bin "/opt/greenstone/cgi-bin/"
>
> Options None
> AllowOverride None
>
>
> Alias /gsdl "/opt/greenstone/"
>
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
>
> btw - so far have a couple thousand files (movies, audio, text,
> posters,
> maps, etc...) running great
>
> please let me know if this isn't it - I can get on the server
> tomorrow and
> take a closer look,
> Anson
>
> > Hi,
> >
> > I'm trying to install Greenstone on CentOS 4. When I ran
> ./setupLinux.bin
> > I
> > got the following:
> >
> > /root/istemp3946141151933/setupLinux.bin.embedded: line 1674: 5924
> > Terminated /usr/bin/java -cp
> >
> .:::::"/root/istemp3997141151934/setup.jar"::"/root/istemp3997141151934/crypt.jar"::::
>
> > -Dtemp.dir="/root" -Dis.jvm.home="/usr" -Dis.jvm.temp="0"
> > -Dis.media.home"/usr/local/gsdl/gsdl-2.70-unix/./setup"
> >
> -Dis.launcher.file="/root/istemp3946141151933/setupLinux.bin.embedded"
>
> > -Dis.jvm.file="/root/istemp3997141151934/sunjdk14.jvm"
> > -Dis.external.home"/usr/local/gsdl/gsdl-2.70-unix/." run >>/dev/null
> > 2>>/root/istemp3997141151934/APP_STDERR
> >
> >
> > I then ran the install script and configured my Apache 2 server.
> > Everything
> > seemed to go ok until I trying accessing Greenstone with the url
> > http://myserver/greenstone/cgi-bin/library
> > My browser acted upon this as a binary file and gave me a
> download dialog
> > box.
> >
> > Any ideas. I would love to install this as the article in Linux
> Magazine
> > (June 06) looks really good.
> >
> > Cheers
> >
> > Pete...
> > _______________________________________________
> > greenstone-users mailing list
> > greenstone-users@list.scms.waikato.ac.nz
> <mailto:greenstone-users@list.scms.waikato.ac.nz>
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> >
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>