PHP upgrade (7.0 > 7.3)

If none of the more specific forums is the right place to ask

PHP upgrade (7.0 > 7.3)

Postby nov1ce » 2019-08-01 12:14

Hello,

I've just recently upgraded one of our Stretch servers to Buster. All went well except that for some reason PHP hasn't been upgraded, so I ended up with php7.0 running on Buster:

Code: Select all
$ dpkg -l | grep -i php

ii  libapache2-mod-php7.0                7.0.33-0+deb9u3                   amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  php-common                           2:69                              all          Common files for PHP packages
ii  php-pear                             1:1.10.6+submodules+notgz-1.1     all          PEAR Base System
ii  php7.0                               7.0.33-0+deb9u3                   all          server-side, HTML-embedded scripting language (metapackage)
ii  php7.0-cli                           7.0.33-0+deb9u3                   amd64        command-line interpreter for the PHP scripting language
ii  php7.0-common                        7.0.33-0+deb9u3                   amd64        documentation, examples and common module for PHP
ii  php7.0-gd                            7.0.33-0+deb9u3                   amd64        GD module for PHP
ii  php7.0-gmp                           7.0.33-0+deb9u3                   amd64        GMP module for PHP
ii  php7.0-json                          7.0.33-0+deb9u3                   amd64        JSON module for PHP
ii  php7.0-ldap                          7.0.33-0+deb9u3                   amd64        LDAP module for PHP
ii  php7.0-mbstring                      7.0.33-0+deb9u3                   amd64        MBSTRING module for PHP
ii  php7.0-mcrypt                        7.0.33-0+deb9u3                   amd64        libmcrypt module for PHP
ii  php7.0-mysql                         7.0.33-0+deb9u3                   amd64        MySQL module for PHP
ii  php7.0-opcache                       7.0.33-0+deb9u3                   amd64        Zend OpCache module for PHP
ii  php7.0-readline                      7.0.33-0+deb9u3                   amd64        readline module for PHP
ii  php7.0-snmp                          7.0.33-0+deb9u3                   amd64        SNMP module for PHP
ii  php7.0-xml                           7.0.33-0+deb9u3                   amd64        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii  php7.0-zip                           7.0.33-0+deb9u3                   amd64        Zip module for PHP


How could I now force upgrade to PHP 7.3? I'm using the version shipped with Debian, hence no sury.org and such.

And the second question, what are the extra steps needed during the upgrade from Stretch to Buster to ensure that PHP is upgraded as well?

Thank you.
nov1ce
 
Posts: 4
Joined: 2017-09-11 07:07

Re: PHP upgrade (7.0 > 7.3)

Postby L_V » 2019-08-01 12:18

Can you try to install php7.3
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: PHP upgrade (7.0 > 7.3)

Postby Head_on_a_Stick » 2019-08-01 17:29

nov1ce wrote:I've just recently upgraded one of our Stretch servers to Buster.

How? The more detail you provide the better the assistance will be.
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: PHP upgrade (7.0 > 7.3)

Postby dilberts_left_nut » 2019-08-01 21:31

nov1ce wrote:And the second question, what are the extra steps needed during the upgrade from Stretch to Buster to ensure that PHP is upgraded as well?
probably have the php metapackage installed.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 5021
Joined: 2009-10-05 07:54
Location: enzed

Re: PHP upgrade (7.0 > 7.3)

Postby nov1ce » 2019-08-04 12:13

L_V wrote:Can you try to install php7.3


Thanks. Installing php7.3 following 'a2dismod php7.0' and 'a2enmod php7.3' worked.
nov1ce
 
Posts: 4
Joined: 2017-09-11 07:07

Re: PHP upgrade (7.0 > 7.3)

Postby nov1ce » 2019-08-04 12:17

Head_on_a_Stick wrote:
nov1ce wrote:I've just recently upgraded one of our Stretch servers to Buster.

How? The more detail you provide the better the assistance will be.


I followed the standard upgrade procedure:

- replacing stretch with buster in /etc/apt/sources.list
- apt-get update
- apt list --upgradable (php7.0 wasn't listed, which I guess is expected since it doesn't exist in buster)
- apt-get upgrade
- apt-get dist-upgrade
- reboot
nov1ce
 
Posts: 4
Joined: 2017-09-11 07:07


Return to General Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable