

Now check php version from cmd prompt whether you have successfully added php to System Variables or not. If you are not using XAMPP then you need to add PHP installation root directory to the system variable. Open computer’s Advance system settings and click on Environment Variables and add /xampp/php/ to Path under User’s variables (ex, /xampp/php/). Similarly you can edit the file php.ini from PHP installation directory. If you are not using XAMPP then you can open your ext directory from the PHP installation directory.

Now open the /xampp/php/php.ini file and add the below line in order to make it work. Now extract the archive and copy the php_mongodb.dll file into /xampp/php/ext directory. Download the MongoDB PHP driver in order to establish communication between these two technologies.
#Download mongodb windows 7 how to#
Please read tutorial how to configure MongoDB server in Windows Operating System. If you are not using XAMPP then just start Apache HTTP Server by executing the httpd.exe file from bin folder in the command line tool. Run the above file, you will find the php version as shown below image. Start XAMPP control panel and start the Apache module. Create a phpinfo.php file under /xampp/htdocs directory or if you do not use XAMPP then you can simply create the file under Apache server’s htdocs folder and write below code into it.

Check the PHP version 7.4.3 has been installed. Please go through the following steps in order to setup MongoDB with PHP7 If you are using XAMPP then you don’t need Apache Server and PHP separately Configurations PrerequisitesĪpache HTTP Server 2.4, PHP 7.4.3, MongoDB 4.4.0 Since MongoDB does not ship with XAMPP stack so you have to setup manually. Often we come across a situation where we end up using MongoDB with PHP in XAMPP stack. MongoDB is one of the widely used NoSQL(Not only SQL) database in market today. MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need.
#Download mongodb windows 7 install#
It’s very easy to install after downloading the Windows exe inataller file. XAMPP is an open source, easy to install Apache distribution containing PHP, Perl and MySQL. This tutorial will show you how to configure MongoDB PHP 7 for XAMPP on Windows.
