Difference between revisions of "Ubuntu 10.10"
From FusionPBX
m |
(→NginX Setup) |
||
Line 62: | Line 62: | ||
-a 127.0.0.1 -p 9000 -u freeswitch -g freeswitch \ | -a 127.0.0.1 -p 9000 -u freeswitch -g freeswitch \ | ||
-f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid | -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid | ||
− | |||
− | |||
− | |||
Line 75: | Line 72: | ||
− | Replace: | + | Replace (activate php and remove the images alias): |
location / { | location / { | ||
Line 81: | Line 78: | ||
index index.html index.htm; | 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; | ||
+ | } | ||
+ | |||
+ | |||
witch | witch | ||
Line 90: | Line 109: | ||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | # 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 /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 | activate the fusionpbx config |
Revision as of 18:57, 12 September 2010
Contents
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)
Fusionpbx
Dependencies Subversion
apt-get install subversion
Apache
apt-get install apache2
PHP >= 5.2.3
apt-get install php5
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
FusionPBX install
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
apt-get install nginx php5-cgi spawn-cgi
Add spawn-fcgi process to /etc/rc.local
/usr/bin/spawn-fcgi \ -a 127.0.0.1 -p 9000 -u freeswitch -g freeswitch \ -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid
Let Nginx run as FreeSWITCH User to get no trouble with writepermissions.
vim /etc/nginx/nginx.conf 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; }
witch
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$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; 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
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