Nokor-eSolutions Group Co, .Ltd.

smuthhomelyServers

Nov 17, 2013 (3 years and 7 months ago)

130 views

Nokor
-
eSolutions Group Co
, .
Ltd.

Deployment ILO Apps
Windows Servers

2008

Back Office

By

SENG Layheang


Network Administrator

July
-
2013




I.

Requirements

1.

Windows Servers 2008

2.

Network Configuration (can access from world wild web)

3.

Jdk 1.6.0_24
(jdk
-
6u24
-
windows
-
i586)

4.

Apache
-
Tomcat

7.0

(apache
-
tomcat
-
7.0.8)

5.

Mysql Server
(mysql
-
5.5.24
-
win32)

o

Mysql GUI Tool (
mysql
-
gui
-
tools
-
5.0
-
r17
-
win32.msi
)

6.

ILO
-
installation files

o

Apps (ilo
-
better
-
factory
-
bo.war)

o

Database (Ex: dump_2013_07_22_12_11.sql)


Note:
This document is used for administrator or developer of Nokor
-
eSolutions Group only.
The installation process below is not in detail. Some not useful point
s

of installation is hidden.

Please find the whole installation source in
\
\
srv
-
01
\
Projects
\
ILO















II.

Installation

1.

Windows Server 2008 Enterprise Edition R2


2.

Network Configuration (can access from world wild web)

Ex:





3.

Java (
jdk
-
6u24
-
windows
-
i586.exe
)

Tomcat require jre in this package to start.

-

Installation path
C:
\
Apps
\
Java

-

Set JAVA_HOME

Right click on
Computer
-
>
Properties
-
> Advanced system settings
-
> Advanced
-
>
Environment Variables
-
> (In System Variables)

click New
-
>
right following then

OK
:



4.

Apache
-
Tomcat 7.0 (
apache
-
tomcat
-
7.0.8
)

This installation path is in
C:
\
Apps
\
Tomcat 7.0
, but you can put in
D
:
\
Apps
\
Tomcat 7.0

as
you want. Apache
-
Tomcat is using port
8080
.

-

Double Click file
apache
-
tomcat
-
7.0.8.exe
, th
en click follow the instruction until finish.

-

If you prefer to deploy your application via tomcat web manager, you have to c
reate
user/password in this installation:


-

Then

f
ollow the installation until finish.


-

Note
: the default deployment file on tomcat is
50MB

if you wish to upload application by
web access, you have to increase size upload file, since our ILO size file is more than
60MB
.
To change it go file:

C:
\
A
pps
\
Tomcat 7.0
\
webapps
\
manager
\
WEB
-
INF
\
web.xml


<max
-
file
-
size>104857600</max
-
file
-
size>



<max
-
request
-
size>104857600</max
-
request
-
size>


In this installation, I don’t deploy war file by using web access. I just extract it and copy it
into
C:
\
Apps
\
Tomcat 7.0
\
webapps
\
ilo
-
better
-
factory
-
bo


-

Note
: There are some more con
figuration
require
:

o

E:
\
Apps
\
Tomcat 7.0
\
conf
\

server.xml

Find the text as below and add
(
URIEncoding=

UTF
-
8

)

as the following
:

--------------------------------------------------------------------

<Connector port="808
0
" protocol="HTTP/1.1"


connectionTimeout="20000"


redirectPort="8443"



URIEncoding="UTF
-
8
"/>

---------------------------------------------------------------------

---------------------------------------------------------------------
----------------------

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
URIEncoding="UTF
-
8"
/>

-----------------------------------------
--------------------------------------------------

o

Adding Java Option:

Open Apache

Monitor Tomca
t


-
>
Tab

Java

, in


Java Options


scroll down and
add the following text:

--------------------------------------------------------------

-
XX:MaxPermSize=256m

-
Djavax.servlet.request.encoding=UTF
-
8

-
Dfile.encoding=UTF
-
8

--------------------------------------------
------------------

Add
memor
y size as below in :


Initial memory pool: 256 MB

Maximum memory pool: 1024 MB


See screenshot below:



-

When installation finish, you can start and stop tomcat server by using tomcat monitoring
tool:


5.

Mysql Server (
mysql
-
5.5.24
-
win32.msi
)

-

Installation path:
C:
\
Apps
\
MySQL

-

Double click on file
mysql
-
5.5.24
-
wi
n32.msi

then following all instruction.

-

This database is running on port
3306

-

Default user:
root

-

You can put password if you want (
Recommend to put password of root
user
)

-

After finished installation, we can start/stop it services by using windows
services

manager.



Start
-
> run
-
> services.msc



Find service name MySQL


o

To import your dump into database MySQL, we need to install
mysql
-
gui
-
tools
-
5.0
-
r17
-
win32.msi


-

Installation path:
C:
\
Apps
\
MySQL
\
MySQL Admin

-

Double click on file
mysql
-
gui
-
tools
-
5.0
-
r17
-
win32.msi

then following the
instruction to complete the installation.

o

To connect to database from Mysql gui tool:



Start
-
> All Programs
-
> MySQL
-
> Mysql



On Wizard
-
> fill Server host, Username and password as below

then clieck OK
:



-

Click Restore
-
> Open Backup

file
-
> Select your dump file
-
> Open
-
> Start
Restore
-
> wait until Process finished successfully
-
> Close




-

Here your imported database:


6.

Deploy NKR
-
ILO applications into Apache
-
Tomcat.

-

Deployment path:
C:
\
Apps
\
Tomcat 7.0
\
webapps
\

ilo
-
better
-
factory
-
bo

-

Source apps:
ilo
-
better
-
factory
-
bo.war

-

Extract file
ilo
-
better
-
factory
-
bo.war

by using winrar



-

Restart both MySQL and Tomcat Service in Windows Service manager

-

Then try access:
http://localh
ost:8080

or
http://your
-
ip
-
address:8080


-

If you can’t access from your network, please make sure that you allow your
windows firewall with to access with port 8080.

-

To allow it: Control Panel
-
> Windows Firewall
-
> Change Setting
-
>
Exception
-
> Add port
-
> See below screenshot
-
> then click
OK
:


-

Installation is finished and successful:


-

END

-