transition from php5* packages to php-7.0* (#66)

* transition from php5* packages to php-7.0*

* added 3rd party repositories with php7.0-* packages for trusty and jessie

* added php7.0-xml package for Class SimpleXMLElement

* added apt-get update after adding php7.0* repository source
This commit is contained in:
erxspin
2017-02-23 23:49:57 +06:00
committed by FusionPBX
parent 5247301bc9
commit e76a036f70
4 changed files with 31 additions and 10 deletions

View File

@@ -9,8 +9,29 @@ cd "$(dirname "$0")"
#send a message
verbose "Installing the web server"
arch=$(uname -m)
real_os=$(lsb_release -is)
codename=$(lsb_release -cs)
if [ $real_os = 'Ubuntu' ]; then
#16.10.x - */yakkety/
#16.04.x - */xenial/
#14.04.x - */trusty/
if [ $codename = 'trusty' ]; then
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
fi
else
#9.x - */stretch/
#8.x - */jessie/
if [ $codename = 'jessie' ]; then
echo "deb http://packages.dotdeb.org $codename all" > /etc/apt/sources.list.d/dotdeb.list
echo "deb-src http://packages.dotdeb.org $codename all" >> /etc/apt/sources.list.d/dotdeb.list
wget -O - https://www.dotdeb.org/dotdeb.gpg | apt-key add -
fi
fi
apt-get update
#install dependencies
apt-get install -y --force-yes nginx php5 php5-cli php5-fpm php5-pgsql php5-sqlite php5-odbc php5-curl php5-imap php5-mcrypt
apt-get install -y nginx php7.0 php7.0-cli php7.0-fpm php7.0-pgsql php7.0-sqlite3 php7.0-odbc php7.0-curl php7.0-imap php7.0-mcrypt php7.0-xml
#enable fusionpbx nginx config
cp nginx/fusionpbx /etc/nginx/sites-available/fusionpbx