Setting up an Apache Web Server for Greenstone 2 Walkthrough



Similar documents
Redatam+SP REtrieval of DATa for Small Areas by Microcomputer

Greenstone Documentation

Install Apache on windows 8 Create your own server


APACHE WEB SERVER. Andri Mirzal, PhD N

Securing the OpenAdmin Tool for Informix web server with HTTPS

Installing and operating Greenstone

WEB2CS INSTALLATION GUIDE

Apache 2.0 Installation Guide

Installing SQL-Ledger on Windows

Contents: 1. Preparation/download files 2. Apache HTTPD Web Server MySQL PHP PHPMyAdmin Ruby On Rails 1.8.

Comparison table for an idea on features and differences between most famous statistics tools (AWStats, Analog, Webalizer,...).

Getting the software The Apache webserver can be downloaded free from the Apache website :

What will be supplied with chemoventory package?

Automatic updates for Websense data endpoints

Install and configure Apache, MySQL, PHP on OSX 10.8 Mountain Lion

EQUELLA. Clustering Configuration Guide. Version 6.0

dotdefender v5.12 for Apache Installation Guide Applicure Web Application Firewall Applicure Technologies Ltd. 1 of 11 support@applicure.

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

Matlab Web Server Installation and Configuration Guide

Setting Up A Nagios Monitoring System Warren Block, May 2005

unigui Developer's Manual 2014 FMSoft Co. Ltd.

Installation of PHP, MariaDB, and Apache

PHP+MYSQL, EASYPHP INSTALLATION GUIDE

The only skill required really is to locate and edit text-files with a text-editor like Notepad.

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

Configuring IBM HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on IBM WebSphere Application Server

Enterprise SSL Support

LAMP Quickstart for Red Hat Enterprise Linux 4

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on Oracle WebLogic Server

Created by : Ashish Shah, J.M. PATEL COLLEGE UNIT-5 CHAP-1 CONFIGURING WEB SERVER

Apache & Virtual Hosts & mod_rewrite

How to: Install an SSL certificate

Host your websites. The process to host a single website is different from having multiple sites.

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

1 Recommended Readings. 2 Resources Required. 3 Compiling and Running on Linux

CycleServer Grid Engine Support Install Guide. version 1.25

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier.

How to setup HTTP & HTTPS Load balancer for Mediator

TCH Forecaster Installation Instructions

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Installing and Configuring Apache

The course will be run on a Linux platform, but it is suitable for all UNIX based deployments.

MIGS Payment Client Installation Guide. EGate User Manual

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Commercial redistribution is allowed and encouraged; however, the author would like to be notified of any such distributions.

Best Practices in Hardening Apache Services under Linux

How To Install Amyshelf On Windows 2000 Or Later

CC ICT-SUD. Setting up and integrate Apache, MySQL and PHP on a Linux system

Server Installation/Upgrade Guide

Intelligent Video Analytics. Server Installation Guide. - Windows - Linux

WebLogic Server 6.1: How to configure SSL for PeopleSoft Application

C:\www\apache2214\conf\httpd.conf Freitag, 16. Dezember :50

Securing Your Apache Web Server With a Thawte Digital Certificate

How To Enable A Websphere To Communicate With Ssl On An Ipad From Aaya One X Portal On A Pc Or Macbook Or Ipad (For Acedo) On A Network With A Password Protected (

How To Link Tomcat 5 with IIS 6 on Windows 2003 Server using the JK2 ajp13 connector

Forward proxy server vs reverse proxy server

CONFIGURING A WEB SERVER AND TESTING WEBSPEED

Background (

Livezilla How to Install on Shared Hosting By: Jon Manning

IMPLEMENTATION OF CIPA - PUDUCHERRY UT SERVER MANAGEMENT. Client/Server Installation Notes - Prepared by NIC, Puducherry UT.

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

CloudPortal Services Manager Version 11.0 CU2 Deployment Guide

Laboration 3 - Administration

How to Install MediaWiki on Windows Server 2003

MapGuide Open Source. Installing and Configuring on Windows

MassTransit 6.0 Enterprise Web Configuration for Macintosh OS 10.5 Server

FirstClass Synchronization Services Install Guide

Implementing HTTPS in CONTENTdm 6 September 5, 2012

Technical White Paper

HAHTsite IDE and IP Installation Guide

Reference and Troubleshooting: FTP, IIS, and Firewall Information

PacsOne Server Installation Guide. Author(s): Xiaohui Li Revision: 6.4.4

Kony MobileFabric. Sync Windows Installation Manual - WebSphere. On-Premises. Release 6.5. Document Relevance and Accuracy

WebIOPi. Installation Walk-through Macros

Getting Started using the SQuirreL SQL Client

SVNManager Installation. Documentation. Department of Public Health Erasmus MC University Medical Center

How to Scale out SharePoint Server 2007 from a single server farm to a 3 server farm with Microsoft Network Load Balancing on the Web servers.

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

Installing and Configuring Apache

CPE111 COMPUTER EXPLORATION

APACHE HTTP SERVER 2.2.8

FirstClass Synchronization Services 12 Release Notes Windows Version

EventTracker: Configuring DLA Extension for AWStats Report AWStats Reports

Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2

Code Estimation Tools Directions for a Services Engagement

Yocto Project Eclipse plug-in and Developer Tools Hands-on Lab

Cloud Homework instructions for AWS default instance (Red Hat based)

Installation and Deployment

Itelpop Simple Screenpop Web Application Installation & Configuration Guide Version 1.0

NovaBACKUP xsp Version 15.0 Upgrade Guide

How to start with 3DHOP

BioDiscovery Product Activation Group Floating Windows

Setting Up SSL on IIS6 for MEGA Advisor

Transcription:

Setting up an Apache Web Server for Greenstone 2 Walkthrough From GreenstoneWiki Setting up an Apache web server to work with Greenstone 2: [edit] #Installing the Apache web server on Linux and MacOS (Leopard) #Installing the Apache web server on Windows Installing the Apache web server on Linux and MacOS (Leopard) A walkthrough for Linux on how to set up Apache's httpd.2.2.8 web server for Greenstone v2.80. The following should hopefully work with other releases of the Apache's HTTP Server as well. Notes: commands to be typed in a Linux x-term prompt are indicated with $ 1. Downloading and verifying Download the current httpd tar.gz file from http://httpd.apache.org/ e.g. You can go to the mirror site http://ossavant.org/apache and download tar.gz version of httpd2.2.8. To verify you have an uncorrupted copy of the downloaded file <httpd-version.tar.gz>, you need to download the <httpd-version>.tar.gz.asc file and the KEYS file. For example: o the KEYS file from http://httpd.apache.org/download.cgi and o the httpd2.2.8.tar.gz.asc from http://www.apache.org/dist/httpd/ Now, to verify your download, open an x-term and do as described at http://httpd.apache.org/download.cgi. For example: $ gpg --import KEYS $ gpg --verify <httpd version file name>tar.gz.asc 2. Extracting If you've verified it, extract the contents of the download where you want it: $ tar -xvzf httpd2.2.8.tar.gz 3. Installing by compiling Now the folder httpd2.2.8 is created. CD into this folder. Inside this folder, there's a README file which points one to the INSTALL file for installation instructions. The following comes from there. First choose the directory where you want to install your apache web server. In the following, PREFIX is the full path to where it will reside. 4. $./configure --prefix=prefix

5. $ make 6. $ make install For example, PREFIX might be /home/myname/gs2/apache (no quotes!). In this case, we would do: $./configure --prefix=/home/myname/gs2/apache $ make $ make install 7. Configuring the server and port Go into your PREFIX folder again (the "apache" folder where you installed the web server). Locate and open the httpd.conf configuration file for editing. That is, open PREFIX/conf/httpd.conf: o Add your host server's name in the ServerName section (make sure any other ServerName values are commented out): ServerName <my.fullservername.location.com> o Add the port you want your web server to be listening at in the Listen section. Choose a port number that is not in already in use.: Listen 8080 8. Running (starting) and stopping the server To run, type the following in the exterm: $ PREFIX/bin/apachectl start To stop it: $ PREFIX/bin/apachectl stop If you need to stop then start it up again, you can do both steps in one go: $ PREFIX/bin/apachectl restart Running start, stop and restart also works if you're in the PREFIX/bin folder by:./apachectl start./apachectl stop./apachectl restart For instance, we might do the following to start it using our example prefix: $ /home/myname/gs2/apache/bin>./apachectl start 9. Testing that the web server runs Open a browser at http://servername:portnumber/ (replace with the values you specified for ServerName and port number in the web server configuration file httpd.conf) and it should work. You will know, if a page loads with the message "It Works!" or some other confirmation message. 10. Some reading on your part: If you installed a Binary distribution of Greenstone 2 (GS2), then the installation wizard would

have displayed some information with script code on how to set up the web server for GS2: (In the following, $GSDLHOME is the full path to your greenstone installation folder, usually gsdl.) To use the Greenstone Web Library you will need to have a webserver installed (you'll also need perl if you want to build your own collections). The following information is intended to help you configure your webserver for use with Greenstone. Particular attention is given to the Apache webserver which may be downloaded free from www.apache.org. Greenstone will work with other webservers too if that is your preference. To refer back to this information later you can find it in the file $GSDLHOME/library.txt Greenstone has been set up to expect $GSDLHOME/GS2 to be accessible from your webserver at the URL http://localhost/gsdl (localhost will of course be the usual web address of your machine if it has one). Likewise, the $GSDLHOME/cgi-bin directory must be accessible as a cgi executable directory. For the Apache webserver this means adding the following directives to your httpd.conf configuration file: ScriptAlias /gsdl/cgi-bin "$GSDLHOME/cgi-bin" <Directory "$GSDLHOME/cgi-bin"> Options None AllowOverride None </Directory> Alias /gsdl "$GSDLHOME" <Directory "$GSDLHOME"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> Once your webserver is configured in this way you can access Greenstone by pointing your web browser at http://localhost/gsdl/cgi-bin/library or http://your.server.com/gsdl/cgi-bin/library For more information on installing and configuring a webserver see the Greenstone Installer's guide. The above is given in the Greenstone 2 installation wizard. We're going to use it now: 11. Setting up the apache web server for Greenstone 2 Open up the httpd.conf file again. It's in your web server installation's conf folder, i.e. PREFIX/conf/httpd.conf. Append the following at the end, making sure to replace $GSDLHOME with the full path to your Greenstone 2 installation folder (usually the GS2 folder's called gsdl): 12. ScriptAlias /gsdl/cgi-bin "$GSDLHOME/cgi-bin" 13. <Directory "$GSDLHOME/cgi-bin"> 14. Options None 15. AllowOverride None 16. </Directory> 17. 18. Alias /gsdl "$GSDLHOME" 19. <Directory "$GSDLHOME"> 20. Options Indexes MultiViews FollowSymLinks 21. AllowOverride None

22. Order allow,deny 23. Allow from all 24. </Directory> 25. If you haven't done so already, open up the file $GSDLHOME/cgi-bin/gsdlsite.cfg, and o Change: gsdlhome **GSDLHOME** to the full path of $GSDLHOME (you can put it in quotes, try this especially if your path contains spaces): gsdlhome "/full/path/" o Uncomment: #httpprefix /gsdl (Make sure that the prefix is the same as the alias registered with your web server.) httpprefix /gsdl o And adjust: "httpimg /images" to (Make sure that the prefix is the same as the alias registered with your web server.) httpimg /gsdl/images [edit] 26. Viewing pages served by Greenstone 2 in your browser Open the browser again at http://servername:portnumber/gsdl/cgi-bin/library And now you can hopefully see the main page for Greenstone 2. Installing the Apache web server on Windows A walkthrough for Windows on how to set up Apache's httpd.2.2.9 web server for Greenstone 2. The following should hopefully work with other releases of the Apache HTTP Server as well. 1. Download the binary release of the Apache HTTP server for Windows. I got the "Win32 Binary without crypto (no mod_ssl) (MSI Installer)". 2. Double click on the downloaded file--for instance, this may be called apache_2.2.9-win32-x86- no_ssl-r2.msi--and go through the installation wizard. Choose "Typical installation". I accepted Port 8080. 3. To start the server, open a DOS prompt and move into the Apache Software Foundation\Apache2.2\bin directory. Once there, type httpd.exe To stop it, the Apache HTTP Server online manual says opening a new DOS prompt, going to the Apache server's bin directory and typing the following should stop a running server: httpd.exe -k shutdown

However, this didn't work for me. You may need to type ctrl-c in the same prompt from where you ran httpd.exe instead. See here for more information. 4. Check the server is running by visiting localhost:8080 in a browser. It should show the message "It Works!" 5. Edit the file "Apache Software Foundation\Apache2.2\conf\httpd.conf" as follows. 1. Make it listen at port 8080 if this is not already set, by finding the "Listen" entry in the file: Listen 8080 2. Set the server name to be the name of your host machine by searching for the "ServerName" entry in the file. (More information can be found in the httpd.conf file where you're making these changes.) ServerName name-of-your-machine For example, if you're going to test the remote Greenstone server from the same machine-- that is, locally--then you can set this value to "localhost": ServerName localhost 3. At the end of the httpd.conf file, paste the following and replace $GSDLHOME with the full path to your greenstone 2 installation. Take care to use forward slashes this time, and leave the quote-marks intact where you find them in the following: 4. # Setting up the Apache webserver to work with Greenstone2 5. ScriptAlias /gsdl/cgi-bin "$GSDLHOME/cgi-bin" 6. <Directory $GSDLHOME/cgi-bin> 7. Options None 8. AllowOverride None 9. </Directory> 10. 11. Alias /gsdl "$GSDLHOME" 12. <Directory $GSDLHOME> 13. Options Indexes MultiViews FollowSymLinks 14. AllowOverride None 15. Order allow,deny 16. Allow from all 17. </Directory> Instead of "gsdl" in the aliases above, you could choose something else (like "gs2remote"), as long as you use it consistently and use the same in the following steps as well. 6. Edit the file gsdlsite.cfg located in your $GSDLHOME\cgi-bin as follows: 1. Change the GSDLHOME placeholder in the file to be the full path to your Greenstone2 installation. Use Windows style file separators this time (backslashes). For example C:\gsdl. 2. Uncomment the "httpprefix" entry to get httpprefix /gsdl Make sure the prefix is set to the same value as the alias you chose. 3. You may also need to adjust the "httpimg" entry to:

httpimg /gsdl/images Once again, make sure to use the script alias you'd chosen above. If the images do not display in the next step, then come back here and change this back to the way it was before. 7. Visit http://localhost:8080/gsdl/cgi-bin/library.exe in your browser and hopefully you will now see Greenstone 2's main page. (Or, more generally: http://your-host-name:your-port/your-alias/cgibin/library.exe) 8. On Windows, there is a local library server which often runs automatically when running the Greenstone Librarian Interface, GLI. To avoid this from interfering with the custom web server you have associated with Greenstone (the Apache web server just configured), you may want to tell it to not start automatically when running GLI. Make sure server.exe is not running. Go into your Greenstone2 installation directory. In there you will find either one or both of the following files: 1. gsdlsite.cfg 2. glisite.cfg If the glisite.cfg file is missing, make a copy of the gsdlsite.cfg file and rename the *copy* as glisite.cfg. Open glisite.cfg, and edit two lines: the line with the property "autoenter" and the line with the property "start_browser". Set both properties equal to 0 as follows: autoenter=0 start_browser=0 The above will prevent the local library server (server.exe) from being launched every time you launch GLI. You will also want to set the greenstone library path in GLI to connect to the correct web server when previewing collections. You do this in GLI, by going to File > Preferences > Connection tab and setting the value of the Greenstone Web Path field to http://yourserverhostname:portnumber/gsdl/cgi-bin/library.exe (or http://localhost:9020/aliasyouchoseinstep5above/cgi-bin/library)