Page 1 of 1

Enablig IMAP AFTER hesk installation

Posted: Mon Mar 10, 2025 11:23 am
by Orazio
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hi, I wish to setup IMAP protocol for emails fetching. Since IMAP is by default disabled in php I allowed the relative extension. In phpinfo() I see IMAP enabled, but when I reload the hesk administration panel the IMAP is still not available. Any advice about that?
Regards
Orazio

Re: Enablig IMAP AFTER hesk installation

Posted: Mon Mar 10, 2025 11:52 am
by Klemen
There is nothing in Hesk that needs to be done.

Hesk checks if the "imap_open" PHP function exists. If it does, IMAP is enabled. If it doesn't exist, IMAP isn't available.

If you are 101% sure your IMAP is enabled, maybe you have Hesk output cached on the server-side; turn off any server-side caching for Hesk and try again.

P.s.: you can save this as "test.php" and run it on your server to check if imap is available:

Code: Select all

<?php
if (function_exists('imap_open')) {
    echo "IMAP enabled";
} else {
    echo "IMAP not available";
}

Re: Enablig IMAP AFTER hesk installation

Posted: Mon Mar 10, 2025 3:16 pm
by Orazio
Hi,
I did run "test.php" and it says "IMAP enabled", but hesk still says that IMAP support is not present.
I also got rid of any cache element related to site...

Re: Enablig IMAP AFTER hesk installation

Posted: Mon Mar 10, 2025 4:16 pm
by Klemen
Hesk uses the exact same check so something must be cached somewhere.

Re: Enablig IMAP AFTER hesk installation

Posted: Mon Mar 10, 2025 4:31 pm
by Orazio
Ok, will check it.
Regards
Orazio

Re: Enablig IMAP AFTER hesk installation

Posted: Wed Mar 12, 2025 8:33 am
by Orazio
The only solution which worked has been remove hesk and install it again.
At that point the script recognize imap support in php and allows the relative settings.

Regards
Orazio

Re: Enablig IMAP AFTER hesk installation

Posted: Wed Mar 12, 2025 8:49 am
by Klemen
Glad to hear that worked for you. It shows the problem was cached files server-side because nothing has changed in the code when you installed the new copy of Hesk.