Good, you are root.
Internet connection is working, continuing!
OK you're running Debian Squeeze. This script is known to work
with apache/nginx and mysql|sqlite|postgres8 options
Please consider providing feedback on repositories for nginx
and php-fpm.
FYI, we will need to change ownership of all FreeSWITCH
Directories to www-data.www-data
We will also need to change the init script to
start FreeSWITCH as the www-data user.
This is a workaround to FreeSWITCH jira FS-3016
The better way would be to have FreeSWITCH and FusionPBX
share group permissions; unfortunately, FreeSWITCH writes
log files, voicemail, etc with group permissions off.
This behavior is hard coded into FreeSWITCH.
For now, you need to be aware that if an
exploit is found for apache2 or nginx
The attacker would have access to the entire
FreeSWITCH directory. This isn't quite as bad as it seems though.
since simply having access to configuration can do damage
Watch your logfiles.
Stopping FreeSWITCH...
Cannot open pid file /usr/local/freeswitch/run/freeswitch.pid.
The user `www-data' is already a member of `audio'.
The user `www-data' is already a member of `dialout'.
setting FreeSWITCH owned by www-dat.www-data
Setting group ID sticky for FreeSWITCH
Setting Group Write for FreeSWITCH files
Setting Group Write for FreeSWITCH directories
setting FusionPBX owned by www-data.www-data just in case
Changing /etc/init.d/freeswitch to start with user www-data
New Option...
Would you prefer Apache or Ngnix [nginx and php-fpm from ppa repos] (a/N)? a
Hit http://security.debian.org squeeze/updates Release.gpg
Hit http://ftp.debian.org squeeze Release.gpg
Hit http://packages.dotdeb.org squeeze Release.gpg
Hit http://security.debian.org squeeze/updates Release
Hit http://ftp.debian.org squeeze Release
Ign http://security.debian.org squeeze/updates/main Packages/DiffIndex
Hit http://packages.dotdeb.org squeeze Release
Ign http://security.debian.org squeeze/updates/contrib Packages/DiffIndex
Hit http://security.debian.org squeeze/updates/main Packages
Ign http://ftp.debian.org squeeze/main Packages/DiffIndex
Ign http://packages.dotdeb.org squeeze/all Packages/DiffIndex
Hit http://security.debian.org squeeze/updates/contrib Packages
Ign http://ftp.debian.org squeeze/contrib Packages/DiffIndex
Hit http://packages.dotdeb.org squeeze/all Packages
Hit http://ftp.debian.org squeeze/main Packages
Hit http://ftp.debian.org squeeze/contrib Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-software-properties is already the newest version.
subversion is already the newest version.
The following packages were automatically installed and are no longer required:
apache2-mpm-worker libaprutil1-ldap apache2-utils apache2.2-common libaprutil1-dbd-sqlite3
apache2.2-bin
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up apache2-mpm-worker (2.2.16-6+squeeze6) ...
Starting web server: apache2Warning: DocumentRoot [/usr/share/nginx/www/fusionpbx] does not exist
apache2: Could not reliably determine the server's fully qualified domain name, using 0.4.94.112 for ServerName
httpd (pid 19923) already running
.
Reading package lists... Done
Building dependency tree
Reading state information... Done
sqlite is already the newest version.
The following packages were automatically installed and are no longer required:
apache2-mpm-worker libaprutil1-ldap apache2-utils apache2.2-common libaprutil1-dbd-sqlite3
apache2.2-bin
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
php5-common
Suggested packages:
php-pear
The following packages will be upgraded:
php5-cli php5-common php5-sqlite
3 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Need to get 3490kB of archives.
After this operation, 153kB of additional disk space will be used.
Get:1 http://packages.dotdeb.org squeeze/all php5-sqlite 5.3.10-1~dotdeb.1 [56.3kB]
Get:2 http://packages.dotdeb.org squeeze/all php5-cli 5.3.10-1~dotdeb.1 [3178kB]
Get:3 http://packages.dotdeb.org squeeze/all php5-common 5.3.10-1~dotdeb.1 [256kB]
Fetched 3490kB in 4s (755kB/s)
Reading changelogs... Done
(Reading database ... 30992 files and directories currently installed.)
Preparing to replace php5-sqlite 5.3.3-7+squeeze8 (using .../php5-sqlite_5.3.10-1~dotdeb.1_amd64.deb) ...
Unpacking replacement php5-sqlite ...
dpkg: unrecoverable fatal error, aborting:
fork failed: Cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
/etc/apache2/sites-enabled/fusionpbx already there. Skipping...
/bin/grep: /etc/php5/apache2/php.ini: No such file or directory
/bin/sed: can't read /etc/php5/apache2/php.ini: No such file or directory
ERROR: failed edit of /etc/php5/apache2/php.ini upload_max_filesize = 10M.
root@286320:~#