FreePBX | Register | Issues | Wiki | Portal | Support

How to install Freepbx Distro on Amazon AWS EC2 machine

configuration
Tags: #<Tag:0x00007fcd224537f0>

(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 (https://github.com/cameronbackus/doPBX) (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:

wget https://raw.githubusercontent.com/cameronbackus/doPBX/master/install_freepbx.sh
sh install_freepbx.sh

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
​[Unit]
Description=Freepbx
After=mariadb.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/fwconsole start
ExecStop=/usr/sbin/fwconsole stop

[Install]
WantedBy=multi-user.target
systemctl enable freepbx

Reboot!
then…

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

Then if you want to enable commercial modules do this stuff:
https://wiki.freepbx.org/pages/viewpage.action?pageId=2752580

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

cheers!


(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.

Thanks,
Faisal


(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 vultr.com.

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.

Notes:
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.


(Yitzy) #38

I know this topic has been idle for a while, but I just set up FreePBX on an EC2 and it’s working great - one thing I discovered was that the VMDK gave the system about 5 GB of disk space, and it didn’t pick up on more when I created the EC2 instance with 30 GB of EBS. I had to install cloud-utils and then growpart to extend the volume.
Now have plenty of space on my EC2 drive.


(FAK) #39

Oh that’s also nice.

but I resolved this with adding a secondary disk and then make it primary and primary to secondary then I resize the disk and it worked.


(system) #40

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.