Menu

Zimbra->Logon(): FATAL: Zimbra Backend Requires PHP-CURL

Steffano
2019-10-24
2019-10-25
  • Steffano

    Steffano - 2019-10-24

    Hello.

    I have a fresh installation on Debian 10 (Buster).

    php -v
    PHP 7.3.9-1~deb10u1 (cli) (built: Sep 18 2019 10:33:23) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.9, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.9-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies

    Backend: I downloaded the content of the bramch z-push-2 from https://sourceforge.net/p/zimbrabackend/code/HEAD/tree/zimbra-backend/branches/z-push-2/

    ZPUSH_VERSION", "2.5.1+0-0")

    In /var/log/z-push/z-push-error.log I can see:

    Zimbra->Logon(): FATAL: Zimbra Backend Requires PHP-CURL

    In the file /var/log/z-push/z-push.log i have this lines related to the error:

    Zimbra->Logon(): FATAL: Zimbra Backend Requires PHP-CURL
    24/10/2019 15:37:15 [ 1016] [ INFO] [userNAme] AuthenticationRequiredException: Access denied. Username or password incorrect - code: 0 - file: /var/www/z-push/lib/request/requestprocessor.php:69
    24/10/2019 15:37:15 [ 1016] [ INFO] [userNAme] User-agent: 'Android-Mail/2019.09.15.270135155.release'
    24/10/2019 15:37:15 [ 1016] [FATAL] [userNAme] Exception: (AuthenticationRequiredException) - Access denied. Username or password incorrect
    24/10/2019 15:37:15 [ 1016] [ INFO] [userName] cmd='' memory='1.74 MiB/2.00 MiB' time='0.01s' devType='' devId='' getUser='userName' from='ipZPushServer' idle='0s' version='2.5.1+0-0' method='OP

    I post my php libraries installed:

    libapache2-mod-php5/now 5.6.36+dfsg-0+deb8u1 amd64 [instalado, local]
    php-cli/stable,now 2:7.3+69 all [instalado, automático]
    php-common/stable,now 2:69 all [instalado, automático]
    php-curl/stable,now 2:7.3+69 all [instalado]
    php-igbinary/stable,now 3.0.0-1 amd64 [instalado, automático]
    php-mbstring/stable,now 2:7.3+69 all [instalado, autodesinstalable]
    php-memcached/stable,now 3.1.3+2.2.0-1 amd64 [instalado, automático]
    php-msgpack/stable,now 2.0.3-1 amd64 [instalado, automático]
    php-pear/stable,now 1:1.10.6+submodules+notgz-1.1 all [instalado, automático]
    php-soap/stable,now 2:7.3+69 all [instalado]
    php-xml/stable,now 2:7.3+69 all [instalado, automático]
    php5-cli/now 5.6.36+dfsg-0+deb8u1 amd64 [instalado, local]
    php5-common/now 5.6.36+dfsg-0+deb8u1 amd64 [instalado, local]
    php5-json/now 1.3.6-1 amd64 [instalado, local]
    php5-readline/now 5.6.36+dfsg-0+deb8u1 amd64 [instalado, local]
    php5/now 5.6.36+dfsg-0+deb8u1 all [instalado, local]
    php7.0-cli/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.0-common/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.0-json/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.0-mbstring/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.0-opcache/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.0-readline/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.0-soap/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.0-xml/now 7.0.33-0+deb9u5 amd64 [instalado, local]
    php7.3-cli/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-common/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-curl/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-json/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-mbstring/stable,now 7.3.9-1~deb10u1 amd64 [instalado, autodesinstalable]
    php7.3-opcache/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-phpdbg/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-readline/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-soap/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]
    php7.3-xml/stable,now 7.3.9-1~deb10u1 amd64 [instalado, automático]

    Any Idea?

    Thank´s.

     

    Last edit: Steffano 2019-10-24
  • Maxxer

    Maxxer - 2019-10-25

    I see you have different php versions installed, but only 7.3 with curl extension. If your webserver (apache or nginx?) is using one of those two then the error is legit. Either fix you webserver to use php 7.3 (better solution) or install php-curl for php5 and php7.0

     
  • LiverpoolFCfan

    LiverpoolFCfan - 2019-10-25

    Thanks for responding @Maxxer.

    @Steffano If you turn logging up to WBXML level and check the Zimbra->Logon(): START Logon log messages they will report the version of PHP being used.

    For example

    25/10/2019 03:12:59 [28550] [DEBUG] Zimbra->Logon(): START Logon { username [myUser] - domain [] - password <hidden> - php [7.0.27] - zpzb [68.2] - ua [Android-SAMSUNG-SM-G950F/101.9] - as [14.0] }
    

    This log shows PHP 7.0.27 is being used here.

     
  • Steffano

    Steffano - 2019-10-25

    Thank´s @MAxxer and @LiverpoolFCfan.

    I turned WBXML and I found that the backend it was using php5. I applied the /usr/sbin/a2enmod php7.3 and I disabled the php5.

    And worked perfect!!

    Thankyou so much both!!!

     

Log in to post a comment.