Redis - official way of installing and configuring in Virtualmin

Thanks Joe. Could you please clarify if installing packages NOT through Virtualmin will still keep it possible to backup/restore server configuration through Virtualmin? There might be lack of understanding here of how free I am to install various packages and modules manually in command line in a way that keeps Virtualmin happy and functional.

For instance, I just installed the latest Redis as per their documentation:

sudo add-apt-repository ppa:redislabs/redis
sudo apt-get update
sudo apt-get install redis

I now wonder what would be the best way to install phpredis php extension.

I’m used to managing servers from command line, but in this particular case, I’m helping a client of mine who prefers to have “some” control over the server from a UI, hence using Virtualmin.

I’m not sure how far I can go by tuning the server manually from command line while keeping my changes compatible to and manageable by Virtualmin. Your advice is appreciated.


To make it even clearer, my Redis version on the server is now v=6.2.1.

However, when I run apt-cache policy php-redis, I get this:

php-redis:
  Installed: (none)
  Candidate: 5.1.1+4.3.0-1
  Version table:
     5.1.1+4.3.0-1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

which makes me think installing php-redis this way is a bad idea because it will want Redis version 5.1.1 while I just installed version 6.x. Now, if I start installing custom php modules or even building them from source, how will it affect Virtualmin? I’m a bit lost here.


UPD. Also, what about Pecl packages. Is it a good idea to install from command line like e.g. pecl install redis ?