[greenstone-users] Greenstone problem

From Carlos Alberto Peláez Ayala
DateThu, 19 Feb 2004 09:32:34 -0500
Subject [greenstone-users] Greenstone problem
Dear friends,

I have already installed the source distribution included in the package
gsdl-2.41-unix.tar.gz in a Linux Red Hat 7.1 box.
The installation procedure is ok, But when i try to access to the main page
of Greenstone (http://myserver.edu:8080/gsdl/cgi-bin/library), the main page
not display and the browser try to download the file library.

This is my INSTALL_RECORD file:


[root@gauss gsdl]# more INSTALL_RECORD
This script will install Greenstone on your system. You may
want to download and skim through the Greenstone Installer's Guide
(Install.pdf) before continuing with the installation
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]
> 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]
> /virtual/gsdl
--> Install.sh: [mkdir -p "/virtual/gsdl/gsdl"]
--> Install.sh: [chmod u+rwx "/virtual/gsdl/gsdl"]


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

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

Setting permissions ...
--> Install.sh: [chmod -R u+rw "/virtual/gsdl/gsdl"]
--> Install.sh: [chmod a+x "/virtual/gsdl/gsdl/bin/script/"*]
--> Install.sh: [chmod a+w "/virtual/gsdl/gsdl/etc/error.txt"]
--> Install.sh: [chmod a+w "/virtual/gsdl/gsdl/etc/key.db"]
--> Install.sh: [chmod a+w "/virtual/gsdl/gsdl/etc/users.db"]
--> Install.sh: [chmod a+w "/virtual/gsdl/gsdl/etc/main.cfg"]
--> Install.sh: [chmod a+w "/virtual/gsdl/gsdl/etc/history.db"]
--> Install.sh: [chmod a+w "/virtual/gsdl/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
/virtual/gsdl/gsdl/collect and /virtual/gsdl/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 "/virtual/gsdl/gsdl/collect"]
--> Install.sh: [chmod -R a+w "/virtual/gsdl/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"
> c

Installing source code
--> Install.sh: [cp -r "/virtual/gsdl-2.41-unix/src/lib"
"/virtual/gsdl/gsdl"]
--> Install.sh: [cp -r "/virtual/gsdl-2.41-unix/src/packages"
"/virtual/gsdl/gsdl"]
--> Install.sh: [cp -r "/virtual/gsdl-2.41-unix/src/src"
"/virtual/gsdl/gsdl"]
--> Install.sh: [cp -r "/virtual/gsdl-2.41-unix/src/Unix/"*
"/virtual/gsdl/gsdl"]
--> Install.sh: [cp "/virtual/gsdl-2.41-unix/src/Install.txt"
"/virtual/gsdl/gsdl"]
--> Install.sh: [chmod -R u+rw "/virtual/gsdl/gsdl"]
--> Install.sh: [chmod a+x "/virtual/gsdl/gsdl/configure"]
--> Install.sh: [chmod a+x "/virtual/gsdl/gsdl/packages/yaz/configure"]
--> Install.sh: [cd /virtual/gsdl/gsdl]
configuring ...

--> Install.sh: [./configure]
compiling ...

--> Install.sh: [make]
installing ...

--> Install.sh: [make install]
--> Install.sh: [cd /virtual/gsdl-2.41-unix/Unix]


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 (/virtual/gsdl/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 /virtual/gsdl/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 /virtual/gsdl/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://gauss.cuao.edu.co/gsdl/cgi-bin]
> http://sev.cuao.edu.co:8080/gsdl/cgi-bin
--> Install.sh: [cd /virtual/gsdl-2.41-unix/Unix]
2. Provide an existing web accessible directory from which
a symbolic link (ln -s) will be made to /virtual/gsdl/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 /virtual/gsdl/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 /virtual/gsdl/gsdl directory.
This may be a relative url (e.g. "/gsdl") or a
complete url (e.g. "http://gauss.cuao.edu.co/gsdl") [/gsdl]
> http://sev.cuao.edu.co:8080/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
/virtual/gsdl/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/ "/virtual/gsdl/gsdl/cgi-bin/"
<Directory "/virtual/gsdl/gsdl/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

* Don't forget to configure your webserver to treat
/virtual/gsdl/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/ "/virtual/gsdl/gsdl/"
<Directory "/virtual/gsdl/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
/virtual/gsdl/gsdl/INSTALL_RECORD.
You may remove Greenstone from your system at any time by running
the /virtual/gsdl/gsdl/Uninstall.sh script.
Access Greenstone by pointing a web browser at
http://sev.cuao.edu.co:8080/gsdl/cgi-bin/library


And this is the changes in my httpd.conf configuration file for the Apache
2.0.48 :


Alias /gsdl/ "/virtual/gsdl/gsdl/"

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


ScriptAlias /gsdl/cgi-bin/ "/virtual/gsdl/gsdl/cgi-bin/"

<Directory "/virtual/gsdl/gsdl/cgi-bin/">
AllowOverride None
Options None
</Directory>


Dear friends of Grenstone list, thanks and sorry for my english.


<<attachment>>
Type: application/ms-tnef
Filename: winmail.dat

download