[greenstone-users] httpd.conf problem

From Don
DateThu, 27 Jan 2005 21:47:56 -0800 (PST)
Subject [greenstone-users] httpd.conf problem
Hi,

I trying to install Greenstone on a dedicated server
in a "hosted"space. From the shell it appears to be
working, but when I try to access it from my browser,
I get binaries. I've tried about every combination of
Alias before ScriptAlias and ScriptAlias before Alias.
I've used the httpd.conf code listed in the
installation guide, I've used the httpd.conf code
listed in my install record, with and without the "
marks in the directory line. I've made sure every
thing is set to 755 and 777 as required. I've used
wget to get the software directly from the server so
that binary vs. ascii isn't an issue... I guess I'm
just out of answers. below are my installation record
and httpd.conf files:

TIA for any help you can provide,

Note that when prompted for input, hitting "enter"
will select
the default (given in square brackets [] at the end of
each question).
If you're unsure which option to select, use the
default.

Note also that Install.sh prints out information on
any commands
it runs on your system in the form "--> Install.sh:
[command]".

It is assumed throughout this installation procedure
that you
have a webserver installed on your system.

For later reference the output of this install script
will be
recorded in a file called INSTALL_RECORD in the
directory into
which you choose to install Greenstone.

Continue? [y]
>

Which directory should Greenstone be installed to?
Make sure that this directory is on a partition with
sufficient
free disk space for the installation options you
intend selecting.
* A linux binary installation requires approximately
40Mb.
* Compiling Greenstone from source code requires
approximately 155Mb.
* Optional Greenstone demonstration collections may
use up
to a further 200Mb (you'll be told the size of each
individual
collection before you install it).
* Online documentation requires a further 4Mb.
* Enabling Greenstone's "CD exporting" function
requires a
further 24Mb.
Enter directory to install Greenstone into. A gsdl
directory
will be created in this directory. [/usr/local]
> /home/www/exoticspaces
--> Install.sh: [mkdir -p
"/home/www/exoticspaces/gsdl"]
--> Install.sh: [chmod u+rwx
"/home/www/exoticspaces/gsdl"]


If this installation fails or is cancelled, run the
uninstall
script (/home/www/exoticspaces/gsdl/Uninstall.sh) to
clean up the partial
installation.
Continue? [y]
> y

Installing Greenstone directory structure to
/home/www/exoticspaces/gsdl
--> Install.sh: [cp -r
"/home/www/exoticspaces/gsdl-2.52-unix/gsdl/"*
"/home/www/exoticspaces/gsdl"]
--> Install.sh: [cp
"/home/www/exoticspaces/gsdl-2.52-unix/src/Unix/setup."*
"/home/www/exoticspaces/gsdl"]
--> Install.sh: [mkdir -p
"/home/www/exoticspaces/gsdl/tmp"]
--> Install.sh: [chmod u+rwx
"/home/www/exoticspaces/gsdl/collect"]

Setting permissions ...
--> Install.sh: [chmod -R u+rw
"/home/www/exoticspaces/gsdl"]
--> Install.sh: [chmod a+x
"/home/www/exoticspaces/gsdl/bin/script/"*]
--> Install.sh: [chmod a+w
"/home/www/exoticspaces/gsdl/etc/error.txt"]
--> Install.sh: [chmod a+w
"/home/www/exoticspaces/gsdl/etc/key.db"]
--> Install.sh: [chmod a+w
"/home/www/exoticspaces/gsdl/etc/users.db"]
--> Install.sh: [chmod a+w
"/home/www/exoticspaces/gsdl/etc/main.cfg"]
--> Install.sh: [chmod a+w
"/home/www/exoticspaces/gsdl/etc/history.db"]
--> Install.sh: [chmod a+w
"/home/www/exoticspaces/gsdl/etc/usage.txt"]

In order for end-user collection building to be
enabled the
Greenstone cgi program must be able to write to the
/home/www/exoticspaces/gsdl/collect and
/home/www/exoticspaces/gsdl/tmp directories.
On most systems this means they must be globally
writable.
Make these directories globally writable? [y]
> y
--> Install.sh: [chmod -R a+w
"/home/www/exoticspaces/gsdl/collect"]
--> Install.sh: [chmod -R a+w
"/home/www/exoticspaces/gsdl/tmp"]

You may either install pre-compiled, statically linked
linux [b]inaries
(i386 only) or install and [c]ompile the Greenstone
source code
Enter "[b]" or "c"
> b

Installing linux binaries
--> Install.sh: [cp -r
"/home/www/exoticspaces/gsdl-2.52-unix/Unix/bin/linux"
"/home/www/exoticspaces/gsdl/bin"]
--> Install.sh: [chmod a+x
"/home/www/exoticspaces/gsdl/bin/linux/"*]
--> Install.sh: [chmod -R u+rw
"/home/www/exoticspaces/gsdl/bin/linux"]
--> Install.sh: [mv
"/home/www/exoticspaces/gsdl/bin/linux/library"
"/home/www/exoticspaces/gsdl/cgi-bin"]
--> Install.sh: [mv
"/home/www/exoticspaces/gsdl/bin/linux/oaiserver"
"/home/www/exoticspaces/gsdl/cgi-bin"]


Greenstone needs a valid cgi executable directory
(normally called
cgi-bin on unix systems) from which to run.
This may be either:
1. The default Greenstone cgi-bin directory
(/home/www/exoticspaces/gsdl/cgi-bin).
If you use the Greenstone default you will need to
configure
your webserver to treat this directory as a cgi
executable
directory. For the Apache webserver you use the
ScriptAlias
directive to do this (details of how to configure
your webserver
will be displayed at the end of this installation
procedure).
2. An existing cgi-bin directory. Normally a cgi-bin
directory
is created when your webserver is installed.
Typically, this
might be /home/httpd/cgi-bin, or
/usr/local/apache/cgi-bin, or
/var/lib/apache/cgi-bin.
Enter "[1]" or "2"
> 1

Don't forget to configure your webserver to treat
/home/www/exoticspaces/gsdl/cgi-bin
as a cgi executable directory. Don't worry, you'll be
reminded of this again at the end of the installation
procedure

Please enter the web address of the
/home/www/exoticspaces/gsdl/cgi-bin
directory. Typically this might be
http://localhost/cgi-bin,
or http://127.0.0.1/cgi-bin, or
http://your-computer-name/cgi-bin,
or http://nnn.nnn.nnn.nn/cgi-bin.
[http://qualcon-sing.propagation.net/gsdl/cgi-bin]
> http://exoticspaces/gsdl/cgi-bin
--> Install.sh: [mv
"/home/www/exoticspaces/gsdl/bin/linux/oaiserver"
"/home/www/exoticspaces/gsdl/cgi-bin"]
2. Provide an existing web accessible directory from
which
a symbolic link (ln -s) will be made to
/home/www/exoticspaces/gsdl.
When your server was installed a web accessible
directory
will have been created (the Apache webserver uses
the
DocumentRoot directive to define this directory).
Typically
this directory might be /home/httpd/html, or
/usr/local/apache/htdocs,
or /var/lib/apache/htdocs.
Note that your web server will need to be
configured to allow
symbolic links from within this directory. For the
Apache
server that means this directory must be
configured with
the SymLinksIfOwnerMatch or FollowSymLinks option
(most Apache
installations are configured this way by default).
Enter "[1]" or "2"
> 1

Don't forget to configure your webserver to make
/home/www/exoticspaces/gsdl
accessible from the web. You'll be reminded of this
again
at the end of this installation procedure.

Enter the web address of the
/home/www/exoticspaces/gsdl directory.
This may be a relative url (e.g. "/gsdl") or a
complete url (e.g.
"http://qualcon-sing.propagation.net/gsdl") [/gsdl]
> http://exoticspaces.com/gsdl

In order to use end-user collection building or to
access certain
parts of the administration pages you must have a
password.
A user with the username "admin" will be created for
you with
the password you provide (i.e. to enter any pages
requiring user
authentication enter the "admin" username and the
password you
set here).

Greenstone installation completed successfully.
* Don't forget to configure your webserver to treat
/home/www/exoticspaces/gsdl/cgi-bin as a cgi
executable directory.
For the Apache webserver this means adding the
following
ScriptAlias directive to your httpd.conf
configuration file.

ScriptAlias /gsdl/cgi-bin/
"/home/www/exoticspaces/gsdl/cgi-bin/"
<Directory "/home/www/exoticspaces/gsdl/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

* Don't forget to configure your webserver to treat
/home/www/exoticspaces/gsdl as a web accessible
directory.
For the Apache webserver this means adding the
following
Alias directive to your httpd.conf configuration
file.

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

The output of this script has been recorded for you at
/home/www/exoticspaces/gsdl/INSTALL_RECORD.
You may remove Greenstone from your system at any time
by running
the /home/www/exoticspaces/gsdl/Uninstall.sh script.
Access Greenstone by pointing a web browser at
http://exoticspaces/gsdl/cgi-bin/library


Port 80
Listen 80
Define SSLPort 443
HostnameLookups Off
MinSpareServers 4
MaxSpareServers 10
StartServers 4
MaxClients 150
#ServerAdmin %USERNAME%
ServerSignature On
ErrorDocument 404 /404error.php
Include etc/apache/totalapache.conf

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

ScriptAlias /gsdl/cgi-bin/
"/home/www/exoticspaces/gsdl/cgi-bin/"
<Directory /home/www/exoticspaces/gsdl/cgi-bin>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail