Bug #73050 [Opn->Fbk]: Not able to make mongodb to work in Bitnami wampstack-5.6.20-0
| From: | cmb@php.net | Date: | Fri, 09 Sep 2016 13:39:16 +0000 |
| Subject: | Bug #73050 [Opn->Fbk]: Not able to make mongodb to work in Bitnami wampstack-5.6.20-0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203917@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73050&edit=1
ID: 73050
Updated by: cmb@php.net
Reported by: g dot statkute at gmail dot com
Summary: Not able to make mongodb to work in Bitnami
wampstack-5.6.20-0
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Windows 10
PHP Version: 5.6.25
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I presume that wampstack-5.6.20-0 is build for x86, so you should
use the respective x86 php_mongo.dll. Check phpinfo() regarding
whether you need the thread-safe or non-thread-safe version.
Previous Comments:
------------------------------------------------------------------------
[2016-09-08 20:59:42] g dot statkute at gmail dot com
Description:
------------
Everything is described here:
http://stackoverflow.com/questions/39397930/how-to-install-mongodb-on-bitnami-wamp-windows-for-using-with-symfony-3
Symfony installation (does not work)
composer.json
"require": {
"doctrine/mongodb": "dev-master",
"alcaeus/mongo-php-adapter": "^1.0.0",
"doctrine/mongodb-odm": "~1.1",
"doctrine/mongodb-odm-bundle": "~3.0",
2a) I followed the steps
http://php.net/manual/en/mongo.installation.php#mongo.installation.windows
Downloaded
mongodb.dll 1.8.8 from
http://pecl.php.net/package/mongodb
unzipped to:
C:\Bitnami\wampstack-5.6.20-0\php\ext\php_mongodb-1.1.8-5.6-ts-vc11-x64
I tried both thread safe and unsafe versions. Both gave the same errors.
and copied file php_mongodb.dll to C:\Bitnami\wampstack-5.6.20-0\php\ext
and corrected php.ini by adding extension=php_mongodb.dll.
Nevertheless iam getting the error Unable to load dynamic library:
c:\Bitnami\wampstack-5.6.20-0\apache2\htdocs\sym\patmonS1>php
PHP Warning: PHP Startup: Unable to load dynamic library
'C:/Bitnami/wampstack-5.6.20-0/php/ext\php_mongodb.dll' - %1 is not a valid Win32
application.
in Unknown on line 0
2b) If i try to install using pecl, i am getting the error invalid package:
:\Bitnami\wampstack-5.6.20-0\php\ext>pecl install mongodb
downloading mongodb-1.1.8.tgz ...
Starting to download mongodb-1.1.8.tgz (806,900 bytes)
.................................................................................................................................................................done:
806,900 bytes
could not extract the package.xml file from
"C:\Bitnami\wampstack-5.6.20-0\php\pear\download\mongodb-1.1.8.tgz"
Download of "pecl/mongodb" succeeded, but it is not a valid package archive
Error: cannot download "pecl/mongodb"
Download failed
install failed
2c) If i try to install mongoDB with composer, i am getting the error doctrine/mongodb
dev-master requires ext-mongo ^1.5 .
c:\Bitnami\wampstack-5.6.20-0\apache2\htdocs\sym\patmonS1>composer update
PHP Warning: PHP Startup: Unable to load dynamic library
'C:/Bitnami/wampstack-5.6.20-0/php/ext\php_mongodb.dll' - %1 is not a valid Win32
application.
in Unknown on line 0
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/mongodb dev-master -> satisfiable by
doctrine/mongodb[dev-master].
- doctrine/mongodb dev-master requires ext-mongo ^1.5 -> the requested PHP extension
mongo is missing from your system.
Problem 2
- alcaeus/mongo-php-adapter 1.0.0 requires mongodb/mongodb ^1.0.1 -> satisfiable by
mongodb/mongodb[1.0.1, 1.0.2].
- alcaeus/mongo-php-adapter 1.0.1 requires mongodb/mongodb ^1.0.1 -> satisfiable by
mongodb/mongodb[1.0.1, 1.0.2].
- alcaeus/mongo-php-adapter 1.0.2 requires mongodb/mongodb ^1.0.1 -> satisfiable by
mongodb/mongodb[1.0.1, 1.0.2].
- alcaeus/mongo-php-adapter 1.0.3 requires mongodb/mongodb ^1.0.1 -> satisfiable by
mongodb/mongodb[1.0.1, 1.0.2].
- alcaeus/mongo-php-adapter 1.0.4 requires mongodb/mongodb ^1.0.1 -> satisfiable by
mongodb/mongodb[1.0.1, 1.0.2].
- alcaeus/mongo-php-adapter 1.0.5 requires mongodb/mongodb ^1.0.1 -> satisfiable by
mongodb/mongodb[1.0.1, 1.0.2].
- mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension
mongodb is missing from your system.
- mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension
mongodb is missing from your system.
- Installation request for alcaeus/mongo-php-adapter ^1.0.0 -> satisfiable by
alcaeus/mongo-php-adapter[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5].
To enable extensions, verify that they are enabled in those .ini files:
- C:\Bitnami\wampstack-5.6.20-0\php\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in
CLI mode.
c:\Bitnami\wampstack-5.6.20-0\apache2\htdocs\sym\patmonS1>
"doctrine/mongodb-odm": "~1.1",
Test script:
---------------
it is installation problem
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73050&edit=1