after php version upgrade php 5.4 to 5.6 showing bellow error. how can i do this in this situation

IMAP doesn't exist. PHP must be compiled with IMAP enabled.

    ntozier php upgrade done to 5.6 but still getting bellow error

    POP3 connection broken in response

    php upgrade done to 5.6 but still getting bellow error

    POP3 connection broken in response

    ntozier php upgrade and imap installation done but still getting bellow error

    POP3 connection broken in response

      You install PHP-imap usually by doing something like:

      apt-get install php-imap

      Doing so should install imap and make it available to PHP. It sounds like you have installed IMAP not the PHP IMAP package needed.

        Sorry I do not follow. You are all set, but want to know what to do in the current situation?
        Those two statements seem to contradict each other.

        Please provide the full error.
        Anything in PHP error logs?
        Is this self hosted or do you have a hosting account with a hosting company?

        and another screeshot

        and getting bellow log when accessing

        [root@localhost api]# tail -f /var/log/httpd/error_log
        [Sun Mar 10 14:15:28.552681 2019] [auth_digest:notice] [pid 2434] AH01757: generating secret for digest authentication ...
        [Sun Mar 10 14:15:28.553642 2019] [lbmethod_heartbeat:notice] [pid 2434] AH02282: No slotmem from mod_heartmonitor
        [Sun Mar 10 14:15:28.576409 2019] [mpm_prefork:notice] [pid 2434] AH00163: Apache/2.4.6 (CentOS) PHP/5.6.40 configured -- resuming normal operations
        [Sun Mar 10 14:15:28.576442 2019] [core:notice] [pid 2434] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
        [Sun Mar 10 14:22:57.584160 2019] [mpm_prefork:notice] [pid 2434] AH00170: caught SIGWINCH, shutting down gracefully
        [Sun Mar 10 14:22:58.699499 2019] [suexec:notice] [pid 2471] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
        [Sun Mar 10 14:22:58.722550 2019] [auth_digest:notice] [pid 2471] AH01757: generating secret for digest authentication ...
        [Sun Mar 10 14:22:58.723370 2019] [lbmethod_heartbeat:notice] [pid 2471] AH02282: No slotmem from mod_heartmonitor
        [Sun Mar 10 14:22:58.746821 2019] [mpm_prefork:notice] [pid 2471] AH00163: Apache/2.4.6 (CentOS) PHP/5.6.40 configured -- resuming normal operations
        [Sun Mar 10 14:22:58.746862 2019] [core:notice] [pid 2471] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

        8 days later