servisys / ispconfig_setup

ISPConfig autoinstaller and setup
GNU General Public License v3.0
507 stars 257 forks source link

Trouble in migration due to php version #302

Open zenny opened 5 years ago

zenny commented 5 years ago

Hi,

Some of the sites that is being hosted in debian 8 needed php7 and some php5. The running instance is installed by this script, fyi.

What I have done so far (1-3) in debian8:

  1. I manually installed and followed Tim's excellent ttps://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/, but failed to work.

  2. Instead I activated sury's repos for php which has been already activated for debian9 in this script (yet only installs php7.0 by default)

sudo apt install ca-certificates apt-transport-https 
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
sudo echo "deb https://packages.sury.org/php/ jessie main" | tee /etc/apt/sources.list.d/php.list

Didn't seem to work either because all the php-fpm pointers are hardcoded to /etc/php5 directory in this script.

  1. In debian 9, replacing all values to 7.1 in the distros/debian9/install_webserver.sh give pcre version dependency error.

  2. No use to try by copying the install_webserver.sh from debian9 to debian 8 as it shall conflict with pcre version dependency error anyway as stated in 3 above.

  3. Won't it be nice to make changes to debian8 script with sury's in debian8 as stated above in 2 and make necessary changes in the nginx config directives?

Cheers, /z

PS: the jessie-updates and jessie-backports are deprecated, certbot and other components cannot be upgraded or installed unless stretch repo is appended (https://serverfault.com/questions/802548/failing-to-install-certbot-on-debian-jessie) which definitely is not a desirable way if one prefers to avoid package conflicts. Thus the above ended with a dependency hell, fyi.