Skip to content

Commit

Permalink
Added support for php 5.6
Browse files Browse the repository at this point in the history
Added support for php 5.6 toghether with php 7
  • Loading branch information
servisys committed Jul 4, 2017
1 parent 91ef7b2 commit f4f4336
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 9 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
v.3.0.1
- Added support for both PHP7 and PHP 5.6 in Debian 9

v.3.0.0
- added support for Debian 9 - PHP 7 - Apache and Roundcube webmail - MariaDB as SQL
- Added support for Debian 9 - PHP 7 - Apache and Roundcube webmail - MariaDB as SQL

v.2.2.6
- Fix for Centos 7
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ The link is here: http://eepurl.com/cAzq95
We'll use only to inform you on new version of the script :)

# Version #
v.3.0.0
v.3.0.1

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

Tested on:

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

Expand Down
5 changes: 5 additions & 0 deletions distros/debian9/askquestions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ AskQuestions() {
do
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)
done

while [ "x$CFG_PHP56" == "x" ]
do
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)
done

while [ "x$CFG_HHVM" == "x" ]
do
Expand Down
18 changes: 18 additions & 0 deletions distros/debian9/install_webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ InstallWebServer() {
echo -e "[${green}DONE${NC}]\n"
fi

if [ $CFG_PHP56 == "yes" ]; then
echo "Installing PHP 5.6"
apt-get -yqq install apt-transport-https
curl https://packages.sury.org/php/apt.gpg | apt-key add - > /dev/null 2>&1
echo 'deb https://packages.sury.org/php/ stretch main' > /etc/apt/sources.list.d/deb.sury.org.list
apt-get update > /dev/null 2>&1
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
echo -e "Package: *\nPin: origin packages.sury.org\nPin-Priority: 100" > /etc/apt/preferences.d/deb-sury-org
fi

echo -n "Activating Apache2 Modules... "
a2enmod suexec > /dev/null 2>&1
a2enmod rewrite > /dev/null 2>&1
Expand Down Expand Up @@ -106,4 +116,12 @@ InstallWebServer() {

fi
echo -e "[${green}DONE${NC}]\n"
if [ $CFG_PHP56 == "yes" ]; then
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}"
echo -e "${red}Path for PHP FastCGI binary: /usr/bin/php-cgi5.6 ${NC}"
echo -e "${red}Path for php.ini directory: /etc/php/5.6/cgi ${NC}"
echo -e "${red}Path for PHP-FPM init script: /etc/init.d/php5.6-fpm ${NC}"
echo -e "${red}Path for php.ini directory: /etc/php/5.6/fpm ${NC}"
echo -e "${red}Path for PHP-FPM pool directory: /etc/php/5.6/fpm/pool.d ${NC}"
fi
}
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ source $PWD/distros/$DISTRO/install_basephp.sh #to remove in feature release
#---------------------------------------------------------------------
clear

echo "Welcome to ISPConfig Setup Script v.3.0.0"
echo "Welcome to ISPConfig Setup Script v.3.0.1"
echo "This software is developed by Temporini Matteo"
echo "with the support of the community."
echo "You can visit my website at the followings URLs"
Expand Down

0 comments on commit f4f4336

Please sign in to comment.