Introduction
EMuWeb provides a web based, query only interface to EMu. Using a Web Browser it is possible to search the collection and view listings and details about matching records. EMuWeb has been designed as a series of simple objects that web designers can use to create their own web pages as required. EMu provides a standard set of pages that may be used as an "out of the box" system.
The EMuWeb interface uses the PHP scripting language to dynamically build web pages based on the results of queries. In order for EMuWeb to be operational it is necessary to have a functional web server that is capable of interpreting PHP code. For Unix based systems we recommend the use of Apache as the web server with PHP installed as a dynamically loaded module.
EMuWeb may be installed on the same machine as EMu or it may be installed on a separate web server and access EMu via a socket connection. The installation notes below detail both the local installation (installed on same machine as EMu) and the remote installation (installed on web server machine different from EMu server).
The term ~emu is used to refer to the user emu's home directory. This is typically /home/emu.
Requirements
- Apache, Version 1.3 or greater.
- PHP, Version 4.0.4 or greater installed under Apache
Installation Notes (EMuWeb - TexXMLServer)
- Log in as emu.
- Enter client client where client is the KE EMu environment to be configured.
- Enter emuweb stop
- Enter vi etc/config
- Locate the lines containing EMUXMLSERVERS and EMUXMLSERVICE. The value for EMUXMLSERVERS is the number of KE EMu servers that will handle web requests. Modify the settings to:
EMUXMLSERVERS=3 EMUXMLSERVICE=emuwebclient where client is the name of the KE EMu environment being configured. If you want to disable the KE EMuWeb interface set EMUXMLSERVERS to zero.
- Save the file.
- Enter vi etc/texxmlserver.conf
- Locate the line AllowedHost=. Modify the line to:
AllowedHost=machine name of web server For a local installation set the machine name to localhost and for remote installations use the machine name of the remote web server.
- Save the file.
- Enter client client
- Enter emuweb start
- Log out.
Installation Notes (EMuWeb - local UNIX)
- Log in as root.
- Enter cd documentroot where documentroot is the DocumentRoot directory set in the Apache configuration file httpd.conf. The location of the Apache configuration file is installation dependent however the following locations are commonly used:
Location
|
Operating System
|
/usr/local/apache/etc
|
Many Unix versions
|
/usr/local/etc/apache
|
FreeBSD
|
/etc/httpd/conf
|
RedHat Linux
|
/etc/apache
|
Solaris
|
Note that if you are running virtual servers then use the DocumentRoot set for the virtual server that will service KE EMuWeb requests.
- Enter ln -s ~emu/client/web emuwebclient
- Stay logged in and continue with KE EMuWeb - Initialisation.
Installation Notes (EMuWeb - remote UNIX)
The instructions below assume that the remote web server is on a Unix machine running Apache. If the remote web server is a Windows IIS machine then please see the Installation Notes (EMuWeb - remote IIS).
- Log in as emu.
- Enter client client
- Enter tar cvf emuweb.tar web to create a backup of the web directory.
- Logout.
- Login to the remote web server as root.
- Enter cd documentroot where documentroot is the DocumentRoot directory set in the Apache configuration file httpd.conf.
- Transfer the file emuweb.tar from the KE EMu server into the document root directory on the web server machine.
- Enter tar xvf emuweb.tar
- Enter mv web emuwebclient
- Enter chown -R owner emuwebclient where owner and group are the owner name and group name respectively for files accessible by Apache. See the User and Group settings in the Apache configuration file httpd.conf for the correct values.
- Stay logged in and continue with KE EMuWeb - Initialisation.
Installation Notes (EMuWeb - Initialisation)
- Enter chmod 666 emuwebclient/objects/cache/system.php
- Enter vi emuwebclient/CONFIG.php
- Locate the lines containing $XML_SERVER_HOST, $XML_SERVER_PORT and $WEB_DIR_NAME. Modify the settings to:
$XML_SERVER_HOST=machine name of KE EMu server XML_SERVER_PORT=port number of emuwebclient service on KE EMu server $WEB_DIR_NAME=emuwebclient For a local installation name set the machine name to localhost and for remote installations use the machine name of the remote web server.
- Save the file.
- Log out.
- Start up your web browser and open http://yourserver/emuwebclient/objects/admin/index.php
- The EMuWeb administration login page is displayed. Enter the default password keemu and click Login.
- The KE EMuWeb Admin page is displayed. Click Reload.
- Shutdown your web browser.
URL Setup
In order to test your setup the following URL can be used:
http://yourserver/emuwebclient/pages/cataloguetype/Query.php
where cataloguetype is the type of catalogue used in the installation (e.g. gallery, rbg, mv, etc.).
|