How to install mongodb-odm on symfony4 with php 7.3 (Windows 10)? - mongodb

I am trying to install mongodb-odm on symfony4 (php 7.3), but getting those problems
Problem 1
- doctrine/mongodb-odm 2.0.5 requires ext-mongodb ^1.5 -> the requested PHP extension mongodb is missing from your system.
- doctrine/mongodb-odm 2.0.4 requires ext-mongodb ^1.5 -> the requested PHP extension mongodb is missing from your system.
- doctrine/mongodb-odm 2.0.3 requires ext-mongodb ^1.5 -> the requested PHP extension mongodb is missing from your system.
- doctrine/mongodb-odm 2.0.2 requires ext-mongodb ^1.5 -> the requested PHP extension mongodb is missing from your system.
- doctrine/mongodb-odm 2.0.1 requires ext-mongodb ^1.5 -> the requested PHP extension mongodb is missing from your system.
- doctrine/mongodb-odm 2.0.0 requires ext-mongodb ^1.5 -> the requested PHP extension mongodb is missing from your system.
- Installation request for doctrine/mongodb-odm ^2.0 -> satisfiable by doctrine/mongodb-odm[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5].
When I try to install composer require mongodb/mongodb I'm getting
Problem 1
- Installation request for mongodb/mongodb ^1.6 -> satisfiable by mongodb/mongodb[1.6.0].
- mongodb/mongodb 1.6.0 requires ext-mongodb ^1.7 -> the requested PHP extension mongodb is missing from your system.
I see in phpinfo(); that mongodb is installed (MongoDB extension version 1.7.2), but when I type php -m, I don't see mongo there.

Related

How install PHP extension mongodb on MAMP

I installed yii2, composer and MAMP
but when i do composer update i have error
- yiisoft/yii2-mongodb 2.1.7 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.6 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.5 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.4 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.3 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.2 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.1 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.0 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- Installation request for yiisoft/yii2-mongodb ^2.1 -> satisfiable by yiisoft/yii2-mongodb[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7].
I surfed the entire Internet and did not find a solution
to mongodb extension install do
sudo apt-get install php-mongodb

Trying to install mongo-php-adater for mongodb use with symfony4 issue

I am trying to install mongo-php-adapter to use mongoDB with Symfony 4, but I have the following problem:
Problem 1
    - alcaeus/mongo-php-adapter 1.1.6 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
    - alcaeus/mongo-php-adapter 1.1.5 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
    - alcaeus/mongo-php-adapter 1.1.4 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
    - alcaeus/mongo-php-adapter 1.1.3 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
    - alcaeus/mongo-php-adapter 1.1.2 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
    - alcaeus/mongo-php-adapter 1.1.1 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
    - alcaeus/mongo-php-adapter 1.1.0 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
    - Installation request for alcaeus/mongo-php-adapter ^1.1 -> satisfiable by alcaeus/mongo-php-adapter[1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6].
 
  To enable extensions, verify that they are enabled in your .ini files:
    - /opt/lampp/etc/php.ini
  You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
I installed php-mongo and put extension=mongodb.so in the php.ini file but it doesn't change anything on the contrary it says it can't find the mongodb.so file.
I also installed mongodb with pecl but still the same problem.
Thank you in advance for your help

Upgrade Magento from 2.2.6 to 2.3.0 issue in core module

I am upgrading magneto version from 2.2.6 to 2.3.0 . There i am getting issue on core module magento/module-sales. There is error below.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- magento/module-sales 100.1.12 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.11 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.10 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.9 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.8 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.7 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.6 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.5 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.4 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.3 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.2 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.1 requires php ~5.6.0|7.0.2|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.0 requires php ~5.6.0|7.0.2|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.0-rc3 requires php ~5.6.0|7.0.2|~7.0.6 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.0-rc2 requires php ~5.5.22|~5.6.0|~7.0.0 -> your PHP version (7.1.20) does not satisfy that requirement.
- magento/module-sales 100.1.0-rc1 requires php ~5.5.22|~5.6.0|~7.0.0 -> your PHP version (7.1.20) does not satisfy that requirement.
- fooman/pdfcustomiser-m2 8.0.6 requires fooman/pdfcustomiser-implementation-m2 108.3.1 -> satisfiable by fooman/pdfcustomiser-implementation-m2[108.3.1].
- fooman/pdfcustomiser-m2 8.0.6 requires fooman/pdfcustomiser-implementation-m2 108.3.1 -> satisfiable by fooman/pdfcustomiser-implementation-m2[108.3.1].
- fooman/pdfcustomiser-implementation-m2 108.3.1 requires magento/module-sales ^100.1.0 | ^101.0.0 -> satisfiable by magento/module-sales[101.0.5, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.4, 100.1.5, 100.1.6, 100.1.7, 100.2.0-rc20, 101.0.0-rc21, 101.0.0-rc22, 101.0.0-rc23, 101.0.0-rc30, 100.1.8, 101.0.0, 101.0.1, 100.1.9, 100.1.10, 101.0.2, 100.1.11, 101.0.3, 101.0.4, 100.1.12, 100.1.13, 101.0.6].
- fooman/pdfcustomiser-implementation-m2 108.3.1 requires magento/module-sales ^100.1.0 | ^101.0.0 -> satisfiable by magento/module-sales[101.0.5, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.4, 100.1.5, 100.1.6, 100.1.7, 100.2.0-rc20, 101.0.0-rc21, 101.0.0-rc22, 101.0.0-rc23, 101.0.0-rc30, 100.1.8, 101.0.0, 101.0.1, 100.1.9, 100.1.10, 101.0.2, 100.1.11, 101.0.3, 101.0.4, 100.1.12, 100.1.13, 101.0.6].
- Can only install one of: magento/module-sales[102.0.0, 101.0.5].
- Can only install one of: magento/module-sales[102.0.0, 101.0.0-rc21].
- Can only install one of: magento/module-sales[102.0.0, 101.0.0-rc22].
- Can only install one of: magento/module-sales[102.0.0, 101.0.0-rc23].
- Can only install one of: magento/module-sales[102.0.0, 101.0.0-rc30].
- Can only install one of: magento/module-sales[102.0.0, 101.0.0].
- Can only install one of: magento/module-sales[102.0.0, 101.0.1].
- Can only install one of: magento/module-sales[102.0.0, 101.0.2].
- Can only install one of: magento/module-sales[102.0.0, 101.0.3].
- Can only install one of: magento/module-sales[102.0.0, 101.0.4].
- Can only install one of: magento/module-sales[102.0.0, 101.0.5].
- Can only install one of: magento/module-sales[102.0.0, 101.0.6].
- Can only install one of: magento/module-sales[102.0.0, 100.2.0-rc20].
- Can only install one of: magento/module-sales[102.0.0, 100.1.13].
- magento/product-community-edition 2.3.0 requires magento/module-sales 102.0.0 -> satisfiable by magento/module-sales[102.0.0].
- Installation request for magento/product-community-edition 2.3.0 -> satisfiable by magento/product-community-edition[2.3.0].
- Installation request for fooman/pdfcustomiser-m2 ^8.0 -> satisfiable by fooman/pdfcustomiser-m2[8.0.6].</pre>
Please help me how can i solve it.
Thank you
I think so that the problem is due to your current PHP version.
Try to upgrade it with PHP 7.2 version.
the issue is because of the custom module composer.json.
Please find the keyword inside of app folder 5.6.5|7.0.2|7.0.4|~7.0.6
Then you can find the list of custom modules with old composer.json so after you find out you need to manually update those composer.json inside of modules folder.
For ex: app/code/VendorName/ModuleName/composer.json
thumps up. thanks.

Component dependency issue when upgrading Magento 2 from 2.0.7 to 2.1.0

I need to upgrade from magento 2 2.0.7 to 2.1.0. I tried by using composer commands.
composer require magento/product-community-edition 2.1.0 --no-update
composer update
But I got an error like below:
Can only install one of: magento/framework[100.1.0, 100.0.9].
Can only install one of: magento/framework[100.1.0, 100.0.10].
magento/product-community-edition 2.1.0 requires magento/framework 100.1.0 -> satisfiable by magento/framework[100.1.0].
Installation request for magento/product-community-edition 2.1.0 -> satisfiable by magento/product-community-edition[2.1.0].
Could someone please give me some ideas?

Error to install mongodb in lumen

I use Lumen micro framework on ubuntu 14.4,when i want to install monogodb packege form this link i got a error like below:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jenssegers/mongodb v3.0.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1].
- jenssegers/mongodb v3.0.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1].
- jenssegers/mongodb v3.0.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1].
- mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- Installation request for jenssegers/mongodb ^3.0 -> satisfiable by jenssegers/mongodb[v3.0.0, v3.0.1, v3.0.2].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php5/cli/php.ini
- /etc/php5/cli/conf.d/05-opcache.ini
- /etc/php5/cli/conf.d/10-pdo.ini
- /etc/php5/cli/conf.d/20-curl.ini
- /etc/php5/cli/conf.d/20-gd.ini
- /etc/php5/cli/conf.d/20-json.ini
- /etc/php5/cli/conf.d/20-mcrypt.ini
- /etc/php5/cli/conf.d/20-mysql.ini
- /etc/php5/cli/conf.d/20-mysqli.ini
- /etc/php5/cli/conf.d/20-pdo_mysql.ini
- /etc/php5/cli/conf.d/20-readline.ini
- /etc/php5/cli/conf.d/mongo.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
How can i fix it?
You don't have the php mongodb driver/extension installed
use this
sudo apt-get install php5-mongo
if you are on php 5
When i run php -m i got :
amirali#amirali-U30J:~$ php -m
PHP Warning: Module 'mongo' already loaded in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mhash
mongo
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Use pecl instead.
pecl install mongodb
See here.