Installing FreePBX 2.11 on Centos 6.3

 

 

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:

--- begin lines --- SELINUX=disabled SELINUXTYPE=targeted --- end lines ---

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

You may receive a warning:

At this time it is safe to ignore that message

Reboot server

Install Dependencies for Google Voice

Install iksemel

Install and Configure Asteriskfreepbx-2.11.0.43.tgz

Download Asterisk source files.

Compile and install DAHDI.

If you have no TDM cards you can skip this step

If you encounter this message: You do not appear to have the sources for the 2.6.32-358.23.2.el6.x86_64 kernel installed.
Run this command:

If that doesn't fix the problem, you may have removed the directory /usr/src/kernels . It's easy to fix. Just run these two commands: 

You can now repeat the installation steps below.

Compile and install LIBPRI.

If you have no TDM cards you can skip this step

Compile and install Asterisk

During the make menuselect, please choose all options you wish to compile into Asterisk.  
For example, if you want to enable srtp, be sure to enable it at:

Install Asterisk-Extra-Sounds

Install and Configure FreePBX

Download and extract FreePBX.

Now create the Asterisk user and set ownership permissions.

A few small modifications to Apache.

Configure Asterisk database in MYSQL. 

Set permissions on MYSQL database.

Restart Asterisk and install FreePBX.

** If “. /install_amp” fails to run correctly, in terminal type:

Finally, one last mod and start FreePBX.

Start FreePBX

Navigate: 

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

After you enable and update the modules in FreePBX You might see the following error.
Symlink from modules failed 
 

To correct this error do the following:

Delete the list of failed files

Then on the FreePBX webUI go to the ‘Module Admin’ and uninstall and reinstall the ‘Camp On’ module. This should resolve the Symlink issue.

 

Return to Documentation Home I Return to Sangoma Support