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 5.2 or greater installed under Apache
Installation Notes (EMuWeb - TexXMLServer)
- Log in as emu.
- Enter client clientname
where clientname 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 EMu servers that will handle web requests. Modify the settings to:
EMUXMLSERVERS=3 EMUXMLSERVICE=emuwebclientname where clientname is the name of the EMu environment being configured. If you want to disable the 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 clientname
- 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/clientname/web emuwebclientname
- 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 (KE EMuWeb - remote IIS).
- Log in as emu.
- Enter client clientname
- Enter tar cvf emuweb.tar web to create a backup of the web directory.
- Log out.
- Log in 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 emuwebclientname
- Enter chown -R owner:group emuwebclientname 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 EMuWeb - Initialisation.
Installation Notes (EMuWeb - Initialisation)
- Enter chmod 666 emuwebclientname/objects/cache/system.php
- Enter vi emuwebclientname/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 emuwebclientname service on KE EMu server $WEB_DIR_NAME=emuwebclientname 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/emuwebclientname/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 the Reload button in the web page.
A page containing Initialise Complete should be displayed.
- Shutdown your web browser.
URL Setup
In order to test your setup the following URL can be used: http://yourserver/emuwebclientname/pages/cataloguetype/Query.php where cataloguetype is the type of catalogue used in the installation (e.g. gallery, rbg, mv, etc.).
|