Initial System Setup
Disable selinuxIn /etc/sysconfig/selinux , change the following lines:
reboot, and verify the selinux status by running 'sestatus'. It should say:
Update Your System
Install Additional Required Dependencies
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:
Stop the service (this skips rebooting again):
Auto Start MySQLYou 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 ApacheYou 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 Dependencies for Google Voice (If needed/wanted)
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-SoundsNote 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.
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
service httpd restart
amportal a ma download sysadmin
amportal a ma
Change this on apache
Look for this line and coment None and add ALL
Restart apache with the following command
service httpd restart
amportal a ma refreshsignatures
amportal a reload
iptables -I INPUT 2 -m state --state NEW -m tcp -p tcp --dport 4445 -j ACCEPT
iptables -I INPUT 2 -m state --state NEW -m udp -p udp --dport 5060 -j ACCEPT
iptables -I INPUT 2 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
iptables -I INPUT 2 -m state --state NEW -m udp -p udp --dport 10000:20000 -j ACCEPT
service iptables save