Best way to install Main Server 1 at Ubuntu

Environment

  • Ubuntu server 22.04.2 64bit
  • OpenJDK 8
  • Use sudo account

  • OS, Apache and Java is not in ProPTT2 package, To know the detail information of installation, please contact to the product's homepage.

1. Install Linux

1.1 Check your server machine specification. refer recommended specification.
1.2 Install Ubuntu server 64bit as a default server.
1.3 Setup system time as GMT0 and sync by ntp.(see Timezone setup in Common)
1.4 Check 80, 443 ports are already opened. If httpd is started, we can't open 80 and 443 port. You have to stop the HTTPD. (see FAQ in Common)

2. Install Java8

2.1 Install Java8

3. Setup hostname

3.1 Setup hostname.
3.2 Modify hosts file(see Java installation in Common)

4. Decompress ProPTT2's tar

5. Install Apache

5.1 Install Apache2 by apt.(see Apache installation in Common).
5.2 Add 8080, 8088, 40080, 40443 port in ports.conf

6. Install mod_ssl and setup SSL

7. Install mod_jk to link Apache and Tomcat

configure mod_jk

10.0.0.20 is IP of main server 2.
They are clustered.
Please note if L4 switch has RoundRobin, worker.loadbalancer.sticky_session must be 0.

8. Setup virtual hosts in Apache

default crt and key files are in ProPTT.
It would be {proptt}/apache-tomcat/tls/proptt.crt.
ex) /home/proptt/svc/ent-package/apache-tomcat/tls/proptt.crt
the proptt.crt and proptt.key must be copied to /etc/ssl/certs/ and /etc/ssl/private/

9. Setup firewall

By default, firewall would not be enabled. If you use firewall, you need to open below ports.(see Firewall setup in Common)
TCP in : 80, 443, 8070, 8071, 8080, 8088, 40080, 40443, 41000, 41022, 41322, 41323, 41324, 41331, 41332, 41341, 41372
UDP in : 41323, 41324
L4 setup required : 8080, 8088, (80, 443 to login only adminWeb for users), (40080, 40443 to ligin only adminWeb for operators)

10. Setup database

10.1 check db.properties
verify username and password for DB
10.2 run check_db
If there is no Java in system, please install Java.
You need to check if DB allowed the remote access.

11. Run ProPTT2