{"id":103,"date":"2021-01-08T21:37:38","date_gmt":"2021-01-08T21:37:38","guid":{"rendered":"http:\/\/merserver.com\/?p=103"},"modified":"2021-01-08T21:37:38","modified_gmt":"2021-01-08T21:37:38","slug":"how-to-install-fop2-on-freepbx","status":"publish","type":"post","link":"http:\/\/merserver.com\/index.php\/2021\/01\/08\/how-to-install-fop2-on-freepbx\/","title":{"rendered":"How to install FOP2 on freepbx"},"content":{"rendered":"\n<p>SSH into your pbx using your favorite terminal software and type the command:<\/p>\n\n\n\n<p><code>wget -O - http:\/\/download.fop2.com\/install_fop2.sh | bash<\/code><\/p>\n\n\n\n<p>Once it is finished installing you need to edit the config to point to the working ssl certificate.&nbsp; The pbx must have a working let&#8217;s encrypt or other valid security certificate before this point.&nbsp; If it does not then get that done.<\/p>\n\n\n\n<p>In the terminal type:<\/p>\n\n\n\n<p><code>nano \/usr\/local\/fop2\/fop2.cfg<\/code><\/p>\n\n\n\n<p>The config will populate in the text editor.&nbsp; Locate the lines:<\/p>\n\n\n\n<p><code>ssl_certificate_file=\/etc\/pki\/tls\/certs\/localhost.crt<\/code><br><code>ssl_certificate_key_file=\/etc\/pki\/tls\/private\/localhost.key<\/code><\/p>\n\n\n\n<p>And replace them with:<\/p>\n\n\n\n<p><code>ssl_certificate_file=\/etc\/asterisk\/keys\/[pbxurl].pem<\/code><br><code>ssl_certificate_key_file=\/etc\/asterisk\/keys\/[pbxurl].key<\/code><\/p>\n\n\n\n<p>Where&nbsp;<code>[pbxurl]<\/code>&nbsp;is the pbx url that was used to create your certificate.&nbsp; Exit out of nano with ctrl+x and save changes.&nbsp; Restart the service with:<\/p>\n\n\n\n<p><code>service fop2 restart<\/code><\/p>\n\n\n\n<p>Once done FOP2 will be installed and accessible to the masses at&nbsp;<a href=\"https:\/\/[pbxurl]\/fop2\">https:\/\/[pbxurl]\/fop2<\/a><\/p>\n\n\n\n<p>Purchase the license from&nbsp;<a href=\"https:\/\/www.fop2.com\/buy.php\">https:\/\/www.fop2.com\/buy.php<\/a><\/p>\n\n\n\n<p>Check your email after for the registration code then terminal into the pbx and type:<\/p>\n\n\n\n<p><code>\/usr\/local\/fop2\/fop2_server --register<\/code><\/p>\n\n\n\n<p>Input the code at the promt then name the license so you know which pbx it belongs to.&nbsp; Restart the service with:<\/p>\n\n\n\n<p><code>service fop2 restart<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH into your pbx using your favorite terminal software and type the command: wget -O &#8211; 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.&nbsp; The pbx must have a working let&#8217;s encrypt or other valid security certificate before this point.&nbsp; If it&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"http:\/\/merserver.com\/index.php\/2021\/01\/08\/how-to-install-fop2-on-freepbx\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;How to install FOP2 on freepbx&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":1,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":104,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/103\/revisions\/104"}],"wp:attachment":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}