Ubuntu 19.04 Mapi issues



  • Ubuntu 18.04 Broken install, upgraded to 19.04, still running into mapi issues

    I attempted install earlier on 18.04, did the dpkg -i *.deb to realize how bad of an idea that was. I managed to remove all of the installed packages, realized I was better off on 19.04 and dist-upgraded.

    I installed from the default packages and I get the page loading indicating issues:

    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.3/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.
    
    dpkg -l|grep kopano
    rc  kopano-backup                         8.7.0-2ubuntu2                                           all          Complete and feature rich groupware solution - backup
    ii  kopano-common                         8.7.0-2ubuntu2                                           all          Complete and feature rich groupware solution - common files
    ii  kopano-contacts:amd64                 8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - contact mapi provider
    rc  kopano-dagent                         8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - delivery agent
    rc  kopano-gateway                        8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - POP3 and IMAP gateway
    rc  kopano-ical                           8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - CalDAV and CalDAV gateway
    ii  kopano-libs:amd64                     8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - Free/Busy library
    rc  kopano-monitor                        8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - quota monitor
    rc  kopano-search                         8.7.0-2ubuntu2                                           all          Complete and feature rich groupware solution - indexer
    ii  kopano-server                         8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - server component
    rc  kopano-spamd                          8.7.0-2ubuntu2                                           all          Complete and feature rich groupware solution - Spam daemon
    rc  kopano-spooler                        8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - email spooler
    rc  kopano-utils                          8.7.0-2ubuntu2                                           amd64        Complete and feature rich groupware solution - admin tools
    ii  kopano-webapp-apache2                 3.5.2+dfsg1-1                                            all          WebApp for the Kopano Collaboration Platform - Apache2
    ii  kopano-webapp-common                  3.5.2+dfsg1-1                                            all          WebApp for the Kopano Collaboration Platform - common files
    ii  z-push-kopano-gabsync                 2.4.5-2                                                  all          open source implementation of the ActiveSync protocol - Kopano GAB sync
    
     php -m
    PHP Warning:  PHP Startup: Unable to load dynamic library 'mapi.so' (tried: /usr/lib/php/20180731/mapi.so (/usr/lib/php/20180731/mapi.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/mapi.so.so (/usr/lib/php/20180731/mapi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    
    root@mail /etc/php # grep -iRl "mapi" /etc/php/
    /etc/php/7.3/mods-available/kopano.ini
    grep: /etc/php/7.3/cgi/conf.d/20-memcache.ini: No such file or directory
    /etc/php/7.3/cgi/conf.d/20-kopano.ini
    /etc/php/7.3/apache2/conf.d/20-kopano.ini
    grep: /etc/php/7.3/cli/conf.d/20-memcache.ini: No such file or directory
    /etc/php/7.3/cli/conf.d/20-kopano.ini
    /etc/php/7.3/fpm/conf.d/20-kopano.ini
    /etc/php/kopano.ini
    /etc/php/7.2/mods-available/kopano.ini
    /etc/php/7.2/mods-available/mapi.ini
    /etc/php/7.2/phpdbg/conf.d/20-kopano.ini
    /etc/php/7.2/cli/conf.d/20-kopano.ini
    
    root@mail /etc/php # cat /etc/php/7.3/mods-available/kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    ;include_path="${include_path}:/usr/lib/php/20170718"
    root@mail /etc/php # cat /etc/php/7.3/cgi/conf.d/20-kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    ;include_path="${include_path}:/usr/lib/php/20170718"
    root@mail /etc/php # cat /etc/php/7.3/apache2/conf.d/20-kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    ;include_path="${include_path}:/usr/lib/php/20170718"
    root@mail /etc/php # cat /etc/php/7.3/cli/conf.d/20-kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    ;include_path="${include_path}:/usr/lib/php/20170718"
    root@mail /etc/php # cat /etc/php/7.3/fpm/conf.d/20-kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    ;include_path="${include_path}:/usr/lib/php/20170718"
    root@mail /etc/php # cat /etc/php/7.2/mods-available/kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    include_path="${include_path}:/usr/lib/php/20170718"
    root@mail /etc/php # cat /etc/php/7.2/mods-available/mapi.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    include_path="${include_path}:/usr/share/kopano/php"
    root@mail /etc/php # cat /etc/php/7.2/phpdbg/conf.d/20-kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    include_path="${include_path}:/usr/lib/php/20170718"
    root@mail /etc/php # cat /etc/php/7.2/cli/conf.d/20-kopano.ini
    ; Enable MAPI extension module
    extension=mapi.so
    ; Adding path with php mapi classes to include dir
    ;include_path="${include_path}:/usr/share/kopano/php"
    include_path="${include_path}:/usr/lib/php/20170718"
    
    root@mail /etc/php # tree /usr/lib/php/
    /usr/lib/php/
    ├── 20131226
    │   └── imagick.so
    ├── 20151012
    │   └── imagick.so
    ├── 20160303
    │   └── imagick.so
    ├── 20170718
    │   ├── calendar.so
    │   ├── ctype.so
    │   ├── exif.so
    │   ├── fileinfo.so
    │   ├── ftp.so
    │   ├── gettext.so
    │   ├── iconv.so
    │   ├── imagick.so
    │   ├── json.so
    │   ├── mapi.so
    │   ├── memcache.so
    │   ├── opcache.so
    │   ├── pdo.so
    │   ├── phar.so
    │   ├── posix.so
    │   ├── readline.so
    │   ├── shmop.so
    │   ├── sockets.so
    │   ├── sysvmsg.so
    │   ├── sysvsem.so
    │   ├── sysvshm.so
    │   └── tokenizer.so
    ├── 20180731
    │   ├── bcmath.so
    │   ├── calendar.so
    │   ├── ctype.so
    │   ├── curl.so
    │   ├── dom.so
    │   ├── enchant.so
    │   ├── exif.so
    │   ├── fileinfo.so
    │   ├── ftp.so
    │   ├── gd.so
    │   ├── gettext.so
    │   ├── iconv.so
    │   ├── imagick.so
    │   ├── imap.so
    │   ├── intl.so
    │   ├── json.so
    │   ├── mbstring.so
    │   ├── mysqli.so
    │   ├── mysqlnd.so
    │   ├── opcache.so
    │   ├── pdo_mysql.so
    │   ├── pdo.so
    │   ├── pdo_sqlite.so
    │   ├── phar.so
    │   ├── posix.so
    │   ├── pspell.so
    │   ├── readline.so
    │   ├── recode.so
    │   ├── shmop.so
    │   ├── simplexml.so
    │   ├── soap.so
    │   ├── sockets.so
    │   ├── sqlite3.so
    │   ├── sysvmsg.so
    │   ├── sysvsem.so
    │   ├── sysvshm.so
    │   ├── tidy.so
    │   ├── tokenizer.so
    │   ├── wddx.so
    │   ├── xmlreader.so
    │   ├── xmlrpc.so
    │   ├── xml.so
    │   ├── xmlwriter.so
    │   ├── xsl.so
    │   └── zip.so
    ├── 7.2
    │   ├── php.ini-development
    │   ├── php.ini-production
    │   ├── php.ini-production.cli
    │   └── sapi
    │       ├── cli
    │       └── phpdbg
    ├── 7.3
    │   ├── php.ini-development
    │   ├── php.ini-production
    │   ├── php.ini-production.cli
    │   └── sapi
    │       ├── apache2
    │       ├── cgi
    │       ├── cli
    │       └── fpm
    ├── php7.3-fpm-reopenlogs
    ├── php-helper
    ├── php-maintscript-helper
    └── sessionclean
    

    I am really not sure how to proceed here. Any thoughts are welcome, I have read every thread relating to the other mapi issues with Ubuntu/Debian.



  • Spent all day on this, got it fixed, not happy with having to move back to php 7.2.

    Any good instructions on building the mapi extension from source?


  • Kopano

    Hi @resonancellc,

    with the packages we are providing we are always only supplying builds for the php version that comes by default with the distribution. In case you are using packages from the Ubuntu repositories I would recommend to contact their maintainers for issues installing them.

    Generally I would recommend to use our packages and stick with the distributions listed as supported in our manual.


Log in to reply