nuxsmin / sysPass

Systems Password Manager
https://syspass.org
GNU General Public License v3.0
975 stars 208 forks source link

PHP dependencies error on Debian9 #1673

Open Samvid95 opened 3 years ago

Samvid95 commented 3 years ago

Hey guys, I am trying to follow instruction for installation on Debian 9 from the docs page.

It says I have to install PHP with this packages sudo apt install locales apache2 libapache2-mod-php7.0 php-pear php7.0 php7.0-cgi php7.0-cli php7.0-common php7.0-fpm php7.0-gd php7.0-json php7.0-mysql php7.0-readline php7.0 curl php7.0-intl php7.0-ldap php7.0-mcrypt php7.0-xml php7.0-mbstring

But when I try install other dependencies with PHP composer I get PHP version errors.

  Problem 4
    - doctrine/collections is locked to version 1.6.7 and an update of this package was not requested.
    - doctrine/collections 1.6.7 requires php ^7.1.3 || ^8.0 -> your php version (7.0.33) does not satisfy that requirement.

So essentially I am facing PHP version issues. So how do I fix it?

kovacs-andras commented 3 years ago

I would try it with PHP 7.4 packages instead. That doc is not so "fresh" neither a complete step-by-step installation guide. You can get a few hints about the installation on Debian-based systems from the Dockerfile: https://github.com/nuxsmin/docker-syspass/blob/master/sysPass-php7.4/Dockerfile But I wouldn't copy all that jazz...