Installing FreePBX 12 on CentOS 6.5

 

 

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

Update Your System

yum -y update yum groupinstall core yum groupinstall base

Install Additional Required Dependencies

IPTables

Keeping IPTables turned off indefinitely is strongly discouraged. You will incur the wrath of high fees and hackers

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

Install and Configure FreePBX

Download and extract FreePBX.

Set ownership permissions.

A few small modifications to Apache.

Configure Asterisk database in MYSQL. 

Set permissions on MYSQL database.

Restart Asterisk and install FreePBX.

Finally, one last mod and start FreePBX.

Start FreePBX

Navigate: 

http://yourlocalipaddress/html or if you prefer http://localhost/admin

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

Restart Apache and Install Sysadmin

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

Return to Documentation Home I Return to Sangoma Support