Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


install_php_8_1_modules_gmp_bc_math_nextcloud_27_0

This is an old revision of the document!


Install the PHP 8.1 Modules or Extensions GMP and BC Math for NextCloud 27 Requirements

Run this command:

$ sudo apt install php8.1-gmp php8.1-bcmath

Result

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  php8.1-bcmath php8.1-gmp
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.1 kB of archives.
After this operation, 172 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 php8.1-bcmath amd64 8.1.2-1ubuntu2.11 [16.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 php8.1-gmp amd64 8.1.2-1ubuntu2.11 [22.6 kB]
Fetched 39.1 kB in 1s (58.9 kB/s)
Selecting previously unselected package php8.1-bcmath.
(Reading database ... 83916 files and directories currently installed.)
Preparing to unpack .../php8.1-bcmath_8.1.2-1ubuntu2.11_amd64.deb ...
Unpacking php8.1-bcmath (8.1.2-1ubuntu2.11) ...
Selecting previously unselected package php8.1-gmp.
Preparing to unpack .../php8.1-gmp_8.1.2-1ubuntu2.11_amd64.deb ...
Unpacking php8.1-gmp (8.1.2-1ubuntu2.11) ...
Setting up php8.1-bcmath (8.1.2-1ubuntu2.11) ...

Creating config file /etc/php/8.1/mods-available/bcmath.ini with new version
Setting up php8.1-gmp (8.1.2-1ubuntu2.11) ...

Creating config file /etc/php/8.1/mods-available/gmp.ini with new version
Processing triggers for libapache2-mod-php8.1 (8.1.2-1ubuntu2.11) ...
Processing triggers for php8.1-cli (8.1.2-1ubuntu2.11) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode 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.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Now restart Apache2 webserver to ensure these PHP changes take effect.

sudo systemctl restart apache2

Run the following to check for all PHP Modules installed and available to be enabled by apache2 restart. This option -m, however, may not indicate which modules are enabled.

php -m
install_php_8_1_modules_gmp_bc_math_nextcloud_27_0.1687629575.txt.gz · Last modified: 2023/06/24 17:59 by wikiadmin