Hi There when i chose php 8.1 i have this message ‘’ Cannot fetch details. Error message: PHP matching query does not exist.’’
I have tried installing php 8.1
‘yum -y install lsphp81
yum -y install lsphp81-mysqlnd lsphp81-gd lsphp81-process lsphp81-mbstring lsphp81-xml lsphp81-zip lsphp81-pdo lsphp81-imap lsphp81-soap lsphp81-bcmath’’
but yet i see it’s active but on cyberpanel it shows ‘’’ Cannot fetch details. Error message: PHP matching query does not exist.’’’ please check screenshot

make sure to update your cyberpanel because php8.1 has been already added to cyberpanel.

I have same problem on all of my servers when try install 8.1 extensions on cyberpanel. One of servers are fresh 7 day old server.


fresh install

This section in particular is broken in cyberpanel for php8.1 as it fails to list the php8.1 extensions installed. but you can select php8.1 and it will work. I am using it in my wordpress sites and works perfect.

Haven’t try since 8.1 came but that time redis was not working.
Does redis work now out of box or need manual install extension?

If it’s broken why it’s like that with no update
for myself, i need gzip, Imagick extension for PHP 8.1 but i can’t enable it because as you said ‘’ broken’’
@usmannasir Hopefully you can look into this

No, its not broken that way. Every modules are pre-activated whichever is installed in server. Its just that the controlling part interface (disabling and enabling modules ) is broken

You just need to select the php8.1 inside website manage option in cyberpanel and it will work. Have a try.

I’m already using PHP 8.1 on my website but I can’t edit the extension because it’s broken like I said the gzip, Imagick extension for PHP 8.1, and my website needs that extension

Make sure gzip and imagick extensions are installed on your server. PHP8.1 was not meant to be officially available for cyberpanel as its very new. Its only upon request, the developers added the support but it may have such minor issues. You better shift to PHP8.0 until PHP8.1 is perfectly fine. And php8 to php8.1 doesnt have any difference in performance.

1 Like

You can ensure that you have all the 8.1 modules installed by using this command in cli

sudo apt install lsphp81*

i did… just like mr. usman told me before ( in other post) but when i try to click that option
bang… same like screenshoot

1 Like

Yes, as people have described, 8.1 doesn’t work with Cyberpanel right now but it should work with your websites.


yeap… … … … i just giving info that apt install lsphp81* not solved the problem. that mention before.

actually i’m running at 8.0 … look like good and little faster

Same for me. I can’t modify PHP 8.1

cp -f /usr/local/lsws/lsphp81/bin/php /usr/bin/

this works for me to change to 8.1

Your best option to get php 8.1 working is to compile it. My example uses Centos 7
Cyberpanel has php 8.0 and php 8.1 but some extensions are missing and cannot be installe.

You first have to update this file: /usr/local/lsws/admin/html/lib/util/build_php/BuildConfig.php
You want to do 2 things.
My example is using the latest version of php 8.1 but you can always add more versions as they come out

  1. Add php 8.1.9 to the list of PHP_VERSION

  2. Update LSAPI to the latest version which supports php 8
    case self::LSAPI_VERSION: return ‘8.0.1’;

Next you want to go to (
From here select php 8.1.9 and click next
Set install path to: /usr/local/lsws/lsphp81 so it will replace the current php 8.1
Set Configure Parameters *. I used the following:

–with-mysqli --with-zlib --enable-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-pdo-mysql --enable-ftp --with-zip --with-curl --enable-soap --enable-xml --with-openssl --enable-bcmath --with-kerberos --with-system-ciphers --with-bz2 --enable-calendar --enable-dba --with-enchant --enable-exif --with-gettext --with-gmp --with-mhash --with-kerberos --enable-intl --with-ldap --with-libdir=lib64 --with-ldap-sasl --with-mysql-sock --enable-pcntl --with-pdo-mysql --with-pdo-pgsql --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xsl --enable-mysqlnd --with-pear

Click next, let the script run till you see “Done” then click next again

You will run into a number of errors because of dependencies but they are simple to solve as there are most likely missing devels in your system. To solve this, install those missing devels before going on to the next step.

yum install -y postgresql-devel openldap-devel gmp-devel enchant-devel bzip2-devel oniguruma-devel libxml2-devel sqlite3-devel icu libicu-devel libxslt-devel libsodium libsodium-devel

Follow the instructions by running /usr/local/lsws/phpbuild/

If you get any error you can do a search and install the devel and rerun the last script.
e.g. yum search oniguruma
The above will give a list of packages, from there select the devel and install
e.g. yum install -y oniguruma-devel

I now have php 8.1 running with all extensions that I require.

You may also need to make a few adjustments after:

  1. This is to ensure that lsphp and php use the same settings, which can be modified from cyberpanel’s user interface

mv /usr/local/lsws/lsphp81/lib/php.ini /usr/local/lsws/lsphp81/lib/php.ini.bak
ln -s /usr/local/lsws/lsphp81/etc/php.ini /usr/local/lsws/lsphp81/lib/php.ini

mv /usr/local/lsws/lsphp81/lib/php/extensions/no-debug-non-zts-20210902 /usr/local/lsws/lsphp81/lib/php/extensions/no-debug-non-zts-20210902.bak
ln -s /usr/local/lsws/lsphp81/lib64/php/modules /usr/local/lsws/lsphp81/lib/php/extensions/no-debug-non-zts-20210902

just ensure the symlinks are created

Removed the broken SQLite and fixed the install code :slight_smile:

By the way 8.1.10 released :slight_smile:

sudo yum install -y postgresql-devel openldap-devel gmp-devel enchant-devel bzip2-devel oniguruma-devel libxml2-devel sqlite-devel icu libicu-devel libxslt-devel libsodium libsodium-devel libzip-devel

How do you do these without getting " is not in the sudoers file." error.