Debian Wheezy with PostgreSQL

From FusionPBX
Jump to: navigation, search

Overview

This is an easy install even for newbies. Stick to the steps and everything should go just fine.

  • First you will download Debian wheezy and then burn an installation CD/DVD.
  • Next you will download the fusionpbx install script and execute it.
  • During this install you will select PostgreSQL for you database.
  • After this you will run an update.
  • Finally you will go to the FusionPBX web interface and complete the install by selecting the PostgreSQL database and entering a few UserIDs and Paswords.

Well, lets get started!

Install Debian Wheezy

Debian Stable

https://www.debian.org/CD/http-ftp/#stable


In step 1 download the ISO and burn it to a CD or DVD to install the operating system. When you do this MINIMAL install, all of the defaults selections should be fine.

Install Script

Download the install script to the /usr/src directory and make it executable.

cd /usr/src 
wget http://fusionpbx.googlecode.com/svn/branches/dev/scripts/install/ubuntu/install_fusionpbx.sh
chmod 755 install_fusionpbx.sh

Run the install script

./install_fusionpbx.sh install-both user

The install script will install FreeSWITCH , PostgreSQL, FusionPBX, and a few other things. This is not an unattended install. You will need to hit enter to proceed past integrity checks at several milestones until you get to the FreeSWITCH portion at which point you will be advised of the probable compile and installation time. At this point you can run for coffee, a sandwich, or the outhouse before returning to finish the installation

Be sure and enter "P" for PostgreSQL (without the quote marks) when it prompts you to choose a database.

PHP PDO Drivers

PostgreSQL and SQLite PHP PDO drivers.

Open another SSH window and install PDO driver.

apt-get install php5-pgsql php5-sqlite


Browser Install

From a web browser go to http://<Your_ip_address>

This will take you to the FusionPBX install page to complete the installation. This page will only appear the first time you go to the user interface. To complete the installation do the following.

Step 1

  • From the drop-down select "PostgreSQL".
  • Then enter the Username and password you wish to use to access the FusionPBX Web Interface.
  • 'Select next' to go to page 2

Step 2

Enter the following:

  • Database Name = fusionpbx (all lower case)
  • Database Root User = fusionpbx (all lower case)
  • Database Password = The password you entered during the scripted install.
  • Leave the last 2 fields empty.

It will take a minute or so to finish setting up.

Optional

This is an optional step and is needed only if the web server timed out during the install. It can be run simply to ensure everything is installed correctly.

cd /var/www/fusionpbx
php /var/www/fusionpbx/core/upgrade/upgrade.php

That should do it. You should now be able to log in and start your FusionPBX configuration. Good Luck!