How to Install FreePBX 15 on CentOS 7 with Asterisk 16
Here is an easy way to try FreePBX 15 on GCP: I took the instructions at »wiki.freepbx.org/display ··· CentOS+7 and assembled them into a script, adding modifications for GCP and automating all interactive steps.
The platform includes hardware firewall protection, snapshots, ease of creating / moving / destroying servers on demand, as well as many other management features.
Once you’ve signed up, go to »console.cloud.google.com .
Select Compute Engine -> VM instances. Click Create Instance. Choose a name, select zone; free options are us-east1 (South Carolina), us-central1 (Iowa) or us-west1 (Oregon). If you’re not sure, check at »www.gcping.com/ (test takes about 30 seconds to run, actual ping time is ~12 ms less than HTTP time reported). (Leave default Machine type for faster build — we will change to a free one later.) Change Boot disk to CentOS 7, press Select. Under Firewall, click Allow HTTP traffic. Click Create. On the VM Instances page, under Connect, click SSH (need to click twice if blocking popups). A console window will open (takes ~30 seconds). Paste the code below into the console window.
When the script is done (about 20 minutes), “You have successfully installed FreePBX” should appear in green. If a minute goes by with no activity, it has probably stopped on an error. Go to Settings -> Asterisk SIP Settings. Click Detect Network Settings. The External Address field should populate. Click Submit then Apply Config. I’m aware of two problems with this build: 1. It can’t send mail (such as voicemail notifications), because Google blocks outgoing ports 25, 465 and 587. My mail provider, Fastmail, has a proxy that avoids this issue. I’ll try some of Google’s suggested general purpose workarounds and will post an update if successful. 2. It crashes after configuring a Google Voice account. An apparently good motif.conf is created but Asterisk segfaults after reading it. I had the same problem with a FreePBX 13 / Asterisk 13 build. If you just install the FreePBX 15 module without an account (creating dummy motif.conf and xmpp.conf files) and reboot, Asterisk will read those and start running the respective modules. I have no idea what may be wrong and would appreciate it if a GV expert could take a look. Create a snapshot just before attempting to add a GV account. |
||
Pingback: No swap message in GUI - Freepbx No Swap warning