473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to install mongoDB on Bitnami WAMP (windows) for using with symfony 3 ? Windows

103 100+
How to install mongoDB on Bitnami WAMP (windows) for using with symfony 3 ?

Windows 10, x64.

php PHP 5.6.20 (cli) (built: Mar 31 2016 14:56:44).

I have tried mongodb releases from 1.1.1 to 1.1.8
from http://pecl.php.net/package/mongodb

I managed to download and install mongodb on windows. But i am not able to use it with WAMP and symfony.


1) WINDOWS installation (working) –
1) download msi from :
https://www.mongodb.com/download-center#community
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/
Remember where DB is installed – on , and
Add this path to system variables : C:\Program Files\MongoDB\Server\3.2\bin

run cmd: mongod

Create a folder for your database files, for example on C:\Bitnami\mongodb
and run command
c:\Users\gintare>mongod --dbpath C:\Bitnami\mongodb

This will create a database in the folder.


2) Symfony installation (does not work)
composer.json
Expand|Select|Wrap|Line Numbers
  1.     "require": {
  2.         "doctrine/mongodb": "dev-master",
  3.         "alcaeus/mongo-php-adapter": "^1.0.0",
  4.         "doctrine/mongodb-odm": "~1.1",
  5.         "doctrine/mongodb-odm-bundle": "~3.0",
  6.  
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`. Restarted Apache from Bitnami.

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",
Sep 8 '16 #1
0 1298

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: StepH | last post by:
Hi, I'm new to Python. I'm working under XP, and I've alot of prob. (not with the langage itself, but with the tools): I've install Pyhton 2.4 in C:\Python24, using the .msi windows...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
4
by: Chris | last post by:
I'm building a web app in C# for use on a company intranet. I want to restrict access to only authenticated users on the domain. There is plenty of documentation on this subject except for one...
3
by: James Dixon | last post by:
I have created a windows service in C#, .net framework 1.1 The service makes a web request using the mshtml.HTMLDocument.CreateDocumentFromURL() function Because this is not using...
0
by: MLH | last post by:
The following site has a copy of mdacsdk.exeon it....
1
by: Scott Chang | last post by:
Hi all, 1)I used Microsoft Visual C++.NET (2002) on my Windows Me and Windows XP Home Edition for the last one and half years. 4-5 weeks ago, I upgraded my PC from Windows XP Home Edition to...
5
by: Richard Lionheart | last post by:
Hi All, I tried creating a C# Form using Petzold's "Programming MS Windows with C#" guidance. He recommended using the namespace System.Windows.Forms. However, VS.NET claims "the type or...
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
3
shrek123
by: shrek123 | last post by:
Hi, I am trying to install DBI bundle on my windows machine. It is giving me following error while i am running Makefile.pl. ####################Error################################### ***...
2
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.