Install Freepbx On Centos

Posted on by

FreePBX has become quite popular over the last few years. Unfortunately, the documentation has not quite caught up to the popularity. At the time of this writing, most of the documentation available was for older versions of CentOS, FreePBX and/or Asterix. Below I have outlined the steps required to get FreePBX 2.8 working with Asterisk 1.8 on CentOS 5.5.

  1. Install Freepbx On Centos
  2. Install Freepbx 14 On Centos 7


If you are reading this as after having followed the steps in my previous article Installing CentOS 5.5 with Linux Integration Services 2.1 on Hyper-V R2 or if you have not selected the following package groups during your installation of CentOS, make sure you do so now by using the following commands.

Preparations

Installing FreePBX 12 on CentOS 7 or Red Hat Enterprise Linux 7 is simple. While the official FreePBX documentation covers just CentOS 6.x, this guide will provide step-by-step instructions for the more recent CentOS 7.x and RHEL 7.x distributions. Installed CentOS 5.6, with Asterisk 1.8 seemed to go ok. Then installed FreePBX lastest version, no errors during install. But nowwhen I log into freepbx it says Asterisk is not running when checking top it is running. This allows you to have multiple Asterisk repository definitions installed on a single machine, and to choose which major version of Asterisk you'd like to install when running yum install. You can select Asterisk 11 instead by switching 'asterisk-12' out for 'Asterisk-11'. This bid is to install and configure freepbx on the following items 1. Trunk setup 2. Outgoing route setup 3. Up to 5 Example extensions 4. Asterisk 13: Build: centOS 5.x-7.x. This guide will show you how to install the newly released Asterisk 13 from digium. This build is a vanilla asterisk installation,so there are no web interface. (Last Updated On: August 19, 2018)Hello guys, we’re going to do Asterisk 13.0.6 installation in this guide. This will be a complete easy to follow tutorial. For recent release of Asterisk, check out How to Install Asterisk 15 PBX on CentOS 7.

You will need five different passwords.

PASSWORD1 – Your root password.
PASSWORD2 – Used for the asterisk database user.
PASSWORD3 – Used for the FreePBX administrator.
PASSWORD4 – Used for Flash Operator Panel.
PASSWORD5 – Used for the Asterisk Recording Interface.

Requirements

Once you are sure that the needed package groups are installed, you will want to install the prerequisites as follows.

Make sure you also have wget installed.

Next you will setup named.

You will want to adjust the security settings as per your requirements but for the simplicity of this article, we are going to turn off Security-Enhanced Linux and open the firewall fully.

LAME is required for Asterisk’s audio related functions. You will want to download LAME to a source directory, compile and then install it.

You can optionally remove the source once you have installed LAME.

Before continuing, insure that all packages are up to date and then reboot.

Installing Asterisk 1.8

Get Asterisk 1.8 and extract it to its own source folder.

The last command will launch the source configuration manager. The only portions you will want to install are app_mysql, app_saycountpl, cdr_mysql, format_mp3, res_config_mysql and EXTRAS-SOUNDS-EN-GSM (which can be found in the Extra Sound Packages sub-menu). Save your selections and exit. Now compile the source and install.

You can optionally remove the source directory once you have installed Asterisk.

Installing FreePBX 2.8

Get FreePBX 2.8 and extract it to its own source folder.

Start MySQL, create the asterisk databases and run the initial SQL setup scripts.

Start the MySQL command line.

Define the user and password for each of the databases.

Change the MySQL user to root.

Create the Asterisk user and set folder permissions.

Update the Apache configuration file.

Change User apache and Group apache to User asterisk and Group asterisk.

Change AllowOverride None to AllowOverride All.

Update ServerName to use your server’s FQDN.

Start Apache.

Start Asterisk.

Configure FreePBX.

The next series of prompts will give you default values within square brackets which you can accept by hitting enter. If you wish to change a value, simply type it and hit enter after.

This is the database user you specified earlier.

This is the password for the database user.

Use the default value.

The username for the FreePBX administrator.

The password for the FreePBX administrator. It is important to change this. (Use PASSWORD3 you prepared earlier.)

Use the default value.

The public IP that will be used.

The Flash Operator Panel password. It is important to change this. (Use PASSWORD4 you prepared earlier.)

Use the default value.

Use the default value.

Use the default value.

Change the Asterisk Recording Interface password and turn on user authentication for the web interface by editing the amportal.conf file.

Change the ARI_ADMIN_PASSWORD entry to update the ARI password.

Change the AUTHTYPE entry to database to enable authentication.

Optionally, you can turn off the FOP completely by changing the following settings.

Save and exit.

Free Download Latest Hindi Movie Kaabil (2017) (pDVDRip) from Pagalworld.com, Pagal World. Download New Bollywood Film Kaabil (2017) Mp4 HD Movie. Apr 22, 2017  Kaabil Full Movie Download Free HD. This is the narrative of a man who lived, giggled and adored simply like everybody in this world. Until one day, a shocking disaster struck. Download Kaabil Torrent Movie 2017 720p 1GB Full Free. Kaabil 2017 Movie is related to Bollywood Action, Crime, Thriller film. Starring Of Kaabil Movie Is Hrithik Roshan, Yami Gautam, Ronit Roy And More. Kaabil Torrent Full Download Movie 720p Result 2017. Kaabil movie online. Kaabil full movie free download in HD quality. Kaabil is a latest Bollywood movie release on 2017. You can free download Kaabil full movie in Fully High quality on 720p.

Add FreePBX to the boot process.

You can ensure that the administrator user has the proper password in the database by navigating to the Administrators tab, choosing the admin user and clicking on the Update password link. Once your password has been updated, logout by clicking the link at the top right of the page.

Finally, reboot the server one last time.

First forgive me just got in to Linux, I'm trying to install Asterisk on a VM running CentOS 6.
This is what I need to do:
The first step is to add the Asterisk yum repositories to your CentOS or RedHat system. This is done by creating an entry in the yum configuration directory (/etc/yum.repos.d by default).
Use the text editor of your choice to create a new file named 'centos-asterisk.repo' in the '/etc/yum.repos.d' folder. Add the following text to the file:
[asterisk-tested]
name=CentOS-$releasever - Asterisk - Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
Save the new file and create another named 'centos-digium.repo' and insert the following text:
[digium-tested]
name=CentOS-$releasever - Digium - Tested
baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
At this point your system has been updated to use the Asterisk and Digium repositories in addition to the base CentOS repositories. You are now ready to install Asterisk. To start the installation, execute the following at the Linux command line:
[root@localhost~]# yum install asterisk16 asterisk16-configs asterisk16-voicemail dahdi-linux
dahdi-tools libpri
The system will respond with something like:
[root@localhost yum.repos.d]# yum install asterisk16
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.5ninesolutions.com
* updates: centos.cogentcloud.com
* addons: mirrors.kernel.org
* extras: mirrors.usc.edu
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.0.15-1_centos5 set to be updated
--> Processing Dependency: asterisk16-voicemail = 1.6.0.15-1_centos5 for package: asterisk16
--> Processing Dependency: asterisk16-core = 1.6.0.15-1_centos5 for package: asterisk16
--> Processing Dependency: asterisk16-dahdi = 1.6.0.15-1_centos5 for package: asterisk16
--> Processing Dependency: asterisk16-doc = 1.6.0.15 for package: asterisk16
--> Processing Dependency: asterisk-sounds-core-en-gsm for package: asterisk16
--> Running transaction check
---> Package asterisk16-voicemail.i386 0:1.6.0.15-1_centos5 set to be updated
---> Package asterisk16-doc.i386 0:1.6.0.15-1_centos5 set to be updated
---> Package asterisk-sounds-core-en-gsm.noarch 0:1.4.15-1_centos5 set to be updated
---> Package asterisk16-dahdi.i386 0:1.6.0.15-1_centos5 set to be updated
--> Processing Dependency: libss7 for package: asterisk16-dahdi
--> Processing Dependency: dahdi-linux for package: asterisk16-dahdi
--> Processing Dependency: libpri for package: asterisk16-dahdi
--> Processing Dependency: dahdi-linux-kmod for package: asterisk16-dahdi
---> Package asterisk16-core.i386 0:1.6.0.15-1_centos5 set to be updated
--> Running transaction check
---> Package dahdi-linux.i386 0:2.2.0.2-1_centos5 set to be updated
--> Processing Dependency: dahdi-firmware for package: dahdi-linux
--> Processing Dependency: yum-kmod for package: dahdi-linux
---> Package libss7.i386 0:1.0.2-1_centos5 set to be updated
---> Package libpri.i386 0:1.4.10.1-1_centos5 set to be updated
---> Package kmod-dahdi-linux.i686 0:2.2.0.2-1_centos5.2.6.18_164.el5 set to be installed
--> Processing Dependency: kernel-i686 = 2.6.18-164.el5 for package: kmod-dahdi-linux
--> Running transaction check
---> Package yum-kmod.noarch 0:1.1.16-13.el5.centos set to be updated
---> Package kernel.i686 0:2.6.18-164.el5 set to be installed
---> Package dahdi-firmware.noarch 0:2.0.1-1_centos5 set to be updated
--> Processing Dependency: dahdi-firmware-oct6114-064 = 1.05.01 for package: dahdi-firmware
--> Processing Dependency: dahdi-firmware-oct6114-128 = 1.05.01 for package: dahdi-firmware
--> Processing Dependency: dahdi-firmware-tc400m = MR6.12 for package: dahdi-firmware
--> Processing Dependency: dahdi-linux-fwload-vpmadt032-kmod for package: dahdi-firmware
--> Running transaction check
---> Package dahdi-firmware-oct6114-128.noarch 0:1.05.01-1_centos5 set to be updated
---> Package dahdi-firmware-oct6114-064.noarch 0:1.05.01-1_centos5 set to be updated
---> Package dahdi-firmware-tc400m.noarch 0:MR6.12-1_centos5 set to be updated
---> Package kmod-dahdi-linux-fwload-vpmadt032.i686 0:2.2.0.2-1_centos5.2.6.18_164.el5 set to be installed
--> Finished Dependency Resolution
Dependencies Resolved
Package Arch Version Size
Installing:
asterisk16 i386 1.6.0.15-1_centos5 4.0 k
Installing for dependencies:
asterisk-sounds-core-en-gsm noarch 1.4.15-1_centos5 1.7 M
asterisk16-core i386 1.6.0.15-1_centos5 11 M
asterisk16-dahdi i386 1.6.0.15-1_centos5 837 k
asterisk16-doc i386 1.6.0.15-1_centos5 10 k
asterisk16-voicemail i386 1.6.0.15-1_centos5 264 k
dahdi-firmware noarch 2.0.1-1_centos5 1.9 k
dahdi-firmware-oct6114-064 noarch 1.05.01-1_centos5 165 k
dahdi-firmware-oct6114-128 noarch 1.05.01-1_centos5 166 k
dahdi-firmware-tc400m noarch MR6.12-1_centos5 1.7 M
dahdi-linux i386 2.2.0.2-1_centos5 3.3 k
kernel i686 2.6.18-164.el5 16 M
kmod-dahdi-linux i686 2.2.0.2-1_centos5.2.6.18_164.el5 3.4 M
kmod-dahdi-linux-fwload-vpmadt032 i686 2.2.0.2-1_centos5.2.6.18_164.el5 124 k
libpri i386 1.4.10.1-1_centos5 103 k
libss7 i386 1.0.2-1_centos5 63 k
yum-kmod noarch 1.1.16-13.el5.centos 17 k
Transaction Summary
Install 17 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 35 M
Is this ok [y/N]:
Type 'y' for 'Yes,' press the Enter key and relax for a few minutes
Downloading Packages:
(1/17): dahdi-firmware-2.0.1-1_centos5.noarch.rpm 1.9 kB 00:00
(2/17): dahdi-linux-2.2.0.2-1_centos5.i386.rpm 3.3 kB 00:00
(3/17): asterisk16-1.6.0.15-1_centos5.i386.rpm 4.0 kB 00:00
(4/17): asterisk16-doc-1.6.0.15-1_centos5.i386.rpm 10 kB 00:00
(5/17): yum-kmod-1.1.16-13.el5.centos.noarch.rpm 17 kB 00:00
(6/17): libss7-1.0.2-1_centos5.i386.rpm 63 kB 00:00
(7/17): libpri-1.4.10.1-1_centos5.i386.rpm 103 kB 00:00
(8/17): kmod-dahdi-linux-fwload-vpmadt032-2.2.0.2-1_centos5.2.6.18_164.el5.i686.rpm 124 kB 00:00
(9/17): dahdi-firmware-oct6114-064-1.05.01-1_centos5.noarch.rpm 165 kB 00:00
(10/17): dahdi-firmware-oct6114-128-1.05.01-1_centos5.noarch.rpm 166 kB 00:00
(11/17): asterisk16-voicemail-1.6.0.15-1_centos5.i386.rpm 264 kB 00:01
(12/17): asterisk16-dahdi-1.6.0.15-1_centos5.i386.rpm 837 kB 00:04
(13/17): dahdi-firmware-tc400m-MR6.12-1_centos5.noarch.rpm 1.7 MB 00:08
(14/17): asterisk-sounds-core-en-gsm-1.4.15-1_centos5.noarch.rpm 1.7 MB 00:08
(15/17): kmod-dahdi-linux-2.2.0.2-1_centos5.2.6.18_164.el5.i686.rpm 3.4 MB 00:17
(16/17): asterisk16-core-1.6.0.15-1_centos5.i386.rpm 11 MB 00:57
(17/17): kernel-2.6.18-164.el5.i686.rpm 16 MB 00:23
-------------------------------------------------------------------------------------
Total 283 kB/s 35 MB
02:06
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 'CentOS-5 Key (CentOS 5 Official Signing Key) ' from
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]:
Type the 'y' key for 'Yes' again, press the enter key, and wait just a few more minutes
Running rpm_check_debug

Install Freepbx On Centos

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel [ 1/17]
Installing : asterisk16-core [ 2/17]
Installing : kmod-dahdi-linux [ 3/17]
Installing : asterisk16-doc [ 4/17]
Installing : kmod-dahdi-linux-fwload-vpmadt032 [ 5/17]

Install Freepbx 14 On Centos 7

Installing : asterisk-sounds-core-en-gsm [ 6/17]
Installing : dahdi-firmware-oct6114-064 [ 7/17]
Installing : yum-kmod [ 8/17]
Installing : dahdi-firmware-tc400m [ 9/17]
Installing : dahdi-firmware-oct6114-128 [10/17]
Installing : asterisk16-voicemail [11/17]
Installing : libss7 [12/17]
Installing : libpri [13/17]
Installing : dahdi-firmware [14/17]
Installing : dahdi-linux [15/17]
Installing : asterisk16-dahdi [16/17]
Installing : asterisk16 [17/17]
Installed: asterisk16.i386 0:1.6.0.15-1_centos5
Dependency Installed: asterisk16-core.i386 0:1.6.0.15-1_centos5 ..
Complete!
[root@localhost yum.repos.d]#
Congratulations, you now have a CentOS or RedHat system with a complete version of Asterisk installed. Test out your new install by starting Asterisk:
[root@localhost yum.repos.d]# asterisk -vvvgci
The only issue is that when I try to add the two new files to /etc/yum.repos.d it tells me I don't have access read only, I have added my user to the root group and restart but still no luck anyone what I'm doing wrong?