Problem install redis module php

I’m trying to install php8.0-redis but I’m not succeeding.

Yes I was able to install php-redis but this only shows version 7.2 of php

How can I make it appear in the version I want? (8.0)

If I run:
apt list --installed | grep php

It shows me the following:

hestia-php/bionic,now 8.2.5 amd64 [installed]
php-common/now all [installed,local]
php-igbinary/bionic,now 2.0.5-1build1 amd64 [installed]
php-memcache/bionic,now 3.0.9~20160311.4991c2f-5build2 amd64 [installed]
php-memcached/bionic,now 3.0.1+2.2.0-1build2 amd64 [installed]
php-msgpack/bionic,now 2.0.2+0.5.7-2build1 amd64 [installed,automatic]
php-redis/bionic,now 3.1.6-1build1 amd64 [installed]
php5.6-bcmath/now amd64 [installed,local]
php5.6-bz2/now amd64 [installed,local]
php5.6-cli/now amd64 [installed,local]
php5.6-common/now amd64 [installed,local]
php5.6-curl/now amd64 [installed,local]
php5.6-fpm/now amd64 [installed,local]
php5.6-gd/now amd64 [installed,local]
php5.6-imagick/now amd64 [installed,local]
php5.6-imap/now amd64 [installed,local]
php5.6-intl/now amd64 [installed,local]
php5.6-json/now amd64 [installed,local]
php5.6-ldap/now amd64 [installed,local]
php5.6-mbstring/now amd64 [installed,local]
php5.6-mcrypt/now amd64 [installed,local]
php5.6-mysql/now amd64 [installed,local]
php5.6-opcache/now amd64 [installed,local]
php5.6-pspell/now amd64 [installed,local]
php5.6-readline/now amd64 [installed,local]
php5.6-soap/now amd64 [installed,local]
php5.6-xml/now amd64 [installed,local]
php5.6-zip/now amd64 [installed,local]
php7.0-bcmath/now amd64 [installed,local]
php7.0-bz2/now amd64 [installed,local]
php7.0-cli/now amd64 [installed,local]
php7.0-common/now amd64 [installed,local]
php7.0-curl/now amd64 [installed,local]
php7.0-fpm/now amd64 [installed,local]
php7.0-gd/now amd64 [installed,local]
php7.0-imagick/now amd64 [installed,local]
php7.0-imap/now amd64 [installed,local]
php7.0-intl/now amd64 [installed,local]
php7.0-json/now amd64 [installed,local]
php7.0-ldap/now amd64 [installed,local]
php7.0-mbstring/now amd64 [installed,local]
php7.0-mcrypt/now amd64 [installed,local]
php7.0-mysql/now amd64 [installed,local]
php7.0-opcache/now amd64 [installed,local]
php7.0-pspell/now amd64 [installed,local]
php7.0-readline/now amd64 [installed,local]
php7.0-soap/now amd64 [installed,local]
php7.0-xml/now amd64 [installed,local]
php7.0-zip/now amd64 [installed,local]
php7.1-bcmath/now amd64 [installed,local]
php7.1-bz2/now amd64 [installed,local]
php7.1-cli/now amd64 [installed,local]
php7.1-common/now amd64 [installed,local]
php7.1-curl/now amd64 [installed,local]
php7.1-fpm/now amd64 [installed,local]
php7.1-gd/now amd64 [installed,local]
php7.1-imagick/now amd64 [installed,local]
php7.1-imap/now amd64 [installed,local]
php7.1-intl/now amd64 [installed,local]
php7.1-json/now amd64 [installed,local]
php7.1-ldap/now amd64 [installed,local]
php7.1-mbstring/now amd64 [installed,local]
php7.1-mcrypt/now amd64 [installed,local]
php7.1-mysql/now amd64 [installed,local]
php7.1-opcache/now amd64 [installed,local]
php7.1-pspell/now amd64 [installed,local]
php7.1-readline/now amd64 [installed,local]
php7.1-soap/now amd64 [installed,local]
php7.1-xml/now amd64 [installed,local]
php7.1-zip/now amd64 [installed,local]
php7.2-bcmath/now amd64 [installed,local]
php7.2-bz2/now amd64 [installed,local]
php7.2-cli/now amd64 [installed,local]
php7.2-common/now amd64 [installed,local]
php7.2-curl/now amd64 [installed,local]
php7.2-fpm/now amd64 [installed,local]
php7.2-gd/now amd64 [installed,local]
php7.2-imagick/now amd64 [installed,local]
php7.2-imap/now amd64 [installed,local]
php7.2-intl/now amd64 [installed,local]
php7.2-json/now amd64 [installed,local]
php7.2-ldap/now amd64 [installed,local]
php7.2-mbstring/now amd64 [installed,local]
php7.2-mysql/now amd64 [installed,local]
php7.2-opcache/now amd64 [installed,local]
php7.2-pspell/now amd64 [installed,local]
php7.2-readline/now amd64 [installed,local]
php7.2-soap/now amd64 [installed,local]
php7.2-xml/now amd64 [installed,local]
php7.2-zip/now amd64 [installed,local]
php7.3-bcmath/now amd64 [installed,local]
php7.3-bz2/now amd64 [installed,local]
php7.3-cli/now amd64 [installed,local]
php7.3-common/now amd64 [installed,local]
php7.3-curl/now amd64 [installed,local]
php7.3-fpm/now amd64 [installed,local]
php7.3-gd/now amd64 [installed,local]
php7.3-imagick/now amd64 [installed,local]
php7.3-imap/now amd64 [installed,local]
php7.3-intl/now amd64 [installed,local]
php7.3-json/now amd64 [installed,local]
php7.3-ldap/now amd64 [installed,local]
php7.3-mbstring/now amd64 [installed,local]
php7.3-mysql/now amd64 [installed,local]
php7.3-opcache/now amd64 [installed,local]
php7.3-pspell/now amd64 [installed,local]
php7.3-readline/now amd64 [installed,local]
php7.3-soap/now amd64 [installed,local]
php7.3-xml/now amd64 [installed,local]
php7.3-zip/now amd64 [installed,local]
php7.4-bcmath/now amd64 [installed,local]
php7.4-bz2/now amd64 [installed,local]
php7.4-cli/now amd64 [installed,local]
php7.4-common/now amd64 [installed,local]
php7.4-curl/now amd64 [installed,local]
php7.4-fpm/now amd64 [installed,local]
php7.4-gd/now amd64 [installed,local]
php7.4-imagick/now amd64 [installed,local]
php7.4-imap/now amd64 [installed,local]
php7.4-intl/now amd64 [installed,local]
php7.4-json/now amd64 [installed,local]
php7.4-ldap/now amd64 [installed,local]
php7.4-mbstring/now amd64 [installed,local]
php7.4-mysql/now amd64 [installed,local]
php7.4-opcache/now amd64 [installed,local]
php7.4-pspell/now amd64 [installed,local]
php7.4-readline/now amd64 [installed,local]
php7.4-soap/now amd64 [installed,local]
php7.4-xml/now amd64 [installed,local]
php7.4-zip/now amd64 [installed,local]
php8.0/now all [installed,local]
php8.0-apcu/now amd64 [installed,local]
php8.0-bcmath/now amd64 [installed,local]
php8.0-bz2/now amd64 [installed,local]
php8.0-cli/now amd64 [installed,local]
php8.0-common/now amd64 [installed,local]
php8.0-curl/now amd64 [installed,local]
php8.0-fpm/now amd64 [installed,local]
php8.0-gd/now amd64 [installed,local]
php8.0-imagick/now amd64 [installed,local]
php8.0-imap/now amd64 [installed,local]
php8.0-intl/now amd64 [installed,local]
php8.0-ldap/now amd64 [installed,local]
php8.0-mbstring/now amd64 [installed,local]
php8.0-mysql/now amd64 [installed,local]
php8.0-opcache/now amd64 [installed,local]
php8.0-pspell/now amd64 [installed,local]
php8.0-readline/now amd64 [installed,local]
php8.0-soap/now amd64 [installed,local]
php8.0-xml/now amd64 [installed,local]
php8.0-zip/now amd64 [installed,local]
php8.1-bcmath/now amd64 [installed,local]
php8.1-bz2/now amd64 [installed,local]
php8.1-cli/now amd64 [installed,local]
php8.1-common/now amd64 [installed,local]
php8.1-curl/now amd64 [installed,local]
php8.1-fpm/now amd64 [installed,local]
php8.1-gd/now amd64 [installed,local]
php8.1-imagick/now amd64 [installed,local]
php8.1-imap/now amd64 [installed,local]
php8.1-intl/now amd64 [installed,local]
php8.1-ldap/now amd64 [installed,local]
php8.1-mbstring/now amd64 [installed,local]
php8.1-mysql/now amd64 [installed,local]
php8.1-opcache/now amd64 [installed,local]
php8.1-pspell/now amd64 [installed,local]
php8.1-readline/now amd64 [installed,local]
php8.1-soap/now amd64 [installed,local]
php8.1-xml/now amd64 [installed,local]
php8.1-zip/now amd64 [installed,local]

Federico Mazzei.

Hello sir! Did you try something like this?
sudo apt install php8.0-redis

Yes and the answer to that is:

~# sudo apt install php8.0-redis
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package php8.0-redis
E: Couldn’t find any package by glob ‘php8.0-redis’
E: Couldn’t find any package by regex ‘php8.0-redis’

thanks for your reply


Please read:

You have 2 options:

Update to 20.04 or 22.04 or pay a lot via PHP LTS by Freexian | Freexian

Thanks for your quick answer.
I updated to Ubuntu to 20.04, but I still can’t install php8.0-redis tells me this:

Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 4.15.0 x86_64)


i don’t know why.
Once again, thank you for your prompt response.

Go to


And update every from:

For example:

deb bionic main


deb focal main

This will make sure it uses the correct repo

Also make sure to update exim4 config if you use email :slight_smile:


Thanks for your answer.
I’m going to mark it as a solution but I want to add that when doing this:

$ sudo apt update
$ sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
$ sudo add-apt-repository ppa:ondrej/php

Just there, I was able to update the repositories.

Once again, Thanks at all at everyone.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.