[greenstone-users] remote greenstone

From Anupama of Greenstone Team
DateTue Mar 10 18:39:45 2009
Subject [greenstone-users] remote greenstone
In-Reply-To (280054-59270-qm-web34707-mail-mud-yahoo-com)
Hello Paul,

You wrote:
> When I point my browser to
> http://localhost:80/gsdl/cgi-bin/library.exe

> http://localhost/gsdl/cgi-bin/library

> I also tried port 8080, with the same results.

The value you have given as "80" should actually be exactly whatever
value is in your apache web server's httpd.conf file (located in the
apache/conf folder) for the property titled "Listen". Also note that you
should not have anything else already listening on port 80, otherwise
there might be some conflict. It is best to change the value for the
Listen property to a rarely-used port number. Why not try 9091 or
something like that? And then, AFTER RESTARTING the apache webserver
($your-apache-folder/bin/apachectl restart) use that new port number in
the url for your local library.

Therefore, what I'd like you to try is:
1. In your console (DOS prompt on Windows, X-term on Linux), stop the
apache web server:
path-to-your-apache-installation-folder/bin/apachectl stop
2. Open up your-apache-installation-folder/conf folder's httpd.conf file.
3. Find the "Listen" property
4. Set it to something like 9091.
5. You wrote:
> http://localhost:80/gsdl/cgi-bin/library.exe
In case you are really trying to connect to your remote server from a
client-gli on another machine, you would need to set the server name to
your machine's name instead of "localhost".

a. Open up httpd.conf again
b. Find the "ServerName" property again.
c. Enter the Name of your Machine, if you're on university there may be
a domain name attached to it. You'll need to try this out.

If you do not know what your Machine's Name is and you're on Windows,
you can find out by typing the following in your DOS console:
ipconfig /all
The value that it displays for "host name" is your machine's name. Try
using that (along with any domain name for your university).

I'll update the
page to explain that localhost won't be of any use if connecting to a
remote GS that's located on a different machine.

6. And close the httpd.conf file
7. Restart your apache web server, by typing in your console:
path-to-your-apache-installation-folder/bin/apachectl start
8. Now open up a web browser and try visiting the following URLs.

NOTE: You need to use whichever port number you had entered in step 4,
and that <alias> is whatever you've set up in the Scriptalias section of
your Apache web server's httpd.conf file (step 5.3 of
Note that this ALSO HAS TO BE THE SAME as the values used in your
greenstone's cgi-bin/gsdlsite.cfg file in the httpprefix and httpimg
properties in steps 6.2 and 6.3 of

Since you're on Windows, first try visiting

Alternatively, try:
As a last resort, try:
Although this last is a recent change and will probably not work for you.

Try the above, and if it doesn't work, I'll download GS2.81, attempt
setting it up as a remote server and check the client against it. Then
I'll write you exactly what I did (if it worked or--hopefully) or how to
fix it if it didn't.


p b wrote:
> Hello Anupama,
> Thank you for your help with this. I followed the steps in
> http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough.
> I see "It Works!" when I point my browser to http://localhost/. I
> replaced "$GSDLHOME" with "C:/Documents and Settings/My
> Name/Greenstone2" in four places at step 5.3, and with "C:Documents and
> SettingsMy NameGreenstone2" in one place at step 6.1.
> When I point my browser to http://localhost:80/gsdl/cgi-bin/library.exe
> or http://localhost:80/gsdl/cgi-bin/library (there is no file with an
> .exe extension in cgi-bin) or http://localhost/gsdl/cgi-bin/library.exe
> or http://localhost/gsdl/cgi-bin/library, I get:
> Failed to Connect
> Firefox can't establish a connection to the server at localhost.
> Though the site seems valid, the browser was unable to establish a
> connection.
> * Could the site be temporarily unavailable? Try again later.
> * Are you unable to browse other sites? Check the computer's
> network connection.
> * Is your computer or network protected by a firewall or proxy?
> Incorrect settings can interfere with Web browsing.
> I also tried port 8080, with the same results.
> If I start the Greenstone Server, the Greenstone page will come up in a
> browser, and it is visible remotely at my IP address. The Librarian
> Interface works locally. I am not sure what I could be doing wrong.
> All of my classmates have given up on Greenstone because no one has been
> able to get the client-gli to function. Anyone who can lead us to a
> solution will be considered a hero.
> Thanks,
> Paul