Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

PHP upgrade (7.0 > 7.3)

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
nov1ce
Posts: 4
Joined: 2017-09-11 07:07

PHP upgrade (7.0 > 7.3)

#1 Post by nov1ce »

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.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: PHP upgrade (7.0 > 7.3)

#2 Post by L_V »

Can you try to install php7.3

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: PHP upgrade (7.0 > 7.3)

#3 Post by Head_on_a_Stick »

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.
deadbang

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: PHP upgrade (7.0 > 7.3)

#4 Post by dilberts_left_nut »

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...

nov1ce
Posts: 4
Joined: 2017-09-11 07:07

Re: PHP upgrade (7.0 > 7.3)

#5 Post by nov1ce »

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)

#6 Post by nov1ce »

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

Post Reply