Compability for ubuntu 16.10

Finnaly solution for Ubuntu 16.10.

In this solution you have php5 and php7. After installation you can chose php version in nginx config file. Default php5
This commit is contained in:
Piotr Jasiek 2017-02-14 17:59:12 +01:00 committed by GitHub
commit dfe86eab69

View file

@ -30,6 +30,22 @@ if [ "$release" = '16.04' ]; then
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
bsdmainutils cron vesta vesta-nginx vesta-php expect" bsdmainutils cron vesta vesta-nginx vesta-php expect"
elif [ "$release" = '16.10' ]; then
apt-get update
echo "deb http://pl.archive.ubuntu.com/ubuntu/ vivid main restricted universe multiverse" >> /etc/apt/sources.list
software="nginx apache2 apache2-utils apache2.2-common
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
libapache2-mod-fcgid libapache2-mod-php5 php5 php5-common php5-cgi
php5-mysql php5-curl php5-fpm php5-pgsql awstats webalizer vsftpd
proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
roundcube-mysql roundcube-plugins mysql-server mysql-common
mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
bsdmainutils cron vesta vesta-nginx vesta-php expect"
#Greeting from polish hackers from S.M.S. - https://s-m-s.pl
else else
software="nginx apache2 apache2-utils apache2.2-common software="nginx apache2 apache2-utils apache2.2-common
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf