Bug #73050 [NEW]: Not able to make mongodb to work in Bitnami wampstack-5.6.20-0
| From: | g dot statkute at gmail dot com | Date: | Thu, 08 Sep 2016 20:59:44 +0000 |
| Subject: | Bug #73050 [NEW]: Not able to make mongodb to work in Bitnami wampstack-5.6.20-0 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-203886@lists.php.net to get a copy of this message | ||
From: g dot statkute at gmail dot com
Operating system: Windows 10
PHP version: 5.6.25
Package: *General Issues
Bug Type: Bug
Bug description:Not able to make mongodb to work in Bitnami wampstack-5.6.20-0
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 bug report at https://bugs.php.net/bug.php?id=73050&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73050&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73050&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73050&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73050&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73050&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73050&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73050&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73050&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73050&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73050&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73050&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73050&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73050&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73050&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73050&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73050&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73050&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73050&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73050&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73050&r=mysqlcfg