Install Php extensions on version 8.1

hello everyone,
i need help install
this php extensions on php 8.1

  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
    how should i do that with cyberPanel?
    thank you help.
1 Like

Happy New Year @Barak

First, check if these extensions are there.
use the command:

yum list lsphp81* or apt list lsphp81*

1 Like

did you got it working i to need this extension

root@server:/usr/local/lsws/lsphp81/bin# pecl install bcmath
No releases available for package “pecl.php.net/bcmath
install failed

Take a look at Install PHP through repositories – OpenLiteSpeed,

Have you tried a basic install like

$ apt-get install lsphp81-bcmath || yum install lsphp81-bcmath || dnf install lsphp81-bcmath 

Kindly share what you have done so far to assist you better

root@server:/home/workdaytenant.com.net.ai/public_html# apt-get install lsphp81-bcmath || yum install lsphp81-bcmath || dnf install lsphp81-bcmath
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package lsphp81-bcmath

I want to assume this is ubuntu right ?

yes ubuntu

root@server:/home/workdaytenant.com.net.ai/public_html# apt install lsphp81 lsphp81-common lsphp81-bcmath lsphp81-gd lsphp81-intl lsphp81-mbstring lsphp81-mysqlnd lsphp81-opcache lsphp81-pdo lsphp81-soap lsphp81-sodium lsphp81-xml lsphp81-zip
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package lsphp81-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package lsphp81-bcmath
E: Package ‘lsphp81-gd’ has no installation candidate
E: Unable to locate package lsphp81-mbstring
E: Unable to locate package lsphp81-mysqlnd
E: Unable to locate package lsphp81-pdo
E: Unable to locate package lsphp81-soap
E: Unable to locate package lsphp81-sodium
E: Unable to locate package lsphp81-xml
E: Unable to locate package lsphp81-zip

Version 22 ?

root@server:/home/workdaytenant.com.net.ai/public_html# cat /etc/os-release
NAME=“Ubuntu”
VERSION=“20.04.6 LTS (Focal Fossa)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 20.04.6 LTS”
VERSION_ID=“20.04”
HOME_URL=“https://www.ubuntu.com/
SUPPORT_URL=“https://help.ubuntu.com/
BUG_REPORT_URL=“Bugs : Ubuntu
PRIVACY_POLICY_URL=“Data privacy | Ubuntu
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Try this Php 8.1 error in INSTALL PHP EXTENSIONS - #17 by quoviz_dev

all this commands you run, where specifically am i going to run them

I still don’t understand this processes very well, especially how to run them, the only php extension i need is the bcmath extension, can you walk me through the processes i will take to enable it on my cyber panel, in a way i will understand please if you don’t mind