Installing FreePBX 12 on Ubuntu Server 14.10
- 1 Initial System Setup
- 2 Install and Configure Asterisk
- 3 Install and Configure FreePBX
- 3.1 Download and extract FreePBX.
- 3.2 Now create the Asterisk user and set ownership permissions.
- 3.3 A few small modifications to Apache.
- 3.4 Prepare MySQL
- 3.5 Configure Asterisk database in MYSQL.
- 3.6 Set permissions on MYSQL database.
- 3.7 Restart Asterisk and install FreePBX.
- 3.8 Finally, one last mod and start FreePBX.
- 3.9 Start FreePBX
- 3.9.1 Navigate:
Initial System Setup
When installing the machine, at package selection make sure you pick - at least - OpenSSH Server, and LAMP Server. You may install others, if wanted.
Configure your root password.
sudo passwd root |
Switch to the Root User
sudo -i |
Update Your System
apt-get update && sudo apt-get upgrade -y |
Install Required Dependencies
Reboot server
This is to ensure you're running the kernel version that you're going to be building your kernel modules against. You may skip this step if you're sure your running kernel is the latest.
Install PearDB
Install and Configure Asterisk
Download Asterisk source files.
Compile and install DAHDI and LibPRI
If you don't have any physical hardware you don't need to run these commands, however, it is still suggested to compile the modules, to allow you to add hardware later.
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.
Now create the Asterisk user and set ownership permissions.
A few small modifications to Apache.
Prepare MySQL
You now need to generate a secure password for FreePBX to use to talk to MySQL.
That will generate a quasi-random 16 character long password, which should be secure enough for most things. If you had set the MySQL 'root' password to be something when you were installing the machine, you will need to add a -pyourpassword flag to the following lines
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:
Now FreePBX is installed, it will be available via Apache. Open up your web browser and visit:
http://Address.Of.FreePBX.Server/admin