M
M
MichaelAlex2020-01-02 13:43:29
PHP
MichaelAlex, 2020-01-02 13:43:29

Error installing YII2 advanced via composer on Ubuntu 18.04. What is the problem?

Installing a new project on yii2 advanced When I run composer update I get the following error:
[email protected]:/var/www/veloguru/advanced$ composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- codeception/verify 1.1.0 requires phpunit/phpunit > 6.0 -> satisfiable by phpunit/phpunit[6.0.1, ..., 6.5.14, 7.0.0, ..., 7.5.20, 8.0.0 , ..., 8.5.13, 9.0.0, ..., 9.5.0].
- codeception/verify 0.5.0 requires php 5.6.* -> your php version (7.2.24) does not satisfy that requirement.
- phpunit/phpunit[6.0.1, ..., 6.5.14, 7.0.0, ..., 7.5.20, 8.0.0, ..., 8.5.13] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- phpunit/phpunit[9.0.0, ..., 9.2.6] require php ^7.3 -> your php version (7.2.24) does not satisfy that requirement.
- phpunit/phpunit[9.3.0, ..., 9.3.8] require php ^7.3 || ^8.0 -> your php version (7.2.24) does not satisfy that requirement.
- phpunit/phpunit[9.3.9, ..., 9.5.0] require php >=7.3 -> your php version (7.2.24) does not satisfy that requirement.
- Root composer.json requires codeception/verify ~0.5.0 || ~1.1.0 -> satisfiable by codeception/verify[0.5.0, 1.1.0].

To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.2/cli/php.ini
- /etc/php/7.2/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.2/cli/conf.d/10-opcache. ini
- /etc/php/7.2/cli/conf.d/10-pdo.ini
- /etc/php/7.2/cli/conf.d/20-calendar.ini
- /etc/php/7.2/cli/conf .d/20-ctype.ini
- /etc/php/7.2/cli/conf.d/20-curl.ini
- /etc/php/7.2/cli/conf.d/20-exif.ini
- /etc/ php/7.2/cli/conf.d/20-fileinfo.ini
- /etc/php/7.2/cli/conf.d/20-ftp.ini
- /etc/php/7.2/cli/conf.d/20- gd.ini
- /etc/php/7.2/cli/conf.d/20-gettext.ini
- /etc/php/7.2/cli/conf.d/20-iconv.ini
- /etc/php/7.2/cli /conf.d/20-json.ini
- /etc/php/7.2/cli/conf.d/20-mbstring.ini
- /etc/php/7.2/cli/conf.d/20-mysqli.ini
- /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.2/cli/conf. d/20-phar.ini
- /etc/php/7.2/cli/conf.d/20-posix.ini
- /etc/php/7.2/cli/conf.d/20-readline.ini
- /etc/php /7.2/cli/conf.d/20-shmop.ini
- /etc/php/7.2/cli/conf.d/20-sockets.ini
- /etc/php/7.2/cli/conf.d/20-sysvmsg .ini
- /etc/php/7.2/cli/conf.d/20-sysvsem.ini
- /etc/php/7.2/cli/conf.d/20-sysvshm.ini
- /etc/php/7.2/cli/ conf.d/20-tokenizer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

I understand that something in the puff configuration needs to be corrected, but I don’t know what exactly. Tell me plz.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2020-01-02
@MihailAlex

ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
PS A new project should be started on the current version of the language - 7.4 or 8.0.

A
Andrey Ezhgurov, 2020-01-02
@eandr_67

PHP version 7.2 is installed and Yii2 components require at least PHP 7.3.
It is not php.ini that needs to be edited here, but installed from the PHP version 7.3 (or 7.4, or 8.0) repository.
And adjust the Nginx / Apache configuration to this PHP version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question