It worked for me. you can use these steps:
apt install php-mbstring bind9-utils
add 4445 TCP in firewall
wget -O - http://download.fop2.com/install_fop2.sh | bash
chown -R asterisk:asterisk /var/www/html/fop2/
cd /usr/local/fop2
chown asterisk:asterisk .
bash /usr/local/fop2/setSSL.sh
systemctl restart fop2
But the service keeps restarting