Remo, Eric, thank you.

Installing 1.4 seems to take me into dependency hell. This is what I have so far in ansible:

- name: add REMI test repo
  become: yes
  when: qmt_php7_version != 0
  yum:
    name: http://rpms.remirepo.net/enterprise/remi-release-7.rpm
    state: present

- name: install dependencies
  become: yes
  when: qmt_php7_version != 0
  yum:
    name:
      - php-pear
      - php-pear-Auth-SASL
      - php-pear-crypt-gpg
      - php-pear-Mail-Mime
      - php-pear-Net-IDNA2
      - php-pear-Net-LDAP2
      - php-pear-Net-SMTP
      - php-pear-Net-Sieve
      - php-pear-Net-Socket
      - php-pecl-zip
    enablerepo: remi
    state: latest

- name: install roundcube and dependencies - PHP 7
  become: yes
  when: qmt_php7_version != 0
  yum:
    name:
      - roundcubemail
    enablerepo: remi-test
    state: latest
    update_cache: yes

Unfortunately, it breaks when it tries to install 'php-pecl-zip', with:

Error: Package: php-pecl-zip-1.14.0-0.2.20170301dev.el7.remi.5.6.x86_64 (remi-test)
           Requires: php(api) = 20131106-64
           Installed: php-common-7.3.7-3.el7.remi.x86_64 (@remi-php73)
               php(api) = 20180731-64
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php(api) = 20100412-64
Error: Package: php-pecl-zip-1.14.0-0.2.20170301dev.el7.remi.5.6.x86_64 (remi-test)
           Requires: php(zend-abi) = 20131226-64
           Installed: php-common-7.3.7-3.el7.remi.x86_64 (@remi-php73)
               php(zend-abi) = 20180731-64
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php(zend-abi) = 20100525-64

As far as I can tell, php-pecl-zip is requiring older versions of php(api) and php(zend-abi).

Did you encounter this problem, and do you know how I can work around it?

Thanks for any help that you can give me,

Angus


r...@mattei.org wrote on 7/14/19 3:18 PM:
And I also have the 1.4 version

Il giorno 14 lug 2019, alle ore 12:09, r...@mattei.org <r...@mattei.org ha 
scritto:

I run php 7 and roundcube

Il giorno 14 lug 2019, alle ore 10:52, Eric Broch <ebr...@whitehorsetc.com> ha 
scritto:

Have a look at this thread:

https://www.mail-archive.com/qmailtoaster-list@qmailtoaster.com/msg41927.html



On 7/14/2019 11:29 AM, Angus McIntyre wrote:
Has anyone been able to successfully run Roundcube with PHP7 on a QMT install?

I'm following -- more or less -- the install guidelines given on the 
qmailtoaster site.

When I have PHP 5.4 installed, I am able to log in and use Roundcube without 
problems.

When I have PHP7.2 or 7.3 installed, attempts to log in fail with the error 
message 'Invalid request! No data was saved.'

Does this sound familiar to anyone and, if so, how did you solve it?

Thanks,

Angus




TECHNICAL DETAILS

Checking the logs at '/var/log/roundcubemail/errors' shows a slew of warning 
messages, most of which read:

    PHP Warning:  count(): Parameter must be an array or an object that 
implements Countable in 
/usr/share/roundcubemail/program/lib/Roundcube/rcube_plugin_api.php on line 406

Mixed in with those is a single instance of:

    PHP Warning:  session_start(): Failed to read session data: user (path: 
/var/lib/php/session) in 
/usr/share/roundcubemail/program/lib/Roundcube/rcube_session.php on line 117

It looks to me as if Roundcube is trying and failing to find a plugin (or 
anything else) that implements the 'authenticate' hook. It's possible that 
that's not critical, and that it falls back to some core authentication method 
-- which is then failing because of a session-related issue.

Some other data points:

The directory '/var/lib/php/session' exists, and can be read and written by the 
'apache' user.

The database parameters in '/etc/roundcubemail/config.inc.php' are able to 
connect to the database.

Session storage is set to 'db':

  $config['session_storage'] = 'db'

Changing this to 'php' does not resolve the issue.

Rainloop and Squirrelmail both run without problems on this host. Squirrelmail 
creates session records in '/var/lib/php/session' successfully.

Roundcube version is 1.1.12, and configuration files are taken directly from 
the qmailtoaster.com site.




---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

Reply via email to