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.
Switch to the Root User
Update Your System
Install Required Dependencies
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 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
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.
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.
Now FreePBX is installed, it will be available via Apache. Open up your web browser and visit: