SSH into your pbx using your favorite terminal software and type the command:
wget -O - http://download.fop2.com/install_fop2.sh | bash
Once it is finished installing you need to edit the config to point to the working ssl certificate. The pbx must have a working let’s encrypt or other valid security certificate before this point. If it does not then get that done.
In the terminal type:
nano /usr/local/fop2/fop2.cfg
The config will populate in the text editor. Locate the lines:
ssl_certificate_file=/etc/pki/tls/certs/localhost.crt
ssl_certificate_key_file=/etc/pki/tls/private/localhost.key
And replace them with:
ssl_certificate_file=/etc/asterisk/keys/[pbxurl].pem
ssl_certificate_key_file=/etc/asterisk/keys/[pbxurl].key
Where [pbxurl]
is the pbx url that was used to create your certificate. Exit out of nano with ctrl+x and save changes. Restart the service with:
service fop2 restart
Once done FOP2 will be installed and accessible to the masses at https://[pbxurl]/fop2
Purchase the license from https://www.fop2.com/buy.php
Check your email after for the registration code then terminal into the pbx and type:
/usr/local/fop2/fop2_server --register
Input the code at the promt then name the license so you know which pbx it belongs to. Restart the service with:
service fop2 restart