Es geht um die Web-Anwendung piwigo, die auf einem Raspberry 3b läuft. Ich habe nun von Debian 9 über debian 10 auf debian 11 aktualisiert. Nun habe mehrere php-Versionen verfügbar.
Nun ist ja die Version 7.4 voreingestellt. Nun gehe ich davon aus, dass diese auch benutzt wird. Leider bekomme ich unter piwigo die Meldung, dass die 7.4 Version nicht verwendet wird, sondern die Version php5:oot@jw04:~# ls /usr/bin/php -lah
lrwxrwxrwx 1 root root 21 16. Jul 2017 /usr/bin/php -> /etc/alternatives/php
root@jw04:~# update-alternatives --config php
Es gibt 2 Auswahlmöglichkeiten für die Alternative php (welche /usr/bin/php bereitstellen).
Auswahl Pfad Priorität Status
------------------------------------------------------------
* 0 /usr/bin/php7.4 74 automatischer Modus
1 /usr/bin/php5 50 manueller Modus
2 /usr/bin/php7.4 74 manueller Modus
Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten,
oder geben Sie die Auswahlnummer ein:
root@jw04:~#
Folgende Pakete sind installiert:PHP: 5.6.40-0+deb8u12 (Info anzeigen) [2022-05-01 20:44:24]
MySQL: 5.5.5-10.5.15-MariaDB-0+deb11u1 [2022-05-01 20:44:24]
Hier noch die Ausgabe, die zeigt, dass php5 geladen wird.root@jw04:~# dpkg -l | grep php
rc libapache2-mod-php7.0 7.0.33-0+deb9u12 armhf server-side, HTML-embedded scripting language (Apache 2 module)
rc libapache2-mod-php7.3 7.3.31-1~deb10u1 armhf server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php7.4 7.4.28-1+deb11u1 armhf server-side, HTML-embedded scripting language (Apache 2 module)
ii php 2:7.4+76 all server-side, HTML-embedded scripting language (default)
ii php-apc 4.0.7-1 all APC User Cache for PHP 5 (transitional package)
ii php-common 2:76 all Common files for PHP packages
ii php-gd 2:7.4+76 all GD module for PHP [default]
ii php-mbstring 2:7.4+76 all MBSTRING module for PHP [default]
ii php-mysql 2:7.4+76 all MySQL module for PHP [default]
ii php-xml 2:7.4+76 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php5-apcu 4.0.7-1 armhf APC User Cache for PHP 5
ii php5-cgi 5.6.40+dfsg-0+deb8u12 armhf server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.6.40+dfsg-0+deb8u12 armhf command-line interpreter for the php5 scripting language
ii php5-common 5.6.40+dfsg-0+deb8u12 armhf Common files for packages built from the php5 source
ii php5-fpm 5.6.40+dfsg-0+deb8u12 armhf server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-gd 5.6.40+dfsg-0+deb8u12 armhf GD module for php5
rc php5-imagick 3.2.0~rc1-1 armhf Provides a wrapper to the ImageMagick library
ii php5-json 1.3.6-1 armhf JSON module for php5
ii php5-mysql 5.6.40+dfsg-0+deb8u12 armhf MySQL module for php5
ii php5-readline 5.6.40+dfsg-0+deb8u12 armhf Readline module for php5
rc php7.0-cli 7.0.33-0+deb9u12 armhf command-line interpreter for the PHP scripting language
rc php7.0-common 7.0.33-0+deb9u12 armhf documentation, examples and common module for PHP
rc php7.0-fpm 7.0.33-0+deb9u12 armhf server-side, HTML-embedded scripting language (FPM-CGI binary)
rc php7.0-gd 7.0.33-0+deb9u12 armhf GD module for PHP
rc php7.0-json 7.0.33-0+deb9u12 armhf JSON module for PHP
rc php7.0-mbstring 7.0.33-0+deb9u12 armhf MBSTRING module for PHP
rc php7.0-mysql 7.0.33-0+deb9u12 armhf MySQL module for PHP
rc php7.0-opcache 7.0.33-0+deb9u12 armhf Zend OpCache module for PHP
rc php7.0-readline 7.0.33-0+deb9u12 armhf readline module for PHP
rc php7.0-xml 7.0.33-0+deb9u12 armhf DOM, SimpleXML, WDDX, XML, and XSL module for PHP
rc php7.3-cli 7.3.31-1~deb10u1 armhf command-line interpreter for the PHP scripting language
rc php7.3-common 7.3.31-1~deb10u1 armhf documentation, examples and common module for PHP
rc php7.3-gd 7.3.31-1~deb10u1 armhf GD module for PHP
rc php7.3-json 7.3.31-1~deb10u1 armhf JSON module for PHP
rc php7.3-mbstring 7.3.31-1~deb10u1 armhf MBSTRING module for PHP
rc php7.3-mysql 7.3.31-1~deb10u1 armhf MySQL module for PHP
rc php7.3-opcache 7.3.31-1~deb10u1 armhf Zend OpCache module for PHP
rc php7.3-readline 7.3.31-1~deb10u1 armhf readline module for PHP
rc php7.3-xml 7.3.31-1~deb10u1 armhf DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii php7.4 7.4.28-1+deb11u1 all server-side, HTML-embedded scripting language (metapackage)
ii php7.4-cli 7.4.28-1+deb11u1 armhf command-line interpreter for the PHP scripting language
ii php7.4-common 7.4.28-1+deb11u1 armhf documentation, examples and common module for PHP
ii php7.4-gd 7.4.28-1+deb11u1 armhf GD module for PHP
ii php7.4-json 7.4.28-1+deb11u1 armhf JSON module for PHP
ii php7.4-mbstring 7.4.28-1+deb11u1 armhf MBSTRING module for PHP
ii php7.4-mysql 7.4.28-1+deb11u1 armhf MySQL module for PHP
ii php7.4-opcache 7.4.28-1+deb11u1 armhf Zend OpCache module for PHP
ii php7.4-readline 7.4.28-1+deb11u1 armhf readline module for PHP
ii php7.4-xml 7.4.28-1+deb11u1 armhf DOM, SimpleXML, XML, and XSL module for PHP
Kann mir jemand mitteilen, wie ich nun meine piwigo-Anwendung mit php7.4 laufen lasse?
Vielen Dank vorab.