Installation and Configuration of Web components for Envision-Series (Windows 2008 Server)

snortfearΔιακομιστές

4 Δεκ 2013 (πριν από 3 χρόνια και 11 μήνες)

100 εμφανίσεις

Installation and Configuration of Web
components for
Envision
-
Series

(Windows 2008

Server)


1.

Preliminary



Log on the
Windows 2008
machine as an Administrator



The machine needs to have access to the Internet via a Web browser

2.

Perl Interpreter



Download the Act
ivePerl interpreter from
http://downloads.activestate.com/ActivePerl/Windows/5.6/

: select the ActivePerl
-
5.6.1.631
-
MSWin32
-
x86.zip



Extract the zip file. The extracted folder will sh
ow the ActivePerl directory and Installer
batch file.






Run the setup program

by double click
ing

on
the
Installer batch file.

It will
prompt for

the path to

install Perl.
Remember the path where Perl is installed

and
enter it as shown
in the
below scree
n shot and proceed
.







The next few screens during the
setup will ask
for confirmation
s. Enter
‘Y’ for all
confirmations and click on enter at the end

to complete the process and close the
window
.





After the above process
-

o
pen
a
DOS command prompt an
d go to the bin folder of Perl.
Run the ppm (Perl Package Manager)
using ppm command
(
Ex:

C:
\
PERL
\
bin>ppm)

as
shown in the below screen shot
.






In ppm, We need to Install the following packages



DBI module



DBD
-
ODBC




First run the comm
and for DBI module

to Install “
install DBI
” as shown in the below
screen shot






Enter Y and
press the
enter
key to install
DBI.




Next
run the command for DBD
-
O
DB
C

module to Install

install
DBD
-
ODBC
” as shown in
the below screen shot





Enter Y and
press the
enter
key to
install
DBD
-
O
DB
C
.


While installing, Note that if you get a message “could not locate a ppd file for package DBI,
etc.), it could be due to having no Internet connection to http://www.activatestate.com
(Web site down), not necessarily a problem with ppd.


3.

Install Pacbase Web Connection



Copy the
VisualAge Pacbase 2.5 v15
from the CD
to
the
local

system.





Run the setup from the
VisualAge Pacbase 2.5 V15
\
WINDOWS

folder.




Follow the below
steps and
screen shot
s

for installation.


-

Select the language English a
nd click next.




-

Select the Pacbase Web Connection 2.5 and click next.



-

Select the Context server and Middleware and unselect Pacbase Web Generator
check boxes and click next







-

Select the Pac Web installation directory (Ex: C:
\
PACWEB)and clicks n
ext.




-

Select the directory (Ex: C:
\
PERL) where Perl is installed and click on next.




-

Once Perl
is installed a
message “Setup complete. You must run the middleware
setup before using Pacbase Web Connection” will be displayed.






On click of Ok butto
n,
a
new window
as shown below
will be opened.






From the new window run the middleware setup and complete the installation process.

4.

ODBC driver:
Informix

client from CD
-
ROM

S
et up
Informix
database client / ODBC driver according to software vendor manu
al
.


5.

HTML and help pages, cgi script



Copy the entire directory EnvisionApp
and EnvisionDoc
from the CD

to

the

local system.
Example
:
-

C
:
\

EnvisionApp

and
C:
\
EnvisionDoc
.




From
\

EnvisionApp
\
web
\
front
\
cg
i
-
bin, there are 3 Perl scripts


-

Open
cgicgi.pl

and
make the below changes



Change the path for the property
IMAGEDIR

to point to the images folder.
An example is proved below.




Ex
ample
:

C:/EnvisionApp/Web/Front/HTML/Images



Change the path
for the property
MISC_DIR

as shown in the example
provided below




Ex
ample
:

C:/EnvisionDoc/tmp/



Change the path
for the property
LOG_DIR
as shown in the example
provided below



Ex
ample
:
C:/EnvisionDoc/Log/



Comment the line where
tv_interval

is exists.



Change the
property “Server_N
ame


from “local
host


to
the
system
name
on w
hich database is running
.

Example provided below

$Server_Name =
‘NF3500_1’

unless $Server_Name;

-

polReports.pl

-

view_report.pl




edit
all
the scripts and check that
the
first line points to
the right
location of Perl
executable




Edit the Appli.htm (
present un
der
\
EnvisionApp
\
WEB
\
front
\
CGI
-
BIN
\
Common
\
) and
FI.html
(
present under
\
EnvisionAppp
\
WEB
\
front
\
CGI
-
BIN
\
FI
)

-

Change the s
erver name
from
localhost to
server IP (Example
-

192.168.9.48
)
.

-

Add parameter port to the URL as mentioned in below screen shot


this

is required
if we are using Informix.



6.

Web Server



Define an alias pw <
-
> C:
\

EnvisionApp
\
web
\
front
\
HTML

-

Open the IIS Manager


-

R
ight click on Default Web Site from the sites in the left pane

and select the “Add
Virtual Directory” option.



-

Enter the a
lias name (PW) and select the path (C:
\
EnvisionApp
\
Web
\
Front
\
HTML)
and
click on OK.





Define an alias cgi <
-
> C:
\

EnvisionApp
\
web
\
front
\
cgi
-
bin

-

Follow the
above steps to create alias for cgi
.


Note: if Microsoft IIS is your Web server, make sure that n
o file is read
-
only when

defining the aliases




Associate .pl file extensions with Perl
.

-

Select the
De
fault Web Site

from the left pan
e
of IIS Manager
and double click on
Handler Mappings

from the middle pane.




-

Click on
Add Module Mapping

in the right
side actions pane.

Add Module Mapping

window will be opened.


-

Enter



T
he
path

as “*.pl”



S
elect the
module

as “IsapiModule”



Select the
Executable

perlis.dll by browsing the directory.



Example:
C:
\
Perl
\
bin
\
perlis.dll




Enter
any text for the
Name

field
and
c
lick on OK.







Add Default page to the web site. To add a default page to the PW follow the
below
steps.

-

Open the IIS Manager, select pw from
the Defau
lt Web Site and double click
Default
Document from the middle pane.

-

Click on
Add…
in the right side act
ions pane.
Add
Default Document

window will be
op
ened.

-

E
nter the name of the file
.
Ex
ample: PacApplication.htm

and click on OK.


7.

Context Server



Copy
all
the ini file from PACWEB
from the CD
and place under C:
\
PACWEB
(Example:
financial.ini,

payroll.ini
)




Confirm again that the .ini files should be in the same directory as the context server

(C:
\
PACWEB): financial.ini, payroll.ini




Edit the .ini files
(
financial.ini

and

payroll.ini
)
and look for:

-

Property
Install_Dir:
Change it to
point to the location o
f the HTML pages
of the
current

application (Financial
)



Example:
C:
\

EnvisionApp
\
web
\
front
\
HTML
\
FI for finance


-

Property
MWADDRESS:



MWADDRESS is calculated based on server IP and port. This can be
calculated using
as below:



Select

Compute the IP Address


from Start
-
> All Programs
-
> Pacbase Web
Connection.
A n
ew window will be opened.



Enter the Server IP
XXX.XXX.XXX.XXX
and Port (Ex
ample
: 5996

for
Informix
)
on which the database is running
and click on Compute.



The result will be displayed in the Result b
ox. The result
looks
like
0x0002176DC0A80930



0x00002 is a constant



176DC0A80930
:




F
irst 4 characters are the hex value of the port on which the


listener is listening
-
> 5996 RS/6000 Informix; 5997 DB2 Finance

• L
ast 8 are the IP address of the s
erver in groups of 2, so



192
.
168
.
9
.
48

is

C0A80930



You can use IBM’s utility addressip.exe located in



..
\
pacweb
\
wnt
\
setup to

compute the hex values


8.

Run Context Server



Open the DOS prompt and go to the PACWEB folder




From a DOS prompt, type pacw
eb.exe

s 2345

(Ex: C:
\
PACWEB>pacweb.exe

s 2345)




To test the communication between the cgi script and the context server, open another

DOS prompt and start cgicgi.pl

with below parameters

-

M
onitor=FINANCIAL

-

P
ort=2346


-

S
ervername=192.168.9.48 or NF3500_1


-

Ex
ample
:

C:
\
EnvisionApp
\
Web
\
Front
\
CGI
-
BIN>perl cgicgi.pl monitor=FINANCIAL
port=2345 server=192.168.9.48


-

You should see the HTML page of the login scree
n
.




-

This ensures that
the
application is running.