Using Afterlogic Webmail Lite with Mail in a box

You can manually enable PHP on MIAB (Search forums).

Or spin up a webserver and install after logic on it.

Or you could go an easier route and use Rainloop with Nextcloud: [HOWTO][UNSUPPORTED] RainLoop in Nextcloud (MIAB v0.26+ ONLY)