[ <- Previous Page ] [ ^ Table Of Contents ^ ] [ Next Page -> ]
Installing zWebit

Chapter 4
Installing zWebit

This installation procedure assumes:

  1. /usr/local is the default parent directory structure for zwebit. If a different directory structure is chosen, update script files in directory webit/bin, file zwebit/sql/testkeys.sql and files in directory zwebit/html.
  2. zWebit 1.0.0 was created on Redhat Linux Version 8.0. The software is designed to run on any Linux or Unix machine. Different OS distributions may vary, meaning these instructions might not work at your site. An effort was made to provide enough information for installation on other distributions as well.
  3. Please send errors and updates pertaining to this procedure to info@zhsac.com




Section 1: Software Installation

Follow these steps to install the base zwebit package
DescriptionCommand
Create user zwebitDepends on Linux/Unix system used
Create group zwebit and verify user zwebit is a member of group zwebitDepends on Linux/Unix system used
super usersu
change directorycd /usr/local
Download zwebit-x.y.z.tar.gz where x.y.z is the latest releaseftp
unzip the filegunzip zwebit-x.y.z.tar.gz
verify zwebit-x.y.z.tar file existsls -l
extract files from the tar file tar -xvf zwebit-x.y.z.tar
verify directory zwebit-x.y.z existsls -l
create a symbolic link to it ln -s zwebit-x.y.z zwebit
verify zwebit links to zwebit-x.y.z ls -l
change directory to zwebitcd zwebit
configure automake./configure
make the packagemake
install itmake install
verify file /etc/ld.so.conf has a /usr/local/lib entry; if not, add it and run command ldconfig as root edit /etc/ld.so.conf
ldconfig
in the file zwebit/html/common.inc, update the $site variable to your site name edit zwebit/html/common.inc
exit super userexit





Section 2: Postgres Installation

If postgres is configured differently, take the appropriate equivalent steps for your configuration. These steps were taken on a Redhat V8.0 configuration. Your mileage may vary.

DescriptionCommand
Verify postgres is installed and operational Depends on Linux/Unix system used; RH 8.0, startx, ServerSettings, Services, verify postgresql is checked and is operational.

ps -ef | grep postmaster
*Should return something if postgres is running
Super usersu
Enter pgsql/data directorycd /var/lib/pgsql/data
Verify parameter tcp-ip=true in file postgresql.conf edit postgresql.conf
Add these two lines to the /var/lib/pgsql/data/pg-hba.conf file
host test 127.0.0.1 255.255.255.255 trust
host prod 127.0.0.1 255.255.255.255 trust
edit pg-hba.conf
Then restart postgres/sbin/service postgresql restart
Super user postgressu postgres
Create zwebit usercreateuser zwebit
create databases=Y
create more users=Y
Exit superuser postgresexit
Exit superuserexit
Super user zwebitsu zwebit
Create test databasecreatedb test
Create prod databasecreatedb prod
Create test system tablescd /usr/local/zwebit/sql
psql -d test -f ptrkeys.sql
psql -d test -f idata.sql
psql -d test -f testkeys.sql
Create prod system tables psql -d prod -f ptrkeys.sql
psql -d prod -f idata.sql





Section 3: Apache Web Server Installation Setup

This installation procedure assumes apache is used as the web server software.

  1. Load and install apache web server if it is not already installed
  2. Identify the user and group of the process id that runs the Apache web server (Review the httpd.conf file, parameter group). Verify the Apache group (probably apache) is included in the zwebit group in the /etc/group file.
  3. Link zwebit webpages to apache directory:
    cd /var/www/html
    ln -s /usr/local/zwebit/html zwebit



[ <- Previous Page ] [ ^ Table Of Contents ^ ] [ ^ Top Of Page ^ ] [ Next Page -> ]


Visit the GNU home page.

FSF & GNU inquiries & questions to gnu@gnu.org.

Comments on these web pages to info@zhsac.com.

Copyright (C) 2003 HealthCare Systems and Consulting

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.

Last updated: 07/21/2003