servisys / ispconfig_setup

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

debian9 and php71 #303

Open zenny opened 5 years ago

zenny commented 5 years ago

While running this script in a newly created debian 9 after replacing php7.0 wiht php7.1 (as most of the php apps like wordpress require at least 7.1. Why not 7.2 because there is no mcrypt module beyond php7.1 in sury repos, fyi):

grep -rl '7.0' distros/debian9/install_webserver.sh | xargs sed -i 's/7.0/7.1/g'

output:

Error: The following command failed: apt-get -y install php7.1 php7.1-common php7.1-gd php7.1-mysql php7.1-imap php7.1-cli php7.1-cgi php-pear php7.1-mcrypt libruby php7.1-curl php7.1-intl php7.1-pspell php7.1-recode php7.1-sqlite3 php7.1-tidy php7.1-xmlrpc php7.1-xsl php-memcache php-imagick php-gettext php7.1-zip php7.1-mbstring php7.1-soap php7.1-opcache

-----------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.1
E: Couldn't find any package by glob 'php7.1'
E: Couldn't find any package by regex 'php7.1'
E: Unable to locate package php7.1-common
E: Couldn't find any package by glob 'php7.1-common'
E: Couldn't find any package by regex 'php7.1-common'
E: Unable to locate package php7.1-gd
E: Couldn't find any package by glob 'php7.1-gd'
E: Couldn't find any package by regex 'php7.1-gd'
E: Unable to locate package php7.1-mysql
E: Couldn't find any package by glob 'php7.1-mysql'
E: Couldn't find any package by regex 'php7.1-mysql'
E: Unable to locate package php7.1-imap
E: Couldn't find any package by glob 'php7.1-imap'
E: Couldn't find any package by regex 'php7.1-imap'
E: Unable to locate package php7.1-cli
E: Couldn't find any package by glob 'php7.1-cli'
E: Couldn't find any package by regex 'php7.1-cli'
E: Unable to locate package php7.1-cgi
E: Couldn't find any package by glob 'php7.1-cgi'
E: Couldn't find any package by regex 'php7.1-cgi'
E: Unable to locate package php7.1-mcrypt
E: Couldn't find any package by glob 'php7.1-mcrypt'
E: Couldn't find any package by regex 'php7.1-mcrypt'
E: Unable to locate package php7.1-curl
E: Couldn't find any package by glob 'php7.1-curl'
E: Couldn't find any package by regex 'php7.1-curl'
E: Unable to locate package php7.1-intl
E: Couldn't find any package by glob 'php7.1-intl'
E: Couldn't find any package by regex 'php7.1-intl'
E: Unable to locate package php7.1-pspell
E: Couldn't find any package by glob 'php7.1-pspell'
E: Couldn't find any package by regex 'php7.1-pspell'
E: Unable to locate package php7.1-recode
E: Couldn't find any package by glob 'php7.1-recode'
E: Couldn't find any package by regex 'php7.1-recode'
E: Unable to locate package php7.1-sqlite3
E: Couldn't find any package by glob 'php7.1-sqlite3'
E: Couldn't find any package by regex 'php7.1-sqlite3'
E: Unable to locate package php7.1-tidy
E: Couldn't find any package by glob 'php7.1-tidy'
E: Couldn't find any package by regex 'php7.1-tidy'
E: Unable to locate package php7.1-xmlrpc
E: Couldn't find any package by glob 'php7.1-xmlrpc'
E: Couldn't find any package by regex 'php7.1-xmlrpc'
E: Unable to locate package php7.1-xsl
E: Couldn't find any package by glob 'php7.1-xsl'
E: Couldn't find any package by regex 'php7.1-xsl'
E: Unable to locate package php7.1-zip
E: Couldn't find any package by glob 'php7.1-zip'
E: Couldn't find any package by regex 'php7.1-zip'
E: Unable to locate package php7.1-mbstring
E: Couldn't find any package by glob 'php7.1-mbstring'
E: Couldn't find any package by regex 'php7.1-mbstring'
E: Unable to locate package php7.1-soap
E: Couldn't find any package by glob 'php7.1-soap'
E: Couldn't find any package by regex 'php7.1-soap'
E: Unable to locate package php7.1-opcache
E: Couldn't find any package by glob 'php7.1-opcache'
E: Couldn't find any package by regex 'php7.1-opcache'
-----------------------------------------

So prior to running this script, installed sury repo manually.

apt install ca-certificates apt-transport-https 
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo 'deb https://packages.sury.org/php/ stretch main' > /etc/apt/sources.list.d/deb.sury.org.list
echo -e "Package: *\nPin: origin packages.sury.org\nPin-Priority: 100" > /etc/apt/preferences.d/deb-sury-org
apt update

Running this script manually led to dependency hell:

Installing Web server (nginx) and modules... 
Error: The following command failed: apt-get -y install php7.1 php7.1-common php7.1-gd php7.1-mysql php7.1-imap php7.1-cli php7.1-cgi php-pear php7.1-mcrypt libruby php7.1-curl php7.1-intl php7.1-pspell php7.1-recode php7.1-sqlite3 php7.1-tidy php7.1-xmlrpc php7.1-xsl php-memcache php-imagick php-gettext php7.1-zip php7.1-mbstring php7.1-soap php7.1-opcache

-----------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php-imagick : Depends: libmagickcore-6.q16-2 (>= 8:6.8.8.2) but it is not installable
               Depends: libmagickwand-6.q16-2 (>= 8:6.8.8.9) but it is not installable
               Recommends: ghostscript but it is not going to be installed
               Recommends: ttf-dejavu-core but it is not going to be installed
 php7.1-gd : Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
             Depends: libwebp5 but it is not installable
E: Unable to correct problems, you have held broken packages.
-----------------------------------------

???

LeBaux commented 5 years ago

wordpress require at least 7.1

It does not. It is recommended to run 7.3, but the required version is 5.6.20+. To my knowledge, PHP 5 support might be dropped 12/2019. That is the earliest date, so it might fare well into 2020.