Adding imap module to php8.0 under AlmaLinux 9.4

Hello,

I am trying to setup the WordPress Plugin WP Mailster, under a new WordPress installation on an account I have created under Virtualmin (latest version 7.10).

It is telling me I need to install php-imap, but I have been unable to do this by running

yum install php-imap

where I get an error

Error: Unable to find a match: php-imap

Here is the output from php -m , which shows there is no imap module.

[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
ssh2
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

I’ve tried googling this, but I’m just getting more confused. Can anyone offer some advice on what I should be doing (or looking at).

Thanks

Paul

I have the same issue - somebody can have solution?
Thank you,
Have a great week!

Hmmm, are you sure it even exists now. doing

dnf list available |grep php-imap
dnf list available |grep php

both return noting for imap. Perhaps it is depreciated or replaced with something else?

AFAIK, there was no “php-imap” in CentOS 7 repository. Was it perhaps in EPEL?

I do know that some PHP modules have been replaced in “modern” versions. No idea whether imap is one of those. Look from upstream PHP what to use.

That obviously will not help with legacy PHP code that is hardcoded to use specific module – you would have to port the application.

You probably want to add the remi repository, I was following steps at Install Roundcube Webmail on CentOS 8/RHEL 8 with Apache/Nginx and although it suggests to add the remo repo via a direct dnf command, I recommend you use Remi’s wizard at Remi's RPM repository to get the latest and most correct setup for your system.

With this set up I could run ‘dnf install php-imap’ with no problems on my almalinux 9.4 system.