This is a short guide how to migrate
5.2.x > to 5.2.latest
OR
5.2.x > to 5.3.latest
Migration Step 1 - Prepare a new server
1) Download
5.2
5.3
2) Install
sudo ./install.sh
3) Activation
sudo ./usr/local/FlashphonerWebCallServer/bin/activation.sh
4) Launch or restart
systemctl restart webcallserver
5) Make sure the demo samples are working, i.e.
Migration Step 2 - Copying settings
1) Do backups for these two files:
Code:
cp /usr/local/FlashphonerWebCallServer/conf/flashphoner.properties flashphoner.properties.backup
cp /usr/local/FlashphonerWebCallServer/conf/wss.jks wss.jks.backup
2) Copy the following files from Old server to the New one.
Code:
/usr/local/FlashphonerWebCallServer/conf/flashphoner.properties
/usr/local/FlashphonerWebCallServer/conf/wss.jks
3) Edit flashphoner.properties file and make sure the ip settings are correct:
Generally IP and IP_LOCAL should be different if server is located behind a NAT or has two or more network interfaces.
For example:
AWS EC2 instance has two IPs: private and public
private IPv4 is 172.31.12.55
public IPv4 is 3.23.21.123
Therefore we should set
Code:
ip = 3.23.21.123
ip_local = 172.31.12.55
Code:
# ifconfig
enX0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9001
inet 172.31.12.55 netmask 255.255.240.0 broadcast 172.31.15.255
inet6 fe80::43:89ff:fe90:b8a7 prefixlen 64 scopeid 0x20<link>
ether 02:43:89:90:b8:a7 txqueuelen 1000 (Ethernet)
RX packets 251587 bytes 175174542 (167.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 200250 bytes 56774227 (54.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 90170 bytes 9615083 (9.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 90170 bytes 9615083 (9.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
4) Adjust permissions for newly edited configs
Code:
sudo ./usr/local/FlashphonerWebCallServer/bin/webcallserver set-permissions
5) Restart server and make sure it works as expected
Code:
sudo ./usr/local/FlashphonerWebCallServer/bin/webcallserver set-permissions
Test:
Here use your domain name instead of demo.flashphoner.com
6) Deactivate the license on the Old servers to avoid double charge.
Code:
sudo ./usr/local/FlashphonerWebCallServer/bin/deactivation.sh
Resuming the topic, let's do a short list:
1) Install a new version from scratch.
2) Activate license, launch and test a demo sample.
3) Move config files from the Old server and adjust permissions. Configure ip and ip_local.
4) Launch the New server, test a demo sample. Deactivate the license on Old server.