Difference between revisions of "Ubuntu 10.10"

From FusionPBX
Jump to: navigation, search
Line 9: Line 9:
 
==Download Ubuntu 10.04 LTS Server (lucid)==
 
==Download Ubuntu 10.04 LTS Server (lucid)==
  
http://www.ubuntu.com/server
+
http://www.ubuntu.com/server/get-ubuntu/download and install.
  
Step 1) grab an Ubuntu server iso here
+
==Update you package src list==
  
http://www.ubuntu.com/server/get-ubuntu/download
+
Ubuntu Server 10.04 tls add the fallowing lines to /etc/apt/sources.list file.
  
  and install.
+
  deb http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu lucid main
 +
deb-src http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu lucid maint
  
step 2)
+
==update you system==
  
Ubuntu Server 10.04 tls add the fallowing lines to /etc/apt/sources.list file.
+
apt-get update && apt-get upgrade
  
deb http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu lucid main
+
==list freeswitch pkgs==
deb-src http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu lucid maint
 
  
Step 3) apt-get update && apt-get upgrade && apt-cache search freeswitch
+
apt-cache search freeswitch
  
Step 4) for a full install do the following
+
==Install Freeswitch pkgs==
  
 
apt-get install  
 
apt-get install  
  
 
        
 
        
Step 6) apt-get install  php5-sqlite
 
 
Step 7) edit /etc/group and add www-data to the deamon and add freeswitch to the www-data groups
 
  
This gives the www-data read/write privilages to the freeswitch files.
 
  
 
==Fusionpbx==
 
==Fusionpbx==
Line 66: Line 62:
  
  
==FusionPBX install==
+
==NginX Deps==
 
 
Download FusionPBX source and add it to Apache
 
 
 
cd /var/www
 
sudo svn co http://fusionpbx.googlecode.com/svn/trunk/fusionpbx /var/www/fusionpbx
 
 
 
 
 
==NginX Setup==
 
  
 
Dependencies
 
Dependencies
  
  apt-get install nginx php5-cgi spawn-cgi
+
  apt-get install nginx php5-fpm
  
 +
==Nginx Setup==
 +
edit nginx.conf
  
Add spawn-fcgi process to /etc/rc.local
+
Replace :<br>
 +
        location / {
 +
            root  /var/www/nginx;
 +
            index  index.html index.htm;
 +
        }
  
/usr/bin/spawn-fcgi \
+
Witch:<br>
-a 127.0.0.1 -p 9000 -u freeswitch -g freeswitch \
+
        location / {
-f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid
+
            root  /usr/local/www/fusionpbx;
 +
            index  index.php index.html index.htm;
 +
        }
  
 +
Replace :<br>
 +
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
 +
        #
 +
        #location ~ \.php$ {
 +
        #    root          html;
 +
        #    fastcgi_pass  127.0.0.1:9000;
 +
        #    fastcgi_index  index.php;
 +
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
 +
        #    include        fastcgi_params;
 +
        #}
  
Let Nginx run as FreeSWITCH User to get no trouble with writepermissions.
+
with:<br>
  
vim /etc/nginx/nginx.conf
+
         pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
user freeswitch;
+
          
 
 
cp /etc/nginx/sites-avialable/default /etc/nginx/sites-avialable/fusionpbx
 
 
 
 
 
Replace (activate php and remove the images alias):
 
 
 
        location / {
 
                root  /var/www/nginx-default;
 
                index  index.html index.htm;
 
        }
 
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
 
        #
 
        #location ~ \.php$ {
 
        #        fastcgi_pass  127.0.0.1:9000;
 
        #        fastcgi_index  index.php;
 
        #        fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
 
        #        includefastcgi_params;
 
        #}
 
 
 
        location /doc {
 
                  root  /usr/share;
 
                  autoindex on;
 
                  allow 127.0.0.1;
 
                  deny all;
 
          }
 
 
        location /images {
 
                root  /usr/share;
 
                autoindex on;
 
        }
 
 
 
 
 
with:
 
 
 
        location / {
 
                root  /var/www/fusionpbx;
 
                index  index.php index.html index.htm;
 
        }
 
 
 
 
 
         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
 
         #
 
 
         location ~ \.php$ {
 
         location ~ \.php$ {
                fastcgi_pass  127.0.0.1:9000;
+
            root          html;
                fastcgi_index  index.php;
+
            fastcgi_pass  127.0.0.1:9000;
                fastcgi_param  SCRIPT_FILENAME  /var/www/fusionpbx/$fastcgi_script_name;
+
            fastcgi_index  index.php;
                include        fastcgi_params;
+
            fastcgi_param  SCRIPT_FILENAME  /var/www/fusionpbx$fastcgi_script_name;
 +
            include        fastcgi_params;
 
         }
 
         }
        location /doc {
 
                root  /usr/share;
 
                autoindex on;
 
                allow 127.0.0.1;
 
                deny all;
 
        }
 
 
        location /images {
 
                root  /usr/share;
 
                autoindex on;
 
        }
 
  
activate the fusionpbx config
 
root@bell /etc/nginx/sites-enabled # rm default
 
root@bell /etc/nginx/sites-enabled # ln -s ../sites-available/fusionpbx
 
root@bell /etc/nginx/sites-enabled
 
  
 
== PgSQL Setup ==
 
== PgSQL Setup ==
Line 161: Line 111:
 
TO set and configure PgSQL for use with FusionPBX,
 
TO set and configure PgSQL for use with FusionPBX,
 
Follow this line for line.
 
Follow this line for line.
 +
 
  su pgsql
 
  su pgsql
 
 
  createuser -s -e FusionPBX
 
  createuser -s -e FusionPBX
 
  createdb -O FusionPBX FusionPBX
 
  createdb -O FusionPBX FusionPBX
 
  psql -d FusionPBX -U FusionPBX
 
  psql -d FusionPBX -U FusionPBX
 
  ALTER USER FusionPBX with PASSWORD 'pbx2010';  
 
  ALTER USER FusionPBX with PASSWORD 'pbx2010';  
 
+
or any passwd you want
or any passwd you want;
+
exit from su back to root
exit from su back to root
 
  
 
  psql -f /var/www/fusionpbx/includes/install/sql/pgsql.sql FusionPBX
 
  psql -f /var/www/fusionpbx/includes/install/sql/pgsql.sql FusionPBX

Revision as of 20:55, 12 September 2010

Support

For basic support on this install Contact: witchdoc on server: irc.freenode.net channel: #fusionpbx #freeswitch-de

Download Ubuntu 10.04 LTS Server (lucid)

http://www.ubuntu.com/server/get-ubuntu/download and install.

Update you package src list

Ubuntu Server 10.04 tls add the fallowing lines to /etc/apt/sources.list file.

deb http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu lucid main
deb-src http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu lucid maint

update you system

apt-get update && apt-get upgrade 

list freeswitch pkgs

apt-cache search freeswitch

Install Freeswitch pkgs

apt-get install



Fusionpbx

Dependencies Subversion

apt-get install subversion

Apache

apt-get install apache2

PHP >= 5.3.3

apt-get install php5.3

Install the backend of your choice

sqlite

apt-get install sqlite3 php5-sqlite

mysql

apt-get install mysql-server php5-mysql

postgresql

apt-get install php5-pgsql postgresql-8.4


NginX Deps

Dependencies

apt-get install nginx php5-fpm

Nginx Setup

edit nginx.conf

Replace :

       location / {
           root   /var/www/nginx;
           index  index.html index.htm;
       }

Witch:

       location / {
           root   /usr/local/www/fusionpbx;
           index  index.php index.html index.htm;
       }

Replace :

       # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
       #
       #location ~ \.php$ {
       #    root           html;
       #    fastcgi_pass   127.0.0.1:9000;
       #    fastcgi_index  index.php;
       #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
       #    include        fastcgi_params;
       #}

with:

       pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
       
       location ~ \.php$ {
           root           html;
           fastcgi_pass   127.0.0.1:9000;
           fastcgi_index  index.php;
           fastcgi_param  SCRIPT_FILENAME  /var/www/fusionpbx$fastcgi_script_name;
           include        fastcgi_params;
       }


PgSQL Setup

TO set and configure PgSQL for use with FusionPBX, Follow this line for line.

su pgsql
createuser -s -e FusionPBX
createdb -O FusionPBX FusionPBX
psql -d FusionPBX -U FusionPBX
ALTER USER FusionPBX with PASSWORD 'pbx2010'; 
or any passwd you want
exit from su back to root
psql -f /var/www/fusionpbx/includes/install/sql/pgsql.sql FusionPBX