| Installing FreePBX 2.8 with Asterisk 1.8 on CentOS 5.5 |
|
|
|
| News - Ubuntu / Linux / Unix | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Written by Mark Veenstra | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Friday, 07 January 2011 18:03 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Asterisk is free software that transforms a computer into a communication server. Asterisk lets you build applications like PBX, VoIP gateway, IVR and ACD. FreePBX is an easy to use GUI (graphical user interface) that controls and manages Asterisk, the world's most popular open source telephony engine software. FreePBX has been developed and hardened by thousands of volunteers over tens of thousands man hours. FreePBX has been downloaded over 5,000,000 times and estimates over 500,000 active phone systems. If you don't know about FreePBX, you are probably paying too much for your phone system. FreePBX and Asterisk are quite popular these days. I also tried to install FreePBX and Asterisk on a CentOS 5.5, when doing this I read a lot of internet articles and came up with this installation guide. Below I have outlined the steps required to get FreePBX 2.8 working with Asterisk 1.8 on CentOS 5.5.
Preparations Before you begin, you will need to have 5 different passwords. Some you already know, some you have to generate and write them down. I will refer to these passwords as follows: PASSWORD1 – Your SSH root password (You have this already) Pre-install requirement
Once you are sure that the needed package groups are installed, you will want to install the prerequisites as follows.
Also be sure that wget is installed on your system.
In the next step we will generate the named.conf file.
We need to turn off SELinux. If you don't turn SELinux off your setup of FreePBX with Asterisk propably won't work.
In this next step we are going to configure iptables voor Asterisk and FreePBX. If you wish you can also disable iptables on your server. If you wish to configure iptables, please make sure the file /etc/sysconfig/iptables looks like this:
LAME is required for Asterisk’s audio related functions. You will want to download LAME to a source directory, compile and then install it.
You can optionally remove the source once you have installed LAME.
We also need to add DAHDI support if you want to set up conferences in FreePBX / Asterisk. Most of you do want this feature I believe, if not, skip this step.
Before continuing, ensure that all packages are up to date and then reboot.
Installing Asterisk 1.8 Get Asterisk 1.8 and extract it to its own source folder. Afterwards we start the installation immediately.
The last command will launch the source configuration manager. Make sure you select the following: - Head into Channel Drivers and make sure chan_dahdi is selected (only needed if you want to use conferences and installed dahdi in the steps before) Save your selections and exit. Now compile the source and install.
You can optionally remove the source directory once you have installed Asterisk.
Installing FreePBX 2.8 Get FreePBX 2.8 and extract it to its own source folder.
Start MySQL, create the asterisk databases and run the initial SQL setup scripts.
Start the MySQL command line.
Define the user and password for each of the databases.
Change the MySQL user to root.
Create the Asterisk user and set folder permissions.
Update the Apache configuration file.
In this file change the following settings to the values as listed here:
Start the Apache webserver.
Start Asterisk
Configure FreePBX.
The next series of prompts will give you default values within square brackets which you can accept by hitting enter. If you wish to change a value, simply type it and hit enter after.
This is the database user you specified earlier.
This is the password for the database user.
Use the default value.
The username for the FreePBX administrator.
The password for the FreePBX administrator. It is important to change this. (Use PASSWORD3 you prepared earlier.)
Use the default value.
The public IP that will be used.
The Flash Operator Panel password. It is important to change this. (Use PASSWORD4 you prepared earlier)
Use the default value.
Use the default value.
Use the default value.
Change the Asterisk Recording Interface password and turn on user authentication for the web interface by editing the amportal.conf file.
Change the ARI_ADMIN_PASSWORD entry to update the ARI password.
Change the AUTHTYPE entry to database to enable authentication.
Optionally, you can turn off the FOP completely by changing the following settings.
Save and exit. Add FreePBX to the boot process.
Reset the permissions of the /var/www/html
Finally, reboot the server one last time.
Post installation actions After you succesfully installed FreePBX and Asterisk, you need to do some extra steps. First open a browser and go to your Asterisk server by enetering the URL http://<your ip or hostname>. When you are there go to "FreePBX Administration". You will receive an pop-up, fill username "admin" and password "admin". Once logged in, in the left menu click on "Administrators". Then click in the right menu on "admin". Now change the admin password to PASSWORD3 (you prepared it earlier). Then click on the left menu on the option "Module Admin". Now click on "Check for updates online" and install the updates you want and install the new modules if you like (I installed and updated all modules). If you installed the module "Music on Hold", which you probably did, please change the upload_max_filesize in /etc/php.ini. Standard this setting is set to 2M. Set it to 20M and restart Apache (/etc/init.d/httpd restart).
Other usefull information
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Last Updated on Monday, 10 January 2011 23:22 |




Click here to hear this article