Enable IMAP extension in PHP7 on Server 5.6

I'm running Server 5.6 on High Sierra and I need to enable the IMAP extension in PHP 7.1.16. It doesn't seem to be as simple as removing the ';' against imap in /etc/php.ini as the source wasn't complied with the IMAP option. Can anyone give me some pointers on creating a stable version of PHP 7 with IMAP (and any other extensions I discover I need) that won't have to be rebuilt every time that Apple updates the Server app.

Mac mini, macOS High Sierra (10.13.6), Server 5.6

Posted on Jul 11, 2018 7:17 AM

Reply
1 reply

Jul 11, 2018 11:23 AM in response to rvwilliams88

Probably not the answer you want, but you're not going to need to worry about updates to Server.app. This because Server.app support for the Apache web server, SMTP, IMAP and various other services is being deprecated.


Which means it's probably better to figure out what network server configuration and software you're going to replace it with, and sort out how to configure PHP in that environment. Whether the replacement network services will be running on macOS or some other platform, for instance.


As for alternate versions of PHP? Some related reading, and some more related reading...


I'd be very careful not to expose that PHP to anything other than your local app or to your web app. Don't expose the updated PHP to other parts of Server.app, as that can sometimes get things badly tangled.


You're quite right, too. Years ago, I had a different version of PHP installed for the particular web application, and it was a hassle. Upgrades did tend to cause problems. And exposing the updated version of PHP to the server definitely cratered some of the network services.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Enable IMAP extension in PHP7 on Server 5.6

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.