Yesterday, I set the website's PHP version to 8.4 and got this error when I tested the mailbox: Failed, IMAP is not compiled with PHP.
So I switched back to 8.3 to keep it working.
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by Podobin on Monday, 16 February 2026 11:55 UTC
Yesterday, I set the website's PHP version to 8.4 and got this error when I tested the mailbox: Failed, IMAP is not compiled with PHP.
So I switched back to 8.3 to keep it working.
I tested the mailbox-publishing connection test in a PHP 8.4.17 environment and can confirm that it works.
As the IMAP extension in PHP 8.4 was moved to PECL (removed from bundled extensions), on your host the script is working correctly, detecting that IMAP isn't available.
So, on your host, IMAP extension simply hasn't been installed in your PHP 8.4 setup.
You need to ask your hosting provider to install the php-imap PECL extension for PHP 8.4.
Depending on the host:
cPanel: PHP Selector → Extensions → enable imap
Plesk: PHP Settings → enable imap
CLI/dedicated: pecl install imap or apt install php8.4-imap
The code itself is fine, it is an issue with imap on your hosting for PHP 8.4.x.
Regards, Pascal
Ah, okay, I didn't know that. I'll just send them a message then.
Thnx for the info