FreePBX Pre-install

Build the cdr_mysql module for Asterisk (Yep, more compiling!)
cd /usr/src/asterisk-addons-1.4.x
cp Makefile Makefile.orig
sed -i 's/SOURCE/SOURCE -DMYSQL_LOGUNIQUEID/' Makefile

./configure; make menuselect

At menu press "x"

make clean; make; make install

Install PEAR Database
pear install DB