PHP Error Message When Running Yum Update On CentOS 7

Home » CentOS » PHP Error Message When Running Yum Update On CentOS 7
CentOS 1 Comment

Running yum update on a CentOS 7.9 server today I encountered the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library ‘imap.so’ (tried: /usr/lib64/php/modules/imap.so (/usr/lib64/php/modules/imap.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/imap.so.so (/usr/lib64/php/modules/imap.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

How do I handle this error?

Thank you.

One thought on - PHP Error Message When Running Yum Update On CentOS 7

  • Are you using the system default PHP?

    Running ‘yum provides “/usr/lib64/php/modules/imap.so”‘ will tell you which package includes that file; looks like it would be part of php-imap from EPEL.

    You might have an orphaned php.ini file in /etc/php.d but the module was uninstalled or incompletely installed at some point?

    —-
    Nels Lindquist