Skip to content

Commit f4f4336

Browse files
committed
Added support for php 5.6
Added support for php 5.6 toghether with php 7
1 parent 91ef7b2 commit f4f4336

5 files changed

Lines changed: 35 additions & 9 deletions

File tree

CHANGELOG.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
v.3.0.1
2+
- Added support for both PHP7 and PHP 5.6 in Debian 9
3+
14
v.3.0.0
2-
- added support for Debian 9 - PHP 7 - Apache and Roundcube webmail - MariaDB as SQL
5+
- Added support for Debian 9 - PHP 7 - Apache and Roundcube webmail - MariaDB as SQL
36

47
v.2.2.6
58
- Fix for Centos 7

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ The link is here: http://eepurl.com/cAzq95
88
We'll use only to inform you on new version of the script :)
99

1010
# Version #
11-
v.3.0.0
11+
v.3.0.1
1212

1313
This is a system to automate the installation of ISPConfig 3 control Panel ( http://www.ispconfig.org/page/home.html ).
1414

1515
Tested on:
1616

17-
- Debian 9 Stretch ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS)
18-
- Debian 8 Jessie ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS)
19-
- Debian 7 Wheezy ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS)
20-
- Ubuntu 14.04 Trusty ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS)
21-
- Ubuntu 15.10 Willy ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS)
22-
- Ubuntu 16.04 Xenial Xerus ( [Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS)
17+
- Debian 9 Stretch ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS, Hetzner, Digital Ocean)
18+
- Debian 8 Jessie ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS, Hetzner, Digital Ocean)
19+
- Debian 7 Wheezy ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS, Hetzner, Digital Ocean)
20+
- Ubuntu 14.04 Trusty ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS, Hetzner, Digital Ocean)
21+
- Ubuntu 15.10 Willy ([Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS, Hetzner, Digital Ocean)
22+
- Ubuntu 16.04 Xenial Xerus ( [Servisys VPS](https://www.servisys.it/), VmWare Esxi, Amazon AWS, Virtualbox, OVH VPS, Hetzner, Digital Ocean)
2323
- Centos 7 ([Servisys VPS](https://www.servisys.it/), Vitualbox)
2424
- ISPConfig 3.*
2525

distros/debian9/askquestions.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ AskQuestions() {
1818
do
1919
CFG_WEBSERVER=$(whiptail --title "WEBSERVER" --backtitle "$WT_BACKTITLE" --nocancel --radiolist "Select webserver type" 10 50 2 "apache" "(default)" ON "apache" "" OFF 3>&1 1>&2 2>&3)
2020
done
21+
22+
while [ "x$CFG_PHP56" == "x" ]
23+
do
24+
CFG_PHP56=$(whiptail --title "Install PHP 5.6" --backtitle "$WT_BACKTITLE" --nocancel --radiolist "By default ISPConfig comes with php 7, do you want to install al php 5.6 version?" 10 50 2 "no" "(default)" ON "yes" "" OFF 3>&1 1>&2 2>&3)
25+
done
2126

2227
while [ "x$CFG_HHVM" == "x" ]
2328
do

distros/debian9/install_webserver.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ InstallWebServer() {
3838
echo -e "[${green}DONE${NC}]\n"
3939
fi
4040

41+
if [ $CFG_PHP56 == "yes" ]; then
42+
echo "Installing PHP 5.6"
43+
apt-get -yqq install apt-transport-https
44+
curl https://packages.sury.org/php/apt.gpg | apt-key add - > /dev/null 2>&1
45+
echo 'deb https://packages.sury.org/php/ stretch main' > /etc/apt/sources.list.d/deb.sury.org.list
46+
apt-get update > /dev/null 2>&1
47+
apt-get -yqq install php5.6 php5.6-common php5.6-gd php5.6-mysql php5.6-imap php5.6-cli php5.6-cgi php5.6-mcrypt php5.6-curl php5.6-intl php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy php5.6-xmlrpc php5.6-xsl php5.6-zip php5.6-mbstring php5.6-fpm
48+
echo -e "Package: *\nPin: origin packages.sury.org\nPin-Priority: 100" > /etc/apt/preferences.d/deb-sury-org
49+
fi
50+
4151
echo -n "Activating Apache2 Modules... "
4252
a2enmod suexec > /dev/null 2>&1
4353
a2enmod rewrite > /dev/null 2>&1
@@ -106,4 +116,12 @@ InstallWebServer() {
106116

107117
fi
108118
echo -e "[${green}DONE${NC}]\n"
119+
if [ $CFG_PHP56 == "yes" ]; then
120+
echo -e "${red}Attention!!! You had installed php7 and php 5.6, to make php 5.6 work you had to configure the following in ISPConfig ${NC}"
121+
echo -e "${red}Path for PHP FastCGI binary: /usr/bin/php-cgi5.6 ${NC}"
122+
echo -e "${red}Path for php.ini directory: /etc/php/5.6/cgi ${NC}"
123+
echo -e "${red}Path for PHP-FPM init script: /etc/init.d/php5.6-fpm ${NC}"
124+
echo -e "${red}Path for php.ini directory: /etc/php/5.6/fpm ${NC}"
125+
echo -e "${red}Path for PHP-FPM pool directory: /etc/php/5.6/fpm/pool.d ${NC}"
126+
fi
109127
}

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ source $PWD/distros/$DISTRO/install_basephp.sh #to remove in feature release
7272
#---------------------------------------------------------------------
7373
clear
7474

75-
echo "Welcome to ISPConfig Setup Script v.3.0.0"
75+
echo "Welcome to ISPConfig Setup Script v.3.0.1"
7676
echo "This software is developed by Temporini Matteo"
7777
echo "with the support of the community."
7878
echo "You can visit my website at the followings URLs"

0 commit comments

Comments
 (0)