Installing FreePBX 13 on CentOS 6

 

 

READ FIRST

Manual installations of FreePBX is considered an EXPERTS ONLY exercise. This method of installation is enough to get CORE functionality of FreePBX. Non-commercial modules may not function as expected or detailed in the Wiki's. Certain modules and features may require additional software to be installed and configured on the server.

**** COMMERCIAL MODULES NOT SUPPORTED See How to Purchase FreePBX Commercial Modules****

Install CentOS 6

 

Initial System Setup

You MUST run all of these commands as the root user!

You MUST disable selinux.  selinux can cause strange behavior during the install

Disable selinux

In /etc/sysconfig/selinux , change the following lines:

sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux

reboot, and verify the selinux status by running 'sestatus'. It should say:

SELinux status: disabled

SELinux did not disable!

Generally /etc/sysconfig/selinux is linked to /etc/selinux/config but in some cases they are separate files. If the above steps do not disable selinux you will need to perform one extra step:
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config

Update Your System

yum -y update yum -y groupinstall core base "Development Tools"

Install Additional Required Dependencies

IPTables 

You must disable the default iptables.  You can re-enable it later, once you have made the appropriate changes.  Information on iptables can be found with a quick Google search.  If iptables is left running, it will (at very least) block you from accessing the web interface.
 

See the current status:   

Disable iptables:

Stop the service (this skips rebooting again):

Auto Start MySQL

You must have mysql running for freepbx to operate normally.  You need to set it to start at boot time. with the following command:

Then start mysqld if you don't plan on rebooting during the installation phase:

Auto Start Apache

You will want Apache running, so you can access the FreePBX admin interface,  You need to set it to start at boot time. with the following command:

Then start apache if you don't plan on rebooting during the installation phase:

Install PearDB

Reboot server

Install Dependencies for Google Voice (If needed/wanted)

Install iksemel

Add the Asterisk User

Install and Configure Asterisk

Download Asterisk source files.

Compile and install DAHDI and LibPRI

Compile and install pjproject

Compile and Install jansson

Compile and install SpanDSP

 

SpanDSP

Compile and install Asterisk

You will be prompted at the point to pick which modules to build. Most of them will be enabled, but if you want to have MP3 support, you need to manually turn on 'format_mp3' on the first page.

ubuntu-14.04-enable-mp3.png

 

After selecting 'Save & Exit' you can then continue

Install Asterisk-Extra-Sounds

Note that this installs the (8khz) 'wav' soundfiles and G722 (High Definition 'Wideband') audio.

Set ownership permissions

A few small modifications to Apache.

Install and Configure FreePBX

Download and extract FreePBX.

That's it!

You can now start using FreePBX.  Open up your web browser and connect to the IP address or hostname of your new FreePBX server.  You will see the Admin setup page, which is where you set your  'admin' account password, and configure an email address to receive update notifications. 

We hope you enjoy using FreePBX 13!

Install and Setup Commercial Modules

Enable the FreePBX Commercial yum repos

yum clean all to clean out yum cache so it will find out new RPMs

yum install needed RPMs for Commercial Modules

Ensure you have the right mirrors to download and obtain commercial modules

Restart Apache and Install Sysadmin

For Further information see: Installation on CentOS 6.X and RHEL 6.X based systems

Return to Documentation Home I Return to Sangoma Support