how to install redis extension for multi php ver on ubuntu 18.04?

Discussion in 'Installation/Configuration' started by skysky, Mar 12, 2024.

  1. skysky

    skysky Member

    Hi
    I am running the perfect server installation of ispconfig + nginx + ubuntu 18.04, and I am running multi php ver 7.2, 7.4, 8.1
    when I tried to install redis extension for all php ver, only php7.2 works. I could not install redis extension for php 7.4 and 8.1 ver.

    root@ECS1:/# sudo apt install php8.1-redis
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package php8.1-redis
    E: Couldn't find any package by glob 'php8.1-redis'
    E: Couldn't find any package by regex 'php8.1-redis'

    root@ECS1:/# sudo apt install php7.4-redis
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package php7.4-redis
    E: Couldn't find any package by glob 'php7.4-redis'
    E: Couldn't find any package by regex 'php7.4-redis'

    Google and found below discussion saying that I need to upgrade to Ubuntu 20.04.6 LTS in order to achieve these. would it break my existing ISPconfig setup? it seems a very high risk upgrade.
    https://forum.hestiacp.com/t/problem-install-redis-module-php/11845/5

    thanks
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    You need to use a repository that has the packages in question or install them manually. I reccomend using https://deb.sury.org/
     
  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    Well i forget that this repo does not provide support for 18.04 anymore.
    Well you should consider upgrading anyways.
     

Share This Page