Installing FreePBX 12 on CentOS 6.5
- 1 Initial System Setup
- 2 Install Dependencies for Google Voice (If needed/wanted)
- 2.1 Install iksemel
- 3 Add the Asterisk User
- 4 Install and Configure Asterisk
- 5 Compile and install pjproject
- 6 Compile and Install jansson
- 7 Compile and install Asterisk
- 8 Install Asterisk-Extra-Sounds
- 9 Install and Configure FreePBX
- 10 Start FreePBX
- 10.1 Navigate:
- 11 Install and Setup Commercial Modules
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.
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