Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for aws/aws-sdk-php 3.75.0 -> satisfiable by aws/aws-sdk-php[3.75.0].
- aws/aws-sdk-php 3.75.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
Problem 2
- Installation request for erusev/parsedown 1.7.1 -> satisfiable by erusev/parsedown[1.7.1].
- erusev/parsedown 1.7.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- Installation request for laravel/framework v5.5.43 -> satisfiable by laravel/framework[v5.5.43].
- laravel/framework v5.5.43 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 4
- Installation request for league/csv 9.1.4 -> satisfiable by league/csv[9.1.4].
- league/csv 9.1.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 5
- Installation request for nicolaslopezj/searchable 1.10.3 -> satisfiable by nicolaslopezj/searchable[1.10.3].
- nicolaslopezj/searchable 1.10.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 6
- Installation request for phpoffice/phpexcel 1.8.1 -> satisfiable by phpoffice/phpexcel[1.8.1].
- phpoffice/phpexcel 1.8.1 requires ext-xml * -> the requested PHP extension xml is missing from your system.
Problem 7
- Installation request for phar-io/manifest 1.0.1 -> satisfiable by phar-io/manifest[1.0.1].
- phar-io/manifest 1.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 8
- Installation request for phpunit/php-code-coverage 5.3.2 -> satisfiable by phpunit/php-code-coverage[5.3.2].
- phpunit/php-code-coverage 5.3.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 9
- Installation request for phpunit/phpunit 6.5.13 -> satisfiable by phpunit/phpunit[6.5.13].
- phpunit/phpunit 6.5.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 10
- Installation request for theseer/tokenizer 1.1.0 -> satisfiable by theseer/tokenizer[1.1.0].
- theseer/tokenizer 1.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 11
- aws/aws-sdk-php 3.75.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
- league/flysystem-aws-s3-v3 1.0.21 requires aws/aws-sdk-php ^3.0.0 -> satisfiable by aws/aws-sdk-php[3.75.0].
- Installation request for league/flysystem-aws-s3-v3 1.0.21 -> satisfiable by league/flysystem-aws-s3-v3[1.0.21].
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-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-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-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-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.
What is that error means? I have all extensions mentioned above are available and enabled in my php.ini.
Try running:
sudo apt install php7.2-mbstring php7.2-xml
You are missing these extensions from your system and/or they are not configured to be enabled with php. This will install and enable them in your php.ini file.
Related
i am trying to install laravel project by composer install but in return it gives the following error.
Problem 1
- Installation request for laravel/framework v7.14.1 -> satisfiable by laravel/framework[v7.14.1].
- laravel/framework v7.14.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for league/commonmark 1.4.3 -> satisfiable by league/commonmark[1.4.3].
- league/commonmark 1.4.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- Installation request for facade/ignition 2.0.6 -> satisfiable by facade/ignition[2.0.6].
- facade/ignition 2.0.6 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 4
- Installation request for mockery/mockery 1.4.0 -> satisfiable by mockery/mockery[1.4.0].
- mockery/mockery 1.4.0 requires php ^7.3.0 -> your PHP version (7.2.24) does not satisfy that requirement.
Problem 5
- Installation request for phpunit/phpunit 8.5.5 -> satisfiable by phpunit/phpunit[8.5.5].
- phpunit/phpunit 8.5.5 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 6
- Installation request for scrivo/highlight.php v9.18.1.1 -> satisfiable by scrivo/highlight.php[v9.18.1.1].
- scrivo/highlight.php v9.18.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 7
- laravel/framework v7.14.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- facade/flare-client-php 1.3.2 requires illuminate/pipeline ^5.5|^6.0|^7.0 -> satisfiable by laravel/framework[v7.14.1].
- Installation request for facade/flare-client-php 1.3.2 -> satisfiable by facade/flare-client-php[1.3.2].
But mbstring is already installed in php72. First I check the version of the php --v and it returned
PHP 7.2.24
then checked the loaded modules php72 -m and there was mbstring no problem there too... After that I checked the mbstring is enabled or not php72 -i | grep mbstring and it's enabled
Multibyte decoding support using mbstring => enabled
In the end why composer is not seeing the mbstring? I check the modules of composer show -p seeing. And NO there is no mbstring! Any idea why composer not seeing the mbstring and how can I fix this issue?
Additionally I am in Centos 7
Your mbstring extension is missing for php7.2
Run sudo apt-get install -y php7.2-mbstring
Edit
Also, mockery/mockery 1.4.0 requires php ^7.3.0.
I suggest upgrading your project php version.
Log speaks for itself.
laravel/framework v7.14.1 requires ext-mbstring
league/commonmark 1.4.3 requires ext-mbstring
facade/ignition 2.0.6 requires ext-mbstring
phpunit/phpunit 8.5.5 requires ext-mbstring
scrivo/highlight.php v9.18.1.1 requires ext-mbstring
try this command
yum install php-mbstring
then
composer update
What I did:
SSH Setuped
Php7.2 installed
apache2 installed
Pull Files from GitLab
When I run this apt install Composer
root#sewa:~/sewa# apt install composer
Reading package lists... Done
Building dependency tree
Reading state information... Done
composer is already the newest version (1.6.3-1).
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
but I can't install composer when I run composer install there is coming error message like this
root#sewa:~/sewa# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for dompdf/dompdf v0.8.5 -> satisfiable by dompdf/dompdf[v0.8.5].
- dompdf/dompdf v0.8.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 2
- Installation request for laravel/framework v6.18.2 -> satisfiable by laravel/framework[v6.18.2].
- laravel/framework v6.18.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- Installation request for league/commonmark 1.3.1 -> satisfiable by league/commonmark[1.3.1].
- league/commonmark 1.3.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 4
- Installation request for tijsverkoyen/css-to-inline-styles 2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
- tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 5
- Installation request for facade/ignition 1.16.1 -> satisfiable by facade/ignition[1.16.1].
- facade/ignition 1.16.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 6
- Installation request for phar-io/manifest 1.0.3 -> satisfiable by phar-io/manifest[1.0.3].
- phar-io/manifest 1.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 7
- Installation request for phpunit/php-code-coverage 7.0.10 -> satisfiable by phpunit/php-code-coverage[7.0.10].
- phpunit/php-code-coverage 7.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 8
- Installation request for phpunit/phpunit 8.5.2 -> satisfiable by phpunit/phpunit[8.5.2].
- phpunit/phpunit 8.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 9
- Installation request for scrivo/highlight.php v9.18.1.1 -> satisfiable by scrivo/highlight.php[v9.18.1.1].
- scrivo/highlight.php v9.18.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 10
- Installation request for theseer/tokenizer 1.1.3 -> satisfiable by theseer/tokenizer[1.1.3].
- theseer/tokenizer 1.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 11
- dompdf/dompdf v0.8.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- barryvdh/laravel-dompdf v0.8.6 requires dompdf/dompdf ^0.8 -> satisfiable by dompdf/dompdf[v0.8.5].
- Installation request for barryvdh/laravel-dompdf v0.8.6 -> satisfiable by barryvdh/laravel-dompdf[v0.8.6].
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-apcu.ini
- /etc/php/7.2/cli/conf.d/20-apcu_bc.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-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-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.
What I want to do solve this error
install the following php extensions -
php7.2-mbstring
php7.2-dom
Run the following command to install them -
sudo apt install php7.2-mbstring php7.2-dom
then restart the apache -
sudo systemctl reload apache2
I am on Linux Ubuntu and I have a Symfony 4 project and I did not succeed to make that functions. After updating my OS, I have a problem. When I launch for this project:
composer install
I got this message:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for nexylan/slack v2.0.0 -> satisfiable by nexylan/slack[v2.0.0].
- nexylan/slack v2.0.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for symfony/framework-bundle v4.0.14 -> satisfiable by symfony/framework-bundle[v4.0.14].
- symfony/framework-bundle v4.0.14 requires ext-xml * -> the requested PHP extension xml is missing from your system.
Problem 3
- Installation request for symfony/debug-bundle v4.0.4 -> satisfiable by symfony/debug-bundle[v4.0.4].
- symfony/debug-bundle v4.0.4 requires ext-xml * -> the requested PHP extension xml is missing from your system.
Problem 4
- symfony/framework-bundle v4.0.14 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- symfony/maker-bundle v1.4.0 requires symfony/framework-bundle ^3.4|^4.0 -> satisfiable by symfony/framework-bundle[v4.0.14].
- Installation request for symfony/maker-bundle v1.4.0 -> satisfiable by symfony/maker-bundle[v1.4.0].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/20-apcu.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-imagick.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
- /etc/php/7.4/cli/conf.d/20-xdebug.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Can you help me to solve this problem?
Finally, it was very simple. I just installed the packages php7.4-xml and php7.4-mbstring:
sudo apt-get install php7.4-xml and sudo apt-get install php7.4-mbstring
I have already installed these packages.
sudo apt-get install apache2 php libapache2-mod-php mysql-server php-mysql php-dom \
php-simplexml php-curl php-intl php-xsl php-mbstring php-zip php-xml composer
After this command
composer install
I am getting this error
Problem 1
- This package requires php ~7.1.3||~7.2.0 but your PHP version (7.0.32) does not satisfy that requirement.
Problem 2
- The requested PHP extension ext-bcmath * is missing from your system. Install or enable PHP's bcmath extension.
Problem 3
- The requested PHP extension ext-soap * is missing from your system. Install or enable PHP's soap extension.
Problem 4
- Installation request for magento/composer 1.4.0 -> satisfiable by magento/composer[1.4.0].
- magento/composer 1.4.0 requires php ~7.1.3|~7.2.0 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 5
- Installation request for php-amqplib/php-amqplib v2.7.3 -> satisfiable by php-amqplib/php-amqplib[v2.7.3].
- php-amqplib/php-amqplib v2.7.3 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
Problem 6
- Installation request for symfony/console v4.1.6 -> satisfiable by symfony/console[v4.1.6].
- symfony/console v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 7
- Installation request for symfony/event-dispatcher v4.1.6 -> satisfiable by symfony/event-dispatcher[v4.1.6].
- symfony/event-dispatcher v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 8
- Installation request for symfony/filesystem v4.1.6 -> satisfiable by symfony/filesystem[v4.1.6].
- symfony/filesystem v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 9
- Installation request for symfony/finder v4.1.6 -> satisfiable by symfony/finder[v4.1.6].
- symfony/finder v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 10
- Installation request for symfony/process v4.1.6 -> satisfiable by symfony/process[v4.1.6].
- symfony/process v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 11
- Installation request for zendframework/zend-code 3.3.1 -> satisfiable by zendframework/zend-code[3.3.1].
- zendframework/zend-code 3.3.1 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 12
- Installation request for zendframework/zend-soap 2.7.0 -> satisfiable by zendframework/zend-soap[2.7.0].
- zendframework/zend-soap 2.7.0 requires ext-soap * -> the requested PHP extension soap is missing from your system.
Problem 13
- Installation request for doctrine/annotations v1.6.0 -> satisfiable by doctrine/annotations[v1.6.0].
- doctrine/annotations v1.6.0 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 14
- Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
- doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 15
- Installation request for doctrine/instantiator 1.1.0 -> satisfiable by doctrine/instantiator[1.1.0].
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 16
- Installation request for moontoast/math 1.1.2 -> satisfiable by moontoast/math[1.1.2].
- moontoast/math 1.1.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
Problem 17
- Installation request for myclabs/deep-copy 1.8.1 -> satisfiable by myclabs/deep-copy[1.8.1].
- myclabs/deep-copy 1.8.1 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 18
- Installation request for symfony/browser-kit v4.1.6 -> satisfiable by symfony/browser-kit[v4.1.6].
- symfony/browser-kit v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 19
- Installation request for symfony/config v4.1.6 -> satisfiable by symfony/config[v4.1.6].
- symfony/config v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 20
- Installation request for symfony/css-selector v4.1.6 -> satisfiable by symfony/css-selector[v4.1.6].
- symfony/css-selector v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 21
- Installation request for symfony/dependency-injection v4.1.6 -> satisfiable by symfony/dependency-injection[v4.1.6].
- symfony/dependency-injection v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 22
- Installation request for symfony/dom-crawler v4.1.6 -> satisfiable by symfony/dom-crawler[v4.1.6].
- symfony/dom-crawler v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 23
- Installation request for symfony/http-foundation v4.1.6 -> satisfiable by symfony/http-foundation[v4.1.6].
- symfony/http-foundation v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 24
- Installation request for symfony/options-resolver v4.1.6 -> satisfiable by symfony/options-resolver[v4.1.6].
- symfony/options-resolver v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 25
- Installation request for symfony/stopwatch v4.1.6 -> satisfiable by symfony/stopwatch[v4.1.6].
- symfony/stopwatch v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 26
- symfony/console v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
- sebastian/phpcpd 3.0.1 requires symfony/console ^2.7|^3.0|^4.0 -> satisfiable by symfony/console[v4.1.6].
- Installation request for sebastian/phpcpd 3.0.1 -> satisfiable by sebastian/phpcpd[3.0.1].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/15-xml.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-curl.ini
- /etc/php/7.0/cli/conf.d/20-dom.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gd.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-intl.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mbstring.ini
- /etc/php/7.0/cli/conf.d/20-mcrypt.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-simplexml.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
- /etc/php/7.0/cli/conf.d/20-wddx.ini
- /etc/php/7.0/cli/conf.d/20-xmlreader.ini
- /etc/php/7.0/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.0/cli/conf.d/20-xsl.ini
- /etc/php/7.0/cli/conf.d/20-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
step1: first better to remove the php from your ubuntu using this command.
it will only remove php and its modules
sudo apt-get purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`
step2: PHP 7.1 isn’t available on Ubuntu default repositories… in order to install it,
you will have to get it from third-party repositories.
Run the commands below to add the below third party repository to install PHP 7.1
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
step:3
now install the required modules.
sudo apt-get install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-gd php7.1-xml php7.1-intl php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-zip php7.1-curl composer
I got the same error, using this command error is resolved
sudo apt-get install php-bcmath php-soap
hey a get error when install laravel v-5.4
a get error this :
The "http://packagist.org/p/provider-2016%24e217873bdc8408956b33b1eb317ad1182d3a82fde9a746cc5e7def6135696f96.json" file could not be downloaded (HTTP/1.1 500 Internal Server Error)
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing laravel/laravel (v5.5.0)
- Installing laravel/laravel (v5.5.0): Loading from cache
Created project in blog
#php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit 6.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, 6.0.1, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.3.0, 6.3.1, 6.4.0, 6.4.1].
please help me for finish this problem. I tried but but no result.
If you are using PHP 7 or later, you can install ext-dom by running the following command:
sudo apt-get install php7.0-xml // for PHP 7
sudo apt-get install php7.1-xml // for PHP 7