mapi problems with php5/php7 when upgrading to Debian Stretch and Kopano 8.7.1



  • We upgraded our Debian Jessie running Kopano 8.6.9 to Debian Stretch with Kopano 8.7.1. We now have imap running just fine, but z-push/webapp does not work, and we see this when trying to access webapp:
    Not Found: PHP mapi extension not found
    If you have upgraded Kopano Core, please restart Apache

    Kopano WebApp can’t start because of incompatible configuration.

    Please correct above errors, a good start is by checking your ‘/etc/php/7.0/apache2/php.ini’ file.

    You can disable this configuration check by editing the file ‘/usr/share/kopano-webapp/config.php’, but this is not recommended.

    Looks like php5-mapi was removed, but had not been purged:
    dpkg -l|grep php5-mapi
    rc php5-mapi 8.6.9.0-0+24.1

    Doing a
    aptitude purge php5-mapi
    and then a
    apt-get install --reinstall php7-mapi (not sure if this was necessary)
    and then apache restart solved this problem.

    I can’t see anything related to this in the releasenotes/changelog, thought you might like to know, maybe someone else also bumps into this.



  • Hi,

    I do the upgrade with this steps:

    1. backup mysql, Kopano, WebApp and Z-Push configuration
    2. uninstall Z-Push, WebApp und Kopano
    3. uninstall and purge php5 and mysql
    4. upgrade OS to Stretch
    5. install php7 and mariadb
    6. copy config files from step 1. back to /etc/…
    7. install Kopano, WebApp and Z-Push
    8. migrate any changes in config files

    This steps works as expected.


Log in to reply