[greenstone-devel] FW: Urgent Help : GreenStone Library Interface

From Samveg Joshi
DateWed Mar 17 15:13:13 2010
Subject [greenstone-devel] FW: Urgent Help : GreenStone Library Interface
In-Reply-To (4B9EDFFF-9010407-cs-waikato-ac-nz)
Hi Anupama,

Thank you so much for the helpful Information.

One more issue which I faced yesterday, While running the Greenstone Digital
Library Server yesterday from the file menu I changed the settings from
Localhost to Get Local IP, It didn't worked but when I changed again to
Localhost it worked.

So do I need to change anything in the Hosts file so as to make an entry for
the Local IP Address in the Hosts file.

Please advice.

Thanks
Samveg
+65-82607622


-----Original Message-----
From: Anupama of Greenstone Team [mailto:greenstone_team@cs.waikato.ac.nz]
Sent: 16 March 2010 07:04
To: Samveg Joshi; greenstone-devel@list.scms.waikato.ac.nz;
greenstone-users@list.scms.waikato.ac.nz
Subject: Re: [greenstone-devel] FW: Urgent Help : GreenStone Library
Interface

Hi Samveg,

Before trying out anything, please read this email in entirety.

a. You wrote:
> http://localhost/greenstone/cgi-bin/library.cgi doesn't work directly
on my
> machine, so every time I need to go to command prompt and run the command
> gli.bat.

That's because the server does not run until you launch either the
gs2-server.bat file (step 3) or gli.bat which launches both GLI and
gs2-server.bat.

In the steps I want you to try out, please do NOT start gli.bat. Just
start gs2-server.bat (see step 3 of the previous e-mail again). In any
case, do not start them both at the same time, else things can go wrong
as they concurrently try to toggle the Apache web server on and off.
Then they may leave the server in an inconsistent state, and that could
possibly explain why step 3 failed for you.


b. You wrote:
> Also wanted your advice on couple of questions below,
>
> 1) While accessing my machine from the Client machine, How can I
change the
> Local host to the IP Address of my machine?
> 2) How can I enable http://servermachineIP to be accessed from the client
> machine.

This will be related to step c below.

When you run gs2-server.bat, the Greenstone Server Interface dialog
(GSI) will open containing the Enter Library button. Do not press it
just yet. Go to the File menu in this dialog and choose the Settings
option. There should be a section labelled Address Resolution Method
encompassing 4 options to choose from. By default this will be set to
localhost. For you to be able to access a running Greenstone server on
one machine from another, you will need to choose one of the first two
options: "Get local IP and resolve to a name", or "Get local IP". The
latter answers your question (1).
This should then work from your client machine, thus answering (2),
however the URL to access will be:
http://servermachineIP:PORT/greenstone/cgi-bin/library.cgi

Where if PORT is the default 80, it will merely be
http://servermachineIP/greenstone/cgi-bin/library.cgi


c. You wrote:
> I tried running all the Steps as mentioned below but I am Stuck up
with Step
> 4

This was step 4:
> 4. A dialog (the Greenstone Server Interface) will display. Press its
> central Enter Library button.
>
> It will open a browser and take you to a page like:
> http://localhost/greenstone/cgi-bin/library.cgi
>
> (OR: http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/library.cgi
> where if port were the default 80 it won't be displayed, e.g.
> http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/library.cgi)

In case you had been running gli.bat when attempting step 4, things
could have ended up in a mix-up. Therefore, before retrying anything,
you will need to delete two temporary settings files from your
Greenstone installation folder IF they exist in your folder:
- glisite.cfg
- llssite.cfg
NOTE: please do NOT delete the glisite.cfg.in and llssite.cfg.in
template files though!

Both the files are located in the top-level of your Greenstone
installation folder.

Now when retrying the steps, make sure not to restart gli.bat at any stage.


d. You wrote:
> I tried running all the Steps as mentioned below but I am Stuck up
with Step
> 4

Did the Greenstone Server Interface dialog at least appear? Were you
able to press the Enter Library button? Did a browser window open? What
web page appeared when you did so (what did it say)?

Having read all of the above, can you now please

- Exit the GLI application normally (which will stop executing gli.bat)
and check that the server has stopped running (go to library.cgi in a
browser to see that it can't load the page).

- make sure to thereafter delete llssite.cfg and glisite.cfg as
requested in step (c) above.

- Run gs2-server.bat (instead of gli.bat) this time. And in the
Greenstone Server Interface dialog that appears, go to File > Settings
and choose the "Get Local IP" option under "Address Resolution Method"
as explained in step (b).

- Thereafter don't forget to press the Enter Library button in the
Greenstone Server Interface dialog.
When the browser opens, is Greenstone running now?

If so, please try continuing with step 5 of the previous e-mail. Write
back if any problems persist, with details of where things went wrong
and what/how things went wrong, along with what the error messages if
any are.

Regards,
Anupama


Samveg Joshi wrote:
> Hi Anupama,
>
> I tried running all the Steps as mentioned below but I am Stuck up with
Step
> 4
>
> http://localhost/greenstone/cgi-bin/library.cgi doesn't work directly on
my
> machine, so every time I need to go to command prompt and run the command
> gli.bat.
>
> Also wanted your advice on couple of questions below,
>
> 1) While accessing my machine from the Client machine, How can I change
the
> Local host to the IP Address of my machine?
> 2) How can I enable http://servermachineIP to be accessed from the client
> machine.
>
> Thank you so much for all the help.
>
> Thanks
> Samveg
> +65-82607622
>
> -----Original Message-----
> From: Anupama of Greenstone Team [mailto:greenstone_team@cs.waikato.ac.nz]

> Sent: 15 March 2010 08:19
> To: Samveg Joshi; greenstone-devel@list.scms.waikato.ac.nz
> Subject: Re: [greenstone-devel] FW: Urgent Help : GreenStone Library
> Interface
>
> Hi Samveg,
>
> Have you already been through the instructions at:
> http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone
>
> If not, and you've installed Greenstone 2.83 from binary on a Windows
> machine (hopefully XP or Vista since I've not tested any of this on
> Windows 7):
> I'll present just the steps you need to follow here, it should be less
> convoluted than the wiki page above (since that has to take older
> versions of Greenstone and special cases into account).
>
> And I'd like you to write back to tell me AT WHICH STEPS things fail for
> you.
>
> 1. If the path to your Greenstone installation contains any spaces (i.e.
> if any of the containing folders wherein your Greenstone is ultimately
> located contain spaces in their names), please open cgi-bin/gsdlsite.cfg
> in a plain text editor and make sure that thevalue for GSDLHOME line
> contains quotes around it. E.g.
>
> gsdlhome "C:Program FilesGreenstone2"
>
> Save any changes.
>
>
> 2. Rename server.exe in your Greenstone installation folder to something
> else, say _server.exe
>
> This is because you will need to use the included Apache web server for
> the remote Greenstone. By renaming the default library server in
> Greenstone 2, Greenstone will next look for the apache web server.
>
>
>
> 3. Now run the Apache web server included with your Greenstone, by
> opening a DOS prompt and typing the path to your Greenstone 2
> installation and then running the gs2-server script:
>
> e.g.
> - cd C:Program FilesGreenstone2
> - gs2-server.bat
>
>
> Alternatively, you could use Windows Explorer to locate the
> gs2-server.bat file in your Greenstone2 installation folder and double
> click that file.
>
>
> 4. A dialog (the Greenstone Server Interface) will display. Press its
> central Enter Library button.
>
> It will open a browser and take you to a page like:
> http://localhost/greenstone/cgi-bin/library.cgi
>
> (OR: http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/library.cgi
> where if port were the default 80 it won't be displayed, e.g.
> http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/library.cgi)
>
>
> 5. Replace the "library.cgi" part of the URL in the browser to
> "gliserver.pl?cmd=check-installation":
> E.g.
> http://localhost/greenstone/cgi-bin/gliserver.pl?cmd=check-installation
> (OR:
>
http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/gliserver.pl?cmd=chec
> k-installation)
>
> At the end of the browser page, it is imperative that it says something
> like:
> "Installation OK!"
>
>
> 6. Once again, open a DOS prompt. Type the following, but make sure to
> type the path to *your* Greenstone2 installation (the example below uses
> C:Program FilesGreenstone2collect):
>
> cacls "C:Program FilesGreenstone2collect" /P Everyone:F
>
>
> 7. Use the browser to go to your Greenstone home web page again.
>
> - Now click on the Administration Page link and add a new user:
> - Click the Add a New User link to the left
> - You'll be requested for the admin username (type "admin") and password
>
>
> 8. Enter the username and password for the new user.
> In the Groups field, type "personal-collections-editor".
> Press the Submit button.
>
>
> 9. Open a new DOS prompt. Either in this or another machine (assuming
> you want the Greenstone server on one machine and the client on
> another), g to the gli folder of your Greenstone 2 installation, and run
> client-gli.bat:
>
> e.g.
> - cd C:Program FilesGreenstone2gli
> - client-gli.bat
>
>
> 10. A dialog will eventually appear asking you for the URL of the Remote
> Greenstone server's gliserver.pl file.
>
> If your client-gli is running from a different machine to where your
> Greenstone server is running, you need to specify the name of that
> remote machine hosting the Greenstone server:
> http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/gliserver.pl
>
> If the client-gli is running on the same machine, you can generally type
> "localhost":
> http://localhost/greenstone/cgi-bin/gliserver.pl
>
>
> 11. It will next ask you for a username and password. Type the values
> you entered for the new user you creatred in step 8.
>
>
> 12. The client-GLI dialog should finally open and look the same as the
> usual (local) GLI.
>
>
> Please write back at which step above, if any, things cease to work for
> you.
>
> Regards,
> Anupama
>
> Samveg Joshi wrote:
>> Hi Team,
>>
>>
>>
>> I tried running client-gli.bat through the command prompt but was not
>> able to open the Remote Client Interface.
>>
>>
>>
>> Please see the error message which I am getting,
>>
>>
>>
>> Please help me with this as I have been trying to sort it out from the
>> past 3 days,
>>
>>
>>
>>
>>
>> Thanks
>>
>> Samveg
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> greenstone-devel mailing list
>> greenstone-devel@list.scms.waikato.ac.nz
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>
>