Initial System SetupWhen installing the machine, at package selection make sure you pick - at least - OpenSSH Server, and 'LAMP Packages'. This installs the base packages required.
Configure your root password.
Switch to the Root User
Update Your System
Install Required Dependencies
Install and Configure Asterisk
Download Asterisk source files.
Compile and install DAHDI.
Compile and install 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 and Configure FreePBX
Download and extract FreePBX.
Now create the Asterisk user and set ownership permissions.
A few small modifications to Apache.
Prepare MySQLYou 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.
Navigate:Now FreePBX is installed, it will be available via Apache. Open up your web browser and visit:
Securing the System
amportal a ma refreshsignatures
amportal a reload
nano /etc/apache2/apache2.conf<Directory /var/www/>
Options Indexes FollowSymLinks
Require all granted
service apache2 restart