Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 12/07/2024, à 12:14

Christellle

Passer apache et php en version > 8

Bonjour,

J'ai essayé de passer apache et les packages php en version 8. J'ai essayé de désinstaller et de réinstaller, je me retrouve avec la version 7.4. Une idée ? merci

christelle@DESKTOP-FOF3H0T:~$ sudo apt install php libapache2-mod-php php-mysql php-curl php-gd php-intl php-json php-mbstring php-xml php-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libjansson4 liblua5.2-0 php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-intl
  php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-zip ssl-cert
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php libapache2-mod-php7.4 libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4 liblua5.2-0 php php-curl php-gd php-intl php-json php-mbstring
  php-mysql php-xml php-zip php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-intl php7.4-json
  php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-zip ssl-cert
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 6737 kB of archives.
After this operation, 29.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2.2 [85.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4ubuntu2.2 [10.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libaprutil1-ldap amd64 1.6.1-4ubuntu2.2 [8752 B]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 libjansson4 amd64 2.12-1build1 [28.9 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 liblua5.2-0 amd64 5.2.4-1.1build3 [106 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-bin amd64 2.4.41-4ubuntu3.20 [1189 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-data all 2.4.41-4ubuntu3.20 [159 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-utils amd64 2.4.41-4ubuntu3.20 [84.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2 amd64 2.4.41-4ubuntu3.20 [95.5 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-common amd64 7.4.3-4ubuntu2.23 [984 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-json amd64 7.4.3-4ubuntu2.23 [19.2 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-opcache amd64 7.4.3-4ubuntu2.23 [198 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-readline amd64 7.4.3-4ubuntu2.23 [12.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-cli amd64 7.4.3-4ubuntu2.23 [1427 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libapache2-mod-php7.4 amd64 7.4.3-4ubuntu2.23 [1368 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 libapache2-mod-php all 2:7.4+75 [2836 B]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4 all 7.4.3-4ubuntu2.23 [9244 B]
Get:19 http://archive.ubuntu.com/ubuntu focal/main amd64 php all 2:7.4+75 [2712 B]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-curl amd64 7.4.3-4ubuntu2.23 [31.2 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/main amd64 php-curl all 2:7.4+75 [2000 B]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-gd amd64 7.4.3-4ubuntu2.23 [28.2 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal/main amd64 php-gd all 2:7.4+75 [2000 B]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-intl amd64 7.4.3-4ubuntu2.23 [126 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-intl all 2:7.4+75 [2012 B]
Get:26 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-json all 2:7.4+75 [2000 B]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-mbstring amd64 7.4.3-4ubuntu2.23 [396 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-mbstring all 2:7.4+75 [2012 B]
Get:29 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-mysql amd64 7.4.3-4ubuntu2.23 [121 kB]
Get:30 http://archive.ubuntu.com/ubuntu focal/main amd64 php-mysql all 2:7.4+75 [2000 B]
Get:31 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-xml amd64 7.4.3-4ubuntu2.23 [98.9 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal/main amd64 php-xml all 2:7.4+75 [2028 B]
Get:33 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-zip amd64 7.4.3-4ubuntu2.23 [21.6 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-zip all 2:7.4+75 [1996 B]
Get:35 http://archive.ubuntu.com/ubuntu focal/main amd64 ssl-cert all 1.0.39 [17.0 kB]
Fetched 6737 kB in 2s (3313 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libapr1:amd64.
(Reading database ... 75989 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.6.5-1ubuntu1_amd64.deb ...
Unpacking libapr1:amd64 (1.6.5-1ubuntu1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.6.1-4ubuntu2.2_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.1-4ubuntu2.2) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-4ubuntu2.2_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-4ubuntu2.2) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.6.1-4ubuntu2.2_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.1-4ubuntu2.2) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../04-libjansson4_2.12-1build1_amd64.deb ...
Unpacking libjansson4:amd64 (2.12-1build1) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../05-liblua5.2-0_5.2.4-1.1build3_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1.1build3) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../06-apache2-bin_2.4.41-4ubuntu3.20_amd64.deb ...
Unpacking apache2-bin (2.4.41-4ubuntu3.20) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../07-apache2-data_2.4.41-4ubuntu3.20_all.deb ...
Unpacking apache2-data (2.4.41-4ubuntu3.20) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../08-apache2-utils_2.4.41-4ubuntu3.20_amd64.deb ...
Unpacking apache2-utils (2.4.41-4ubuntu3.20) ...
Selecting previously unselected package apache2.
Preparing to unpack .../09-apache2_2.4.41-4ubuntu3.20_amd64.deb ...
Unpacking apache2 (2.4.41-4ubuntu3.20) ...
Selecting previously unselected package php7.4-common.
Preparing to unpack .../10-php7.4-common_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-common (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php7.4-json.
Preparing to unpack .../11-php7.4-json_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-json (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php7.4-opcache.
Preparing to unpack .../12-php7.4-opcache_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-opcache (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php7.4-readline.
Preparing to unpack .../13-php7.4-readline_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-readline (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php7.4-cli.
Preparing to unpack .../14-php7.4-cli_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-cli (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package libapache2-mod-php7.4.
Preparing to unpack .../15-libapache2-mod-php7.4_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking libapache2-mod-php7.4 (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package libapache2-mod-php.
Preparing to unpack .../16-libapache2-mod-php_2%3a7.4+75_all.deb ...
Unpacking libapache2-mod-php (2:7.4+75) ...
Selecting previously unselected package php7.4.
Preparing to unpack .../17-php7.4_7.4.3-4ubuntu2.23_all.deb ...
Unpacking php7.4 (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php.
Preparing to unpack .../18-php_2%3a7.4+75_all.deb ...
Unpacking php (2:7.4+75) ...
Selecting previously unselected package php7.4-curl.
Preparing to unpack .../19-php7.4-curl_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-curl (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php-curl.
Preparing to unpack .../20-php-curl_2%3a7.4+75_all.deb ...
Unpacking php-curl (2:7.4+75) ...
Selecting previously unselected package php7.4-gd.
Preparing to unpack .../21-php7.4-gd_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-gd (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php-gd.
Preparing to unpack .../22-php-gd_2%3a7.4+75_all.deb ...
Unpacking php-gd (2:7.4+75) ...
Selecting previously unselected package php7.4-intl.
Preparing to unpack .../23-php7.4-intl_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-intl (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php-intl.
Preparing to unpack .../24-php-intl_2%3a7.4+75_all.deb ...
Unpacking php-intl (2:7.4+75) ...
Selecting previously unselected package php-json.
Preparing to unpack .../25-php-json_2%3a7.4+75_all.deb ...
Unpacking php-json (2:7.4+75) ...
Selecting previously unselected package php7.4-mbstring.
Preparing to unpack .../26-php7.4-mbstring_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-mbstring (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php-mbstring.
Preparing to unpack .../27-php-mbstring_2%3a7.4+75_all.deb ...
Unpacking php-mbstring (2:7.4+75) ...
Selecting previously unselected package php7.4-mysql.
Preparing to unpack .../28-php7.4-mysql_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-mysql (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php-mysql.
Preparing to unpack .../29-php-mysql_2%3a7.4+75_all.deb ...
Unpacking php-mysql (2:7.4+75) ...
Selecting previously unselected package php7.4-xml.
Preparing to unpack .../30-php7.4-xml_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-xml (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php-xml.
Preparing to unpack .../31-php-xml_2%3a7.4+75_all.deb ...
Unpacking php-xml (2:7.4+75) ...
Selecting previously unselected package php7.4-zip.
Preparing to unpack .../32-php7.4-zip_7.4.3-4ubuntu2.23_amd64.deb ...
Unpacking php7.4-zip (7.4.3-4ubuntu2.23) ...
Selecting previously unselected package php-zip.
Preparing to unpack .../33-php-zip_2%3a7.4+75_all.deb ...
Unpacking php-zip (2:7.4+75) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../34-ssl-cert_1.0.39_all.deb ...
Unpacking ssl-cert (1.0.39) ...
Setting up php7.4-common (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/calendar.ini with new version

Creating config file /etc/php/7.4/mods-available/ctype.ini with new version

Creating config file /etc/php/7.4/mods-available/exif.ini with new version

Creating config file /etc/php/7.4/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.4/mods-available/ffi.ini with new version

Creating config file /etc/php/7.4/mods-available/ftp.ini with new version

Creating config file /etc/php/7.4/mods-available/gettext.ini with new version

Creating config file /etc/php/7.4/mods-available/iconv.ini with new version

Creating config file /etc/php/7.4/mods-available/pdo.ini with new version

Creating config file /etc/php/7.4/mods-available/phar.ini with new version

Creating config file /etc/php/7.4/mods-available/posix.ini with new version

Creating config file /etc/php/7.4/mods-available/shmop.ini with new version

Creating config file /etc/php/7.4/mods-available/sockets.ini with new version

Creating config file /etc/php/7.4/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.4/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.4/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.4/mods-available/tokenizer.ini with new version
Setting up php7.4-curl (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/curl.ini with new version
Setting up php7.4-mysql (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/mysqlnd.ini with new version

Creating config file /etc/php/7.4/mods-available/mysqli.ini with new version

Creating config file /etc/php/7.4/mods-available/pdo_mysql.ini with new version
Setting up libapr1:amd64 (1.6.5-1ubuntu1) ...
Setting up php7.4-readline (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/readline.ini with new version
Setting up php7.4-mbstring (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/mbstring.ini with new version
Setting up php-mbstring (2:7.4+75) ...
Setting up php7.4-intl (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/intl.ini with new version
Setting up libjansson4:amd64 (2.12-1build1) ...
Setting up php-intl (2:7.4+75) ...
Setting up php7.4-zip (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/zip.ini with new version
Setting up ssl-cert (1.0.39) ...
Setting up liblua5.2-0:amd64 (5.2.4-1.1build3) ...
Setting up php-zip (2:7.4+75) ...
Setting up php7.4-opcache (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/opcache.ini with new version
Setting up apache2-data (2.4.41-4ubuntu3.20) ...
Setting up php7.4-gd (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/gd.ini with new version
Setting up libaprutil1:amd64 (1.6.1-4ubuntu2.2) ...
Setting up php-curl (2:7.4+75) ...
Setting up php7.4-json (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/json.ini with new version
Setting up php-mysql (2:7.4+75) ...
Setting up php7.4-xml (7.4.3-4ubuntu2.23) ...

Creating config file /etc/php/7.4/mods-available/dom.ini with new version

Creating config file /etc/php/7.4/mods-available/simplexml.ini with new version

Creating config file /etc/php/7.4/mods-available/xml.ini with new version

Creating config file /etc/php/7.4/mods-available/xmlreader.ini with new version

Creating config file /etc/php/7.4/mods-available/xmlwriter.ini with new version

Creating config file /etc/php/7.4/mods-available/xsl.ini with new version
Setting up php-json (2:7.4+75) ...
Setting up php7.4-cli (7.4.3-4ubuntu2.23) ...
update-alternatives: using /usr/bin/php7.4 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.4 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.4 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.4/cli/php.ini with new version
Setting up libaprutil1-ldap:amd64 (1.6.1-4ubuntu2.2) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-4ubuntu2.2) ...
Setting up php-gd (2:7.4+75) ...
Setting up apache2-utils (2.4.41-4ubuntu3.20) ...
Setting up php-xml (2:7.4+75) ...
Setting up apache2-bin (2.4.41-4ubuntu3.20) ...
Setting up libapache2-mod-php7.4 (7.4.3-4ubuntu2.23) ...
Package apache2 is not configured yet. Will defer actions by package libapache2-mod-php7.4.

Creating config file /etc/php/7.4/apache2/php.ini with new version
No module matches
Setting up apache2 (2.4.41-4ubuntu3.20) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
info: Switch to mpm prefork for package libapache2-mod-php7.4
Module mpm_event disabled.
Enabling module mpm_prefork.
info: Executing deferred 'a2enmod php7.4' for package libapache2-mod-php7.4
Enabling module php7.4.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
invoke-rc.d: could not determine current runlevel
Setting up php7.4 (7.4.3-4ubuntu2.23) ...
Setting up libapache2-mod-php (2:7.4+75) ...
Setting up php (2:7.4+75) ...
Processing triggers for ufw (0.36-6ubuntu1.1) ...
Processing triggers for systemd (245.4-4ubuntu3.23) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.16) ...
/sbin/ldconfig.real: Can't link /usr/lib/wsl/lib/libnvoptix_loader.so.1 to libnvoptix.so.1
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Processing triggers for php7.4-cli (7.4.3-4ubuntu2.23) ...
Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu2.23) ...
christelle@DESKTOP-FOF3H0T:~$ php -v
PHP 7.4.3-4ubuntu2.23 (cli) (built: Jun 17 2024 13:22:20) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3-4ubuntu2.23, Copyright (c), by Zend Technologies
christelle@DESKTOP-FOF3H0T:~$ cd /etc/apache2

Hors ligne

#2 Le 12/07/2024, à 12:20

xubu1957

Re : Passer apache et php en version > 8

Bonjour,

Je retrouve une réponse de bruno.


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#3 Le 18/07/2024, à 11:46

Christellle

Re : Passer apache et php en version > 8

Bonjour @xubu1957,
Merci pour ta réponse. Du coup, j'ai trouvé ce qu'il me manquait.
J'ai fait une mise à jour du système.

Hors ligne