Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    PHP-MAPI extension is not available

    Synchronising (mobile) devices via Z-Push
    3
    6
    1522
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • acha
      acha last edited by

      Hi,

      We are running Z-Push 2.4 and Kopano 8.5 on a CentOS 7 server.

      When I try to run a z-push-admin (for instance z-push-admin -a lastsync) I get an error saying:
      FatalMisconfigurationException: PHP-MAPI extension is not available

      php-mapi-8.5 is installed.
      Can somebody tell what I’m missing here

      Kind regards,
      Cor van den Berghe.

      1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano last edited by

        it seems php-cli is using a different php version than the webserver is using (assuming of course there you don’t get an error because of missing php-mapi)

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • acha
          acha last edited by

          We are using the PHP 5.6 software collection, can you tell me how I can tell the webserver which php version to use

          Regards,
          Cor.

          1 Reply Last reply Reply Quote 0
          • acha
            acha last edited by

            Never mind, I fixed it. I ran this command (again) to enable PHP 5.6
            scl enable rh-php56-php

            Thanks for your help.

            Kind regards,
            Cor.

            1 Reply Last reply Reply Quote 0
            • Coffee_is_life
              Coffee_is_life last edited by Coffee_is_life

              Hello @acha,

              this command enables php56 for the session till next reboot.

              i recommend to use

              source /opt/rh/rh-php56/enable
              

              this should create a system default to this version.

              coffee_is_life

              acha 1 Reply Last reply Reply Quote 0
              • acha
                acha @Coffee_is_life last edited by

                @coffee_is_life

                A bit late, but thanks for your suggestion.

                Cor.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post