akondas / ansible-role-php7

Ansible Role - PHP 7
https://galaxy.ansible.com/itcraftsmanpl/php7/
MIT License
40 stars 45 forks source link

No package matching 'php7.1-common' is available #20

Open chaintng opened 7 years ago

chaintng commented 7 years ago

I have got following error when i tried to run ansible playbook

TASK [itcraftsmanpl.php7 : Install PHP Packages] ***************************************************************************************************************
failed: [10.240.0.22] (item=[u'php7.1-common', u'php7.1-cli', u'php7.1-intl', u'php7.1-curl', u'php7.1-cgi', u'php7.1-fpm', u'php7.1-mysql', u'php7.1-gd', u'php7.1-mcrypt', u'php7.1-mbstring']) => {"failed": true, "item": ["php7.1-common", "php7.1-cli", "php7.1-intl", "php7.1-curl", "php7.1-cgi", "php7.1-fpm", "php7.1-mysql", "php7.1-gd", "php7.1-mcrypt", "php7.1-mbstring"], "msg": "No package matching 'php7.1-common' is available"}
    to retry, use: --limit @/Users/por/HotelQuickly/vm-nginx-php7-ihubxml/ihubxml-nginx-php7.retry

I will investigate and propose solution soon.

nlevee commented 7 years ago

on Debian Jessie, Dotdeb is no longer maintain for php 7.1 (https://www.dotdeb.org/2017/01/27/php-7-1-dotdeb/)

The task "Add repository for Debian" must be changed

Canadadry commented 7 years ago

I found this procedure which seems to work.

apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt-get update
apt-get install php7.1

I have to investigate more about the need of all those packages