Artur001
(Artur001)
November 1, 2017, 7:37pm
1
My main.yml
`
Введи- name: add php ppa
apt_repository: repo=‘ppa:ondrej/php’ state=present
Введите код.TASK [php : install php requirements for joomla] ******************************* failed: [joomla] (item=[u'php7.1-json', u'php7.1-xml', u'php7.1-mbstring', u'php7.1-intl', u'php7.1-apcache', u'php7.1-mysql', u'php7.1-pgsql']) => {"changed": false, "failed": true, "item": ["php7.1-json", "php7.1-xml", "php7.1-mbstring", "php7.1-intl", "php7.1-apcache", "php7.1-mysql", "php7.1-pgsql"], "msg": "No package matching 'php7.1-apcache' is available"} to retry, use: --limit @/home/artur/php-joomla-vm/provisioning/playbook.retry ..
What is it problem?
Artur001
(Artur001)
November 2, 2017, 7:42am
3
Thank you.
But problem stays.
TASK [php : install php requirements for joomla] ******************************* failed: [joomla] (item=[u'php7.1-json', u'php7.1-xml', u'php7.1-mbstring', u'php7.1-intl', u'php7.1-apache', u'php7.1-mysql', u'php7.1-pgsql']) => {"changed": false, "failed": true, "item": ["php7.1-json", "php7.1-xml", "php7.1-mbstring", "php7.1-intl", "php7.1-apache", "php7.1-mysql", "php7.1-pgsql"], "msg": "No package matching 'php7.1-apache' is available"} to retry, use: --limit @/home/artur/php-joomla-vm/provisioning/playbook.
There’s no package named php7.1-apcache in that ppa. correct the spelling.
Packages in that ppa which start with php7.1 are here http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/
-Toshio
Mehul_Ved
(Mehul Ved)
November 2, 2017, 12:24pm
6
I believe the package you’re looking for is php-opcache. It’s there in the ppa too. opcache is the object caching module in php - http://php.net/manual/en/intro.opcache.php
Artur001
(Artur001)
November 2, 2017, 3:02pm
7
This package is present:
`
~/Загрузки$ php -v
PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 27 2017 13:49:56) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.11-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
`
Artur001 [02.11.2017 16:02]:
This package is present:
~/Загрузки$ php -v
PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 27 2017 13:49:56
) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.11-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c)
1999-2017, by Zend Technologies
Following the error text you sent, you do not try to install
php7-opcache, but php7-apache.
- name: install php requirements for joomla
apt: name=php{{ php.version }}-{{ item }} state=present
with_items:
[...]
- apcache
[...]
this should read opcache then.
Artur001
(Artur001)
November 2, 2017, 5:12pm
9
You right!
I did not see message of Toshlo Kuratoml.