FreePBX | Register | Issues | Wiki | Portal | Support

How to install Freepbx Distro on Amazon AWS EC2 machine

Tags: #<Tag:0x00007f4bbf7a91f0>

(Adolfo) #21

Hi Shawn,
Something to be careful of when installing FreePBX or any linux applications in any Linux Azure distros… Azure handles root access and some database handling a little different.

What I did, is I took a prebuilt script this guy made for DigitalOcean VMs ( (Note this is not officially supported by anyone, not sangoma, etc. No claims made. Just a guy on the internet that made a script.)

Download (feel free to modify) and run:


Be careful of db setup:

MariaDB config
Press enter (none current password)
N Do not set root password
Y Remove anonymous
Y disallow login remote
Y remove test db
Y remove privilege tables

Disable selinux

nano /etc/sysconfig/selinux
Change “SELINUX=enforcing” to “SELINUX=disabled” and save the configuration file

Set Freepbx to start on boot.

nano /etc/systemd/system/freepbx.service

ExecStart=/usr/sbin/fwconsole start
ExecStop=/usr/sbin/fwconsole stop

systemctl enable freepbx


cd /usr/src/freepbx
./start_asterisk start
./install -n

Then if you want to enable commercial modules do this stuff:

Also, don’t forget to configure the networking/firewall ports in Azure.


(Casan12) #22

Thanks for the tip. Kind of odd that AWS doesn’t have a free FreePBX distro…

(FAK) #23

Hi casan,

but there is a vendor who now gives freepbx with supported commercial modules with a little software fee.

you can find that in AWS Marketplace.


(Casan12) #24

That fee is higher than the server we want to rent. This is for a very small group.

(FAK) #25

ok than try

They provide distro hosting.

(Casan12) #26

We need in Brazil for latency.

(FAK) #27

check with them.

(Casan12) #28

No datacenter in Brazil unfortunately…

(FAK) #29

Is there any specific reason for datacenter in Brazil?

(FAK) #30

otherwise you can consult some vps provider who allow iso installation in brazil.

(Casan12) #31

We need it for latency. FreePBX afterall.

(FAK) #32

What is your call volume?
How many phone agents you have?
What codecs you will be running?

(Casan12) #33

Boss says he wants in Brazil… Volume will start slow and then build up.

(Casan12) #34

Allright, for the record.

This was kind of easy but time consuming depending on your connection.

Make sure SSH is working and the network interface is set to DHCP.
At the end of the Amazon guide, i had to set the full access for EC2 and S3 for the vmimport role. Because it was showing me not enough permissions.

(Mvogel4949) #35

Can I do commercial modules using the vultr? What have you found in terms of stability of the vultr servers?

(Dave Burgess) #36

If you are using the FreePBX Distro, you should be able to. Wait until you get it installed in the final location before you register it to make sure your Site ID works.