Forums

tomas
tomas
Offline
Resolved
0 votes
Hi

I'm running an application using PHP Engines and PHP 7.1.

I'm getting the following error:

Uncaught Exception: Error: Your PHP was not compiled with IMAP support.
*nix users should recompile their PHP with the '--with-imap' flag;


How do I add IMAP Support to PHP 7.1 used via PHP Engines?

Thanks
Tuesday, March 05 2019, 01:34 PM
Share this post:

Accepted Answer

Tuesday, March 05 2019, 02:34 PM - #Permalink
Resolved
0 votes
It is not a "service httpd restart" but possibly:
service rh-php71-php-fpm restart
If it is anything. I thought PHP was an interpreted language so sis not need restarting
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    tomas
    tomas
    Offline
    Tuesday, March 05 2019, 02:56 PM - #Permalink
    Resolved
    0 votes
    Thanks a lot guys for replying.

    Sorted with:

    service rh-php71-php-fpm restart
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 05 2019, 02:37 PM - #Permalink
    Resolved
    0 votes
    Try installing sclo-php71-php-imap.x86_64 from the same? repository...
    The reply is currently minimized Show
  • Accepted Answer

    tomas
    tomas
    Offline
    Tuesday, March 05 2019, 02:20 PM - #Permalink
    Resolved
    0 votes
    Update:

    Used:

    yum search imap --enablerepo=*


    to find the package I needed.

    Then:

    yum list sclo-php71-php-imap.x86_64 --enablerepo=* --showduplicates


    to find repo.

    And finally to install:

    yum install sclo-php71-php-imap.x86_64 --enablerepo=centos-sclo-sclo-unverified


    After installing ran:

    /opt/rh/rh-php71/root/usr/bin/php -m


    to verify "IMAP" is loaded.

    And
    service httpd restart


    But still get in the application:

    Uncaught Exception: Error: Your PHP was not compiled with IMAP support.
    *nix users should recompile their PHP with the '--with-imap' flag;
    The reply is currently minimized Show
Your Reply