FOP InstallingFreePBX2.11onCentos6.3 050917 1617 11228 PDF
FOP InstallingFreePBX2.11onCentos6.3 050917 1617 11228 PDF
FOP InstallingFreePBX2.11onCentos6.3 050917 1617 11228 PDF
You MUST disable selinux. selinux can cause strange behavior during the install
Disable selinux
reboot, and verify the selinux status by running 'sestatus'. It should say:
yum install gcc gcc-c++ lynx bison mysql-devel mysql-server php php-mysql
php-pear php-mbstring tftp-server httpd make ncurses-devel libtermcap-devel
sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel
libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel git
subversion kernel-devel php-process crontabs cronie cronie-anacron
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.
Disable iptables:
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:
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
reboot
Install iksemel
cd /usr/src
wget https://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
tar xf iksemel-*.tar.gz
cd iksemel-*
./configure
make
make install
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:
cd /usr/src
tar xvfz dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-*
make all
make install
make config
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:
cd /usr/src
tar xvfz asterisk-11-current.tar.gz
cd asterisk-*
./configure
contrib/scripts/get_mp3_source.sh
make menuselect
make
make install
make config
make progdocs
Install Asterisk-Extra-Sounds
cd /var/lib/asterisk/sounds
wget
http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-e
n-gsm-current.tar.gz
tar xfz asterisk-extra-sounds-en-gsm-current.tar.gz
rm -f asterisk-extra-sounds-en-gsm-current.tar.gz
cd /usr/src
wget http://mirror.freepbx.org/freepbx-2.11.0.43.tgz
tar vxfz freepbx-2.11.0.43.tgz
Now create the Asterisk user and set ownership permissions.
cd /usr/src/freepbx
export ASTERISK_DB_PW=amp109
mysqladmin -u root create asterisk
mysqladmin -u root create asteriskcdrdb
mysql -u root asterisk < SQL/newinstall.sql
mysql -u root asteriskcdrdb < SQL/cdr_mysql_table.sql
cd /usr/src/freepbx
./start_asterisk start
./install_amp
amportal a ma installall
amportal a reload
** If “. /install_amp” fails to run correctly, in terminal type:
ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3
amportal start
Start FreePBX
Navigate:
After you enable and update the modules in FreePBX You might see the following error.
Symlink from modules failed
cd /etc/asterisk
rm ccss.conf confbridge.conf features.conf sip.conf iax.conf
logger.conf extensions.conf sip_notify.conf
Then on the FreePBX webUI go to the ‘Module Admin’ and uninstall and reinstall the ‘Camp On’ module. This should resolve the
Symlink issue.