The IMAP extension is missing from your PHP installation.

bigroll

New Member
i am using: ubuntu os with aaPanel, php version is 7.4 (installed extra extention imap - as attached photo)
In addition, I also installed imap using the console with the command: apt-get install php-imap
I still can't fix my problem despite restarting the webserver.
 

Attachments

  • Screenshot 2023-02-03 at 08.57.52.png
    Screenshot 2023-02-03 at 08.57.52.png
    346.8 KB · Views: 21
  • Screenshot 2023-02-03 at 09.02.40.png
    Screenshot 2023-02-03 at 09.02.40.png
    61.2 KB · Views: 21
@bigroll - from command line, if you run:
Code:
php -m | grep imap
what do you get?

I still can't fix my problem despite restarting the webserver.
If your PHP runs under FPM, you will need to restart PHP-FPM as well. Also, if you run multiple versions of PHP at the same time, make sure you did the change in the right place for the right site and PHP version.
 
when I run : "php -m | grep imap" in command line. Nothing shows up
I only use one version which is php7.4 and make sure to install the correct extention
I have also restarted php7.4 many times. But still not working :(Screenshot 2023-02-03 at 15.17.17.png
 
when I run : "php -m | grep imap" in command line. Nothing shows up
I only use one version which is php7.4 and make sure to install the correct extention
I have also restarted php7.4 many times. But still not working
Most probably you are getting that because you are install it for the default php version of your server which i don't think is used by your Mailwizz application. If you go to Backend->Miscellaneous->PHP Info, what version for PHP do you see both for web and CLI?
Also check this article: https://www.mailwizz.com/kb/the-imap-extension-is-missing-from-your-php-installation/
 
version of both is 7.4
I also tried running the command: "apt-get install php-imap" and it said the installation was successful. But still not working
 

Attachments

  • Screenshot 2023-02-03 at 15.56.30.png
    Screenshot 2023-02-03 at 15.56.30.png
    357.8 KB · Views: 13
  • Screenshot 2023-02-03 at 15.56.56.png
    Screenshot 2023-02-03 at 15.56.56.png
    138.3 KB · Views: 13
when I run : "php -m | grep imap" in command line. Nothing shows up
This means imap is not installed. Please restart your server and check again with that command line.

After restart if you have the same issue you can try these additional steps:
  1. Check the php.ini file: Make sure that the IMAP extension is enabled in the php.ini file. You can search for "extension=imap.so" in the file, and if it's commented out (with a semicolon), remove the semicolon to enable it.
  2. Locate the imap.so file: Make sure the imap.so file is present in the PHP extensions directory, which can be found by running "php -i | grep extension_dir".
  3. Check for dependencies: The IMAP extension may have dependencies on other libraries, such as libc-client, which must be installed on your system.
  4. Reinstall the IMAP extension: Try uninstalling and reinstalling the IMAP extension to see if it fixes the issue.
  5. Contact your hosting provider: If you are using a shared hosting environment, contact your hosting provider for assistance in installing the IMAP extension.
 
I checked in php.ini file. There's the line "extension=imap", I tried removing the semicolon but it still doesn't work
When I run "php -i | grep extension_dir", as attached photo
Can I create a support ticket?
I tried to look through what you said but I'm really not good at this
 

Attachments

  • Screenshot 2023-02-04 at 09.17.41.png
    Screenshot 2023-02-04 at 09.17.41.png
    57.2 KB · Views: 20
  • Screenshot 2023-02-04 at 09.24.23.png
    Screenshot 2023-02-04 at 09.24.23.png
    45.1 KB · Views: 18
  • Screenshot 2023-02-04 at 09.24.30.png
    Screenshot 2023-02-04 at 09.24.30.png
    73.9 KB · Views: 18
  • Screenshot 2023-02-04 at 09.24.36.png
    Screenshot 2023-02-04 at 09.24.36.png
    33.1 KB · Views: 17
Last edited:
I already fixed it.
For aapanel users, please disable imap_open
I followed and fixed the error
Thanks everyone

Screenshot 2023-02-04 at 10.00.44.png
 
Back
Top