How to install PHP8.0 on Ubuntu 21.10


Step 1: Install PHP
apt-get install php -y
apt-get install php-fpm -y
apt-get install php-dev -y

Result:

root@tutorialspots:~# apt-get install php -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.13.0-19 linux-headers-5.13.0-19-generic
  linux-image-5.13.0-19-generic linux-modules-5.13.0-19-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils bzip2 libapache2-mod-php8.0
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4
  liblua5.3-0 libsodium23 mailcap mime-support php-common php8.0 php8.0-cli
  php8.0-common php8.0-opcache php8.0-readline ssl-cert
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser
  bzip2-doc php-pear
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils bzip2 libapache2-mod-php8.0
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4
  liblua5.3-0 libsodium23 mailcap mime-support php php-common php8.0
  php8.0-cli php8.0-common php8.0-opcache php8.0-readline ssl-cert
0 upgraded, 23 newly installed, 0 to remove and 24 not upgraded.
Need to get 7061 kB of archives.
After this operation, 29.0 MB of additional disk space will be used.
Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 libapr1 amd64 1.7.0-6ubuntu1 [107 kB]
Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 libaprutil1 amd64 1.6.1-5ubuntu2 [84.6 kB]
Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-5ubuntu2 [10.6 kB]
Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 libaprutil1-ldap amd64 1.6.1-5ubuntu2 [8760 B]
Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 libjansson4 amd64 2.13.1-1.1build1 [30.2 kB]
Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 liblua5.3-0 amd64 5.3.3-1.1ubuntu2 [116 kB]
Get:7 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 apache2-bin amd64 2.4.48-3.1ubuntu3 [1327 kB]
Get:8 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 apache2-data all 2.4.48-3.1ubuntu3 [165 kB]
Get:9 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 apache2-utils amd64 2.4.48-3.1ubuntu3 [88.6 kB]
Get:10 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 mailcap all 3.69ubuntu1 [23.7 kB]
Get:11 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 mime-support all 3.66 [3696 B]
Get:12 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 apache2 amd64 2.4.48-3.1ubuntu3 [98.0 kB]
Get:13 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 bzip2 amd64 1.0.8-4ubuntu3 [33.4 kB]
Get:14 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 php-common all 2:82~0build1 [12.1 kB]
Get:15 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-common amd64 8.0.8-1ubuntu0.1 [1074 kB]
Get:16 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-opcache amd64 8.0.8-1ubuntu0.1 [499 kB]
Get:17 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-readline amd64 8.0.8-1ubuntu0.1 [13.3 kB]
Get:18 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 libsodium23 amd64 1.0.18-1build1 [164 kB]
Get:19 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-cli amd64 8.0.8-1ubuntu0.1 [1620 kB]
Get:20 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 libapache2-mod-php8.0 amd64 8.0.8-1ubuntu0.1 [1553 kB]
Get:21 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0 all 8.0.8-1ubuntu0.1 [9164 B]
Get:22 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 php all 2:8.0+82~0build1 [2900 B]
Get:23 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 ssl-cert all 1.1.0+nmu1 [16.7 kB]
Fetched 7061 kB in 3s (2256 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libapr1:amd64.
(Reading database ... 120856 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.7.0-6ubuntu1_amd64.deb ...
Unpacking libapr1:amd64 (1.7.0-6ubuntu1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.6.1-5ubuntu2_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.1-5ubuntu2) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-5ubuntu2_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-5ubuntu2) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.6.1-5ubuntu2_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.1-5ubuntu2) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../04-libjansson4_2.13.1-1.1build1_amd64.deb ...
Unpacking libjansson4:amd64 (2.13.1-1.1build1) ...
Selecting previously unselected package liblua5.3-0:amd64.
Preparing to unpack .../05-liblua5.3-0_5.3.3-1.1ubuntu2_amd64.deb ...
Unpacking liblua5.3-0:amd64 (5.3.3-1.1ubuntu2) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../06-apache2-bin_2.4.48-3.1ubuntu3_amd64.deb ...
Unpacking apache2-bin (2.4.48-3.1ubuntu3) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../07-apache2-data_2.4.48-3.1ubuntu3_all.deb ...
Unpacking apache2-data (2.4.48-3.1ubuntu3) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../08-apache2-utils_2.4.48-3.1ubuntu3_amd64.deb ...
Unpacking apache2-utils (2.4.48-3.1ubuntu3) ...
Selecting previously unselected package mailcap.
Preparing to unpack .../09-mailcap_3.69ubuntu1_all.deb ...
Unpacking mailcap (3.69ubuntu1) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../10-mime-support_3.66_all.deb ...
Unpacking mime-support (3.66) ...
Selecting previously unselected package apache2.
Preparing to unpack .../11-apache2_2.4.48-3.1ubuntu3_amd64.deb ...
Unpacking apache2 (2.4.48-3.1ubuntu3) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../12-bzip2_1.0.8-4ubuntu3_amd64.deb ...
Unpacking bzip2 (1.0.8-4ubuntu3) ...
Selecting previously unselected package php-common.
Preparing to unpack .../13-php-common_2%3a82~0build1_all.deb ...
Unpacking php-common (2:82~0build1) ...
Selecting previously unselected package php8.0-common.
Preparing to unpack .../14-php8.0-common_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-common (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php8.0-opcache.
Preparing to unpack .../15-php8.0-opcache_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-opcache (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php8.0-readline.
Preparing to unpack .../16-php8.0-readline_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-readline (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package libsodium23:amd64.
Preparing to unpack .../17-libsodium23_1.0.18-1build1_amd64.deb ...
Unpacking libsodium23:amd64 (1.0.18-1build1) ...
Selecting previously unselected package php8.0-cli.
Preparing to unpack .../18-php8.0-cli_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-cli (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package libapache2-mod-php8.0.
Preparing to unpack .../19-libapache2-mod-php8.0_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking libapache2-mod-php8.0 (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php8.0.
Preparing to unpack .../20-php8.0_8.0.8-1ubuntu0.1_all.deb ...
Unpacking php8.0 (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php.
Preparing to unpack .../21-php_2%3a8.0+82~0build1_all.deb ...
Unpacking php (2:8.0+82~0build1) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../22-ssl-cert_1.1.0+nmu1_all.deb ...
Unpacking ssl-cert (1.1.0+nmu1) ...
Setting up php-common (2:82~0build1) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
Setting up libsodium23:amd64 (1.0.18-1build1) ...
Setting up libapr1:amd64 (1.7.0-6ubuntu1) ...
Setting up bzip2 (1.0.8-4ubuntu3) ...
Setting up libjansson4:amd64 (2.13.1-1.1build1) ...
Setting up ssl-cert (1.1.0+nmu1) ...
Setting up php8.0-common (8.0.8-1ubuntu0.1) ...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Creating config file /etc/php/8.0/mods-available/tokenizer.ini with new version
Setting up liblua5.3-0:amd64 (5.3.3-1.1ubuntu2) ...
Setting up apache2-data (2.4.48-3.1ubuntu3) ...
Setting up mailcap (3.69ubuntu1) ...
Setting up libaprutil1:amd64 (1.6.1-5ubuntu2) ...
Setting up mime-support (3.66) ...
Setting up libaprutil1-ldap:amd64 (1.6.1-5ubuntu2) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-5ubuntu2) ...
Setting up php8.0-readline (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/readline.ini with new version
Setting up php8.0-opcache (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/opcache.ini with new version
Setting up apache2-utils (2.4.48-3.1ubuntu3) ...
Setting up apache2-bin (2.4.48-3.1ubuntu3) ...
Setting up php8.0-cli (8.0.8-1ubuntu0.1) ...
update-alternatives: using /usr/bin/php8.0 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar8.0 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar8.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/8.0/cli/php.ini with new version
Setting up libapache2-mod-php8.0 (8.0.8-1ubuntu0.1) ...
Package apache2 is not configured yet. Will defer actions by package libapache2-mod-php8.0.

Creating config file /etc/php/8.0/apache2/php.ini with new version
No module matches
Setting up apache2 (2.4.48-3.1ubuntu3) ...
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-php8.0
Module mpm_event disabled.
Enabling module mpm_prefork.
info: Executing deferred 'a2enmod php8.0' for package libapache2-mod-php8.0
Enabling module php8.0.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
Setting up php8.0 (8.0.8-1ubuntu0.1) ...
Setting up php (2:8.0+82~0build1) ...
Processing triggers for ufw (0.36.1-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
Processing triggers for php8.0-cli (8.0.8-1ubuntu0.1) ...
Processing triggers for libapache2-mod-php8.0 (8.0.8-1ubuntu0.1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.
root@tutorialspots:~# apt-get install php-fpm -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.13.0-19 linux-headers-5.13.0-19-generic
  linux-image-5.13.0-19-generic linux-modules-5.13.0-19-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  php8.0-fpm
Suggested packages:
  php-pear
The following NEW packages will be installed:
  php-fpm php8.0-fpm
0 upgraded, 2 newly installed, 0 to remove and 24 not upgraded.
Need to get 1629 kB of archives.
After this operation, 5060 kB of additional disk space will be used.
Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/universe amd64 php8.0-fpm amd64 8.0.8-1ubuntu0.1 [1626 kB]
Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu impish/universe amd64 php-fpm all 2:8.0+82~0build1 [2992 B]
Fetched 1629 kB in 2s (685 kB/s)
Selecting previously unselected package php8.0-fpm.
(Reading database ... 121769 files and directories currently installed.)
Preparing to unpack .../php8.0-fpm_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-fpm (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-fpm.
Preparing to unpack .../php-fpm_2%3a8.0+82~0build1_all.deb ...
Unpacking php-fpm (2:8.0+82~0build1) ...
Setting up php8.0-fpm (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/fpm/php.ini with new version
NOTICE: Not enabling PHP 8.0 FPM by default.
NOTICE: To enable PHP 8.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Created symlink /etc/systemd/system/multi-user.target.wants/php8.0-fpm.service → /lib/systemd/system/php8.0-fpm.service.
Setting up php-fpm (2:8.0+82~0build1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for php8.0-fpm (8.0.8-1ubuntu0.1) ...
NOTICE: Not enabling PHP 8.0 FPM by default.
NOTICE: To enable PHP 8.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.
...
Preparing to unpack .../09-libtirpc-dev_1.3.2-2_amd64.deb ...
Unpacking libtirpc-dev:amd64 (1.3.2-2) ...
Selecting previously unselected package libnsl-dev:amd64.
Preparing to unpack .../10-libnsl-dev_1.3.0-2build1_amd64.deb ...
Unpacking libnsl-dev:amd64 (1.3.0-2build1) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../11-libc6-dev_2.34-0ubuntu3_amd64.deb ...
Unpacking libc6-dev:amd64 (2.34-0ubuntu3) ...
Selecting previously unselected package libisl23:amd64.
Preparing to unpack .../12-libisl23_0.24-1_amd64.deb ...
Unpacking libisl23:amd64 (0.24-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../13-libmpc3_1.2.0-1build1_amd64.deb ...
Unpacking libmpc3:amd64 (1.2.0-1build1) ...
Selecting previously unselected package cpp-11.
Preparing to unpack .../14-cpp-11_11.2.0-7ubuntu2_amd64.deb ...
Unpacking cpp-11 (11.2.0-7ubuntu2) ...
Selecting previously unselected package cpp.
Preparing to unpack .../15-cpp_4%3a11.2.0-1ubuntu1_amd64.deb ...
Unpacking cpp (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../16-libcc1-0_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libcc1-0:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../17-libgomp1_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libgomp1:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../18-libitm1_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libitm1:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../19-libatomic1_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libatomic1:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libasan6:amd64.
Preparing to unpack .../20-libasan6_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libasan6:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../21-liblsan0_11.2.0-7ubuntu2_amd64.deb ...
Unpacking liblsan0:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../22-libtsan0_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libtsan0:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../23-libubsan1_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libubsan1:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../24-libquadmath0_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libquadmath0:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package libgcc-11-dev:amd64.
Preparing to unpack .../25-libgcc-11-dev_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libgcc-11-dev:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package gcc-11.
Preparing to unpack .../26-gcc-11_11.2.0-7ubuntu2_amd64.deb ...
Unpacking gcc-11 (11.2.0-7ubuntu2) ...
Selecting previously unselected package gcc.
Preparing to unpack .../27-gcc_4%3a11.2.0-1ubuntu1_amd64.deb ...
Unpacking gcc (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package libstdc++-11-dev:amd64.
Preparing to unpack .../28-libstdc++-11-dev_11.2.0-7ubuntu2_amd64.deb ...
Unpacking libstdc++-11-dev:amd64 (11.2.0-7ubuntu2) ...
Selecting previously unselected package g++-11.
Preparing to unpack .../29-g++-11_11.2.0-7ubuntu2_amd64.deb ...
Unpacking g++-11 (11.2.0-7ubuntu2) ...
Selecting previously unselected package g++.
Preparing to unpack .../30-g++_4%3a11.2.0-1ubuntu1_amd64.deb ...
Unpacking g++ (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package make.
Preparing to unpack .../31-make_4.3-4ubuntu1_amd64.deb ...
Unpacking make (4.3-4ubuntu1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../32-libdpkg-perl_1.20.9ubuntu2_all.deb ...
Unpacking libdpkg-perl (1.20.9ubuntu2) ...
Selecting previously unselected package lto-disabled-list.
Preparing to unpack .../33-lto-disabled-list_16_all.deb ...
Unpacking lto-disabled-list (16) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../34-dpkg-dev_1.20.9ubuntu2_all.deb ...
Unpacking dpkg-dev (1.20.9ubuntu2) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../35-build-essential_12.9ubuntu2_amd64.deb ...
Unpacking build-essential (12.9ubuntu2) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../36-libdebhelper-perl_13.3.4ubuntu2_all.deb ...
Unpacking libdebhelper-perl (13.3.4ubuntu2) ...
Selecting previously unselected package libtool.
Preparing to unpack .../37-libtool_2.4.6-15_all.deb ...
Unpacking libtool (2.4.6-15) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../38-dh-autoreconf_20_all.deb ...
Unpacking dh-autoreconf (20) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../39-libarchive-zip-perl_1.68-1_all.deb ...
Unpacking libarchive-zip-perl (1.68-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../40-libsub-override-perl_0.09-2_all.deb ...
Unpacking libsub-override-perl (0.09-2) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../41-libfile-stripnondeterminism-perl_1.12.0-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.12.0-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../42-dh-strip-nondeterminism_1.12.0-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.12.0-1) ...
Selecting previously unselected package debugedit.
Preparing to unpack .../43-debugedit_1%3a5.0-0ubuntu2_amd64.deb ...
Unpacking debugedit (1:5.0-0ubuntu2) ...
Selecting previously unselected package dwz.
Preparing to unpack .../44-dwz_0.14-1build1_amd64.deb ...
Unpacking dwz (0.14-1build1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../45-gettext_0.21-4ubuntu3_amd64.deb ...
Unpacking gettext (0.21-4ubuntu3) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../46-intltool-debian_0.35.0+20060710.5_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.5) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../47-po-debconf_1.0.21+nmu1_all.deb ...
Unpacking po-debconf (1.0.21+nmu1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../48-debhelper_13.3.4ubuntu2_all.deb ...
Unpacking debhelper (13.3.4ubuntu2) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../49-libfakeroot_1.25.3-1.1ubuntu2_amd64.deb ...
Unpacking libfakeroot:amd64 (1.25.3-1.1ubuntu2) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../50-fakeroot_1.25.3-1.1ubuntu2_amd64.deb ...
Unpacking fakeroot (1.25.3-1.1ubuntu2) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../51-libalgorithm-diff-perl_1.201-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.201-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../52-libalgorithm-diff-xs-perl_0.04-6build1_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-6build1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../53-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libarchive-cpio-perl.
Preparing to unpack .../54-libarchive-cpio-perl_0.10-1.1_all.deb ...
Unpacking libarchive-cpio-perl (0.10-1.1) ...
Selecting previously unselected package libc-devtools.
Preparing to unpack .../55-libc-devtools_2.34-0ubuntu3_amd64.deb ...
Unpacking libc-devtools (2.34-0ubuntu3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../56-libfile-fcntllock-perl_0.22-3build5_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build5) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../57-libltdl7_2.4.6-15_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-15) ...
Selecting previously unselected package libltdl-dev:amd64.
Preparing to unpack .../58-libltdl-dev_2.4.6-15_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-15) ...
Selecting previously unselected package libsys-hostname-long-perl.
Preparing to unpack .../59-libsys-hostname-long-perl_1.5-2_all.deb ...
Unpacking libsys-hostname-long-perl (1.5-2) ...
Selecting previously unselected package libmail-sendmail-perl.
Preparing to unpack .../60-libmail-sendmail-perl_0.80-1.1_all.deb ...
Unpacking libmail-sendmail-perl (0.80-1.1) ...
Selecting previously unselected package libpcre2-16-0:amd64.
Preparing to unpack .../61-libpcre2-16-0_10.37-0ubuntu2_amd64.deb ...
Unpacking libpcre2-16-0:amd64 (10.37-0ubuntu2) ...
Selecting previously unselected package libpcre2-32-0:amd64.
Preparing to unpack .../62-libpcre2-32-0_10.37-0ubuntu2_amd64.deb ...
Unpacking libpcre2-32-0:amd64 (10.37-0ubuntu2) ...
Selecting previously unselected package libpcre2-posix3:amd64.
Preparing to unpack .../63-libpcre2-posix3_10.37-0ubuntu2_amd64.deb ...
Unpacking libpcre2-posix3:amd64 (10.37-0ubuntu2) ...
Selecting previously unselected package libpcre2-dev:amd64.
Preparing to unpack .../64-libpcre2-dev_10.37-0ubuntu2_amd64.deb ...
Unpacking libpcre2-dev:amd64 (10.37-0ubuntu2) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../65-libssl-dev_1.1.1l-1ubuntu1_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1l-1ubuntu1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../66-manpages-dev_5.10-1ubuntu1_all.deb ...
Unpacking manpages-dev (5.10-1ubuntu1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../67-pkg-config_0.29.2-1ubuntu1_amd64.deb ...
Unpacking pkg-config (0.29.2-1ubuntu1) ...
Selecting previously unselected package shtool.
Preparing to unpack .../68-shtool_2.0.8-10_all.deb ...
Unpacking shtool (2.0.8-10) ...
Selecting previously unselected package php8.0-dev.
Preparing to unpack .../69-php8.0-dev_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-dev (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-dev.
Preparing to unpack .../70-php-dev_2%3a8.0+82~0build1_all.deb ...
Unpacking php-dev (2:8.0+82~0build1) ...
Selecting previously unselected package php-json.
Preparing to unpack .../71-php-json_2%3a8.0+82~0build1_all.deb ...
Unpacking php-json (2:8.0+82~0build1) ...
Selecting previously unselected package php8.0-xml.
Preparing to unpack .../72-php8.0-xml_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-xml (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-xml.
Preparing to unpack .../73-php-xml_2%3a8.0+82~0build1_all.deb ...
Unpacking php-xml (2:8.0+82~0build1) ...
Selecting previously unselected package php-pear.
Preparing to unpack .../74-php-pear_1%3a1.10.12+submodules+notgz+20210212-1ubuntu1_all.deb ...
Unpacking php-pear (1:1.10.12+submodules+notgz+20210212-1ubuntu1) ...
Selecting previously unselected package pkg-php-tools.
Preparing to unpack .../75-pkg-php-tools_1.41_all.deb ...
Unpacking pkg-php-tools (1.41) ...
Setting up shtool (2.0.8-10) ...
Setting up manpages-dev (5.10-1ubuntu1) ...
Setting up lto-disabled-list (16) ...
Setting up php8.0-xml (8.0.8-1ubuntu0.1) ...

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

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

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

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

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

Creating config file /etc/php/8.0/mods-available/xsl.ini with new version
Setting up libfile-fcntllock-perl (0.22-3build5) ...
Setting up php-json (2:8.0+82~0build1) ...
Setting up libalgorithm-diff-perl (1.201-1) ...
Setting up libarchive-zip-perl (1.68-1) ...
Setting up libdebhelper-perl (13.3.4ubuntu2) ...
Setting up linux-libc-dev:amd64 (5.13.0-22.22) ...
Setting up m4 (1.4.18-5ubuntu1) ...
Setting up libgomp1:amd64 (11.2.0-7ubuntu2) ...
Setting up libpcre2-16-0:amd64 (10.37-0ubuntu2) ...
Setting up libfakeroot:amd64 (1.25.3-1.1ubuntu2) ...
Setting up libasan6:amd64 (11.2.0-7ubuntu2) ...
Setting up fakeroot (1.25.3-1.1ubuntu2) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up autotools-dev (20180224.1+nmu1) ...
Setting up libpcre2-32-0:amd64 (10.37-0ubuntu2) ...
Setting up libtirpc-dev:amd64 (1.3.2-2) ...
Setting up rpcsvc-proto (1.4.2-0ubuntu5) ...
Setting up make (4.3-4ubuntu1) ...
Setting up libquadmath0:amd64 (11.2.0-7ubuntu2) ...
Setting up libssl-dev:amd64 (1.1.1l-1ubuntu1) ...
Setting up libmpc3:amd64 (1.2.0-1build1) ...
Setting up libatomic1:amd64 (11.2.0-7ubuntu2) ...
Setting up autopoint (0.21-4ubuntu3) ...
Setting up libltdl7:amd64 (2.4.6-15) ...
Setting up libdpkg-perl (1.20.9ubuntu2) ...
Setting up autoconf (2.69-14) ...
Setting up libubsan1:amd64 (11.2.0-7ubuntu2) ...
Setting up libpcre2-posix3:amd64 (10.37-0ubuntu2) ...
Setting up dwz (0.14-1build1) ...
Setting up libnsl-dev:amd64 (1.3.0-2build1) ...
Setting up libcrypt-dev:amd64 (1:4.4.18-4ubuntu1) ...
Setting up libarchive-cpio-perl (0.10-1.1) ...
Setting up debugedit (1:5.0-0ubuntu2) ...
Setting up libsub-override-perl (0.09-2) ...
Setting up libisl23:amd64 (0.24-1) ...
Setting up libc-dev-bin (2.34-0ubuntu3) ...
Setting up libsys-hostname-long-perl (1.5-2) ...
Setting up libalgorithm-diff-xs-perl (0.04-6build1) ...
Setting up libcc1-0:amd64 (11.2.0-7ubuntu2) ...
Setting up liblsan0:amd64 (11.2.0-7ubuntu2) ...
Setting up libitm1:amd64 (11.2.0-7ubuntu2) ...
Setting up libc-devtools (2.34-0ubuntu3) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libtsan0:amd64 (11.2.0-7ubuntu2) ...
Setting up automake (1:1.16.4-2) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up php-xml (2:8.0+82~0build1) ...
Setting up libfile-stripnondeterminism-perl (1.12.0-1) ...
Setting up cpp-11 (11.2.0-7ubuntu2) ...
Setting up php-pear (1:1.10.12+submodules+notgz+20210212-1ubuntu1) ...
Setting up gettext (0.21-4ubuntu3) ...
Setting up dpkg-dev (1.20.9ubuntu2) ...
Setting up intltool-debian (0.35.0+20060710.5) ...
Setting up libmail-sendmail-perl (0.80-1.1) ...
Setting up libltdl-dev:amd64 (2.4.6-15) ...
Setting up pkg-config (0.29.2-1ubuntu1) ...
Setting up dh-strip-nondeterminism (1.12.0-1) ...
Setting up libgcc-11-dev:amd64 (11.2.0-7ubuntu2) ...
Setting up gcc-11 (11.2.0-7ubuntu2) ...
Setting up cpp (4:11.2.0-1ubuntu1) ...
Setting up libc6-dev:amd64 (2.34-0ubuntu3) ...
Setting up libpcre2-dev:amd64 (10.37-0ubuntu2) ...
Setting up libtool (2.4.6-15) ...
Setting up po-debconf (1.0.21+nmu1) ...
Setting up gcc (4:11.2.0-1ubuntu1) ...
Setting up dh-autoreconf (20) ...
Setting up php8.0-dev (8.0.8-1ubuntu0.1) ...
update-alternatives: using /usr/bin/php-config8.0 to provide /usr/bin/php-config (php-config) in auto mode
update-alternatives: using /usr/bin/phpize8.0 to provide /usr/bin/phpize (phpize) in auto mode
Setting up libstdc++-11-dev:amd64 (11.2.0-7ubuntu2) ...
Setting up g++-11 (11.2.0-7ubuntu2) ...
Setting up php-dev (2:8.0+82~0build1) ...
update-alternatives: using /usr/bin/php-config.default to provide /usr/bin/php-config (php-config) in auto mode
update-alternatives: using /usr/bin/phpize.default to provide /usr/bin/phpize (phpize) in auto mode
Setting up debhelper (13.3.4ubuntu2) ...
Setting up g++ (4:11.2.0-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.9ubuntu2) ...
Setting up pkg-php-tools (1.41) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for php8.0-fpm (8.0.8-1ubuntu0.1) ...
NOTICE: Not enabling PHP 8.0 FPM by default.
NOTICE: To enable PHP 8.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for libapache2-mod-php8.0 (8.0.8-1ubuntu0.1) ...
Processing triggers for install-info (6.7.0.dfsg.2-6) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
Processing triggers for php8.0-cli (8.0.8-1ubuntu0.1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

Step 2: Install some extensions:

apt-get install -y php-gd php-imap php-intl php-json php-ldap php-mbstring
apt-get install -y php-mongodb

Result:

root@tutorialspots:~# apt-get install -y php-gd php-imap php-intl php-json php-ldap php-mbstring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php-json is already the newest version (2:8.0+82~0build1).
php-json set to manually installed.
The following packages were automatically installed and are no longer required:
  linux-headers-5.13.0-19 linux-headers-5.13.0-19-generic
  linux-image-5.13.0-19-generic linux-modules-5.13.0-19-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libc-client2007e libonig5 mlock php8.0-gd php8.0-imap php8.0-intl
  php8.0-ldap php8.0-mbstring
Suggested packages:
  uw-mailutils
The following NEW packages will be installed:
  libc-client2007e libonig5 mlock php-gd php-imap php-intl php-ldap
  php-mbstring php8.0-gd php8.0-imap php8.0-intl php8.0-ldap php8.0-mbstring
0 upgraded, 13 newly installed, 0 to remove and 24 not upgraded.
Need to get 1494 kB of archives.
After this operation, 4163 kB of additional disk space will be used.
Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu impish/universe amd64 mlock amd64 8:2007f~dfsg-7 [12.0 kB]
Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu impish/universe amd64 libc-client2007e amd64 8:2007f~dfsg-7 [578 kB]
Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 libonig5 amd64 6.9.6-1.1build1 [174 kB]
Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-gd amd64 8.0.8-1ubuntu0.1 [32.0 kB]
Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 php-gd all 2:8.0+82~0build1 [2008 B]
Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/universe amd64 php8.0-imap amd64 8.0.8-1ubuntu0.1 [35.0 kB]
Get:7 http://nova.clouds.archive.ubuntu.com/ubuntu impish/universe amd64 php-imap all 2:8.0+82~0build1 [2016 B]
Get:8 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/universe amd64 php8.0-intl amd64 8.0.8-1ubuntu0.1 [142 kB]
Get:9 http://nova.clouds.archive.ubuntu.com/ubuntu impish/universe amd64 php-intl all 2:8.0+82~0build1 [2024 B]
Get:10 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-ldap amd64 8.0.8-1ubuntu0.1 [32.0 kB]
Get:11 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 php-ldap all 2:8.0+82~0build1 [2012 B]
Get:12 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-mbstring amd64 8.0.8-1ubuntu0.1 [479 kB]
Get:13 http://nova.clouds.archive.ubuntu.com/ubuntu impish/universe amd64 php-mbstring all 2:8.0+82~0build1 [2020 B]
Fetched 1494 kB in 2s (679 kB/s)
Selecting previously unselected package mlock.
(Reading database ... 129399 files and directories currently installed.)
Preparing to unpack .../00-mlock_8%3a2007f~dfsg-7_amd64.deb ...
Unpacking mlock (8:2007f~dfsg-7) ...
Selecting previously unselected package libc-client2007e.
Preparing to unpack .../01-libc-client2007e_8%3a2007f~dfsg-7_amd64.deb ...
Unpacking libc-client2007e (8:2007f~dfsg-7) ...
Selecting previously unselected package libonig5:amd64.
Preparing to unpack .../02-libonig5_6.9.6-1.1build1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.6-1.1build1) ...
Selecting previously unselected package php8.0-gd.
Preparing to unpack .../03-php8.0-gd_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-gd (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-gd.
Preparing to unpack .../04-php-gd_2%3a8.0+82~0build1_all.deb ...
Unpacking php-gd (2:8.0+82~0build1) ...
Selecting previously unselected package php8.0-imap.
Preparing to unpack .../05-php8.0-imap_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-imap (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-imap.
Preparing to unpack .../06-php-imap_2%3a8.0+82~0build1_all.deb ...
Unpacking php-imap (2:8.0+82~0build1) ...
Selecting previously unselected package php8.0-intl.
Preparing to unpack .../07-php8.0-intl_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-intl (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-intl.
Preparing to unpack .../08-php-intl_2%3a8.0+82~0build1_all.deb ...
Unpacking php-intl (2:8.0+82~0build1) ...
Selecting previously unselected package php8.0-ldap.
Preparing to unpack .../09-php8.0-ldap_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-ldap (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-ldap.
Preparing to unpack .../10-php-ldap_2%3a8.0+82~0build1_all.deb ...
Unpacking php-ldap (2:8.0+82~0build1) ...
Selecting previously unselected package php8.0-mbstring.
Preparing to unpack .../11-php8.0-mbstring_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-mbstring (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-mbstring.
Preparing to unpack .../12-php-mbstring_2%3a8.0+82~0build1_all.deb ...
Unpacking php-mbstring (2:8.0+82~0build1) ...
Setting up mlock (8:2007f~dfsg-7) ...
Setting up php8.0-intl (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/intl.ini with new version
Setting up php8.0-gd (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/gd.ini with new version
Setting up php-intl (2:8.0+82~0build1) ...
Setting up php8.0-ldap (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/ldap.ini with new version
Setting up php-gd (2:8.0+82~0build1) ...
Setting up libc-client2007e (8:2007f~dfsg-7) ...
Setting up libonig5:amd64 (6.9.6-1.1build1) ...
Setting up php8.0-imap (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/imap.ini with new version
Setting up php8.0-mbstring (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/mbstring.ini with new version
Setting up php-mbstring (2:8.0+82~0build1) ...
Setting up php-ldap (2:8.0+82~0build1) ...
Setting up php-imap (2:8.0+82~0build1) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for php8.0-fpm (8.0.8-1ubuntu0.1) ...
NOTICE: Not enabling PHP 8.0 FPM by default.
NOTICE: To enable PHP 8.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for libapache2-mod-php8.0 (8.0.8-1ubuntu0.1) ...
Processing triggers for php8.0-cli (8.0.8-1ubuntu0.1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.
root@tutorialspots:~# apt-get install -y php-mongodb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.13.0-19 linux-headers-5.13.0-19-generic
  linux-image-5.13.0-19-generic linux-modules-5.13.0-19-generic
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  php-mongodb
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 480 kB of archives.
After this operation, 1475 kB of additional disk space will be used.
Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu impish/universe amd64 php-mongodb amd64 1.9.0+1.7.5-2build2 [480 kB]
Fetched 480 kB in 2s (280 kB/s)
Selecting previously unselected package php-mongodb.
(Reading database ... 129491 files and directories currently installed.)
Preparing to unpack .../php-mongodb_1.9.0+1.7.5-2build2_amd64.deb ...
Unpacking php-mongodb (1.9.0+1.7.5-2build2) ...
Setting up php-mongodb (1.9.0+1.7.5-2build2) ...
Processing triggers for php8.0-fpm (8.0.8-1ubuntu0.1) ...
NOTICE: Not enabling PHP 8.0 FPM by default.
NOTICE: To enable PHP 8.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for libapache2-mod-php8.0 (8.0.8-1ubuntu0.1) ...
Processing triggers for php8.0-cli (8.0.8-1ubuntu0.1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

You can install extension CURL:
apt-get install -y php-curl

Result:

root@tutorialspots:~# apt-get install -y php-curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.13.0-19 linux-headers-5.13.0-19-generic
  linux-image-5.13.0-19-generic linux-modules-5.13.0-19-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  php8.0-curl
The following NEW packages will be installed:
  php-curl php8.0-curl
0 upgraded, 2 newly installed, 0 to remove and 24 not upgraded.
Need to get 39.6 kB of archives.
After this operation, 161 kB of additional disk space will be used.
Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/main amd64 php8.0-curl amd64 8.0.8-1ubuntu0.1 [37.6 kB]
Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu impish/main amd64 php-curl all 2:8.0+82~0build1 [2016 B]
Fetched 39.6 kB in 1s (42.1 kB/s)
Selecting previously unselected package php8.0-curl.
(Reading database ... 129496 files and directories currently installed.)
Preparing to unpack .../php8.0-curl_8.0.8-1ubuntu0.1_amd64.deb ...
Unpacking php8.0-curl (8.0.8-1ubuntu0.1) ...
Selecting previously unselected package php-curl.
Preparing to unpack .../php-curl_2%3a8.0+82~0build1_all.deb ...
Unpacking php-curl (2:8.0+82~0build1) ...
Setting up php8.0-curl (8.0.8-1ubuntu0.1) ...

Creating config file /etc/php/8.0/mods-available/curl.ini with new version
Setting up php-curl (2:8.0+82~0build1) ...
Processing triggers for libapache2-mod-php8.0 (8.0.8-1ubuntu0.1) ...
Processing triggers for php8.0-fpm (8.0.8-1ubuntu0.1) ...
NOTICE: Not enabling PHP 8.0 FPM by default.
NOTICE: To enable PHP 8.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for php8.0-cli (8.0.8-1ubuntu0.1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

Step 3:
systemctl enable php8.0-fpm
systemctl start php8.0-fpm

Result:

root@tutorialspots:~# systemctl enable php8.0-fpm
Synchronizing state of php8.0-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php8.0-fpm
root@tutorialspots:~# systemctl start php8.0-fpm

Step 4: edit file /etc/php/8.0/fpm/pool.d/www.conf

change line:
listen = /run/php/php8.0-fpm.sock

to
listen = 127.0.0.1:9000

Step 5: Restart php-fpm

systemctl restart php8.0-fpm

Done!

Leave a Reply