This ensures that the newly added “.dll” file is loaded when xampp is started. Go to control panel, and open the system settings to add the “Environment Variable”.Īdd the path of the xampp php installation ( C:\xampp\php ) to the path variable, if it is not present already. Later, if you like, you can also disable this extension by adding a semicolon before the line so that it becomes as shown below: Next, open the “php.ini” file from the path “C:\xampp\php” (again, assuming that xampp is installed on C drive), and edit this file to add the name of the “.dll” file as an extension.Īdd the following line to the php.ini file.
Download mongodb php ext driver#
XAMPP loads the driver files for the extensions from this folder.Īfter copying the file over here, rename the “.dll” file to “php_mongo.dll” for simplicity. This ext folder all the “.dll” files of all the extensions that are installed.
Download mongodb php ext zip#
Copy PHP Mongo DDL to EXT DirectoryĪfter you unzip the php monngo driver zip file, copy and paste the “.dll” file to the folder “C:\xampp\php\ext”( Assuming that xampp is installed on C drive). Just copy paste the below lines to a test.php file in the htdocs folder and execute it to see the output.Īs highlighted in the screenshot below, you will find the PHP version, Architecture, Compiler in use and can see whether thread safety is enabled or not.įrom this PHP Mongo Driver download page, download the appropriate file that matches the PHP version, Architecture, Compiler in use and Thread Safety from the XAMPP that is installed on your system.
Download mongodb php ext install#
Download and install the XAMPP stack from Apache friends project.Īlso, keep in mind that you can also install XAMPP on Linux as we discussed earlier.Īfter the install, start your Apache server from XAMPP controls and create a simple PHP file to get the detailed info about the PHP running with your stack. Install and Configure XAMPPįirst, you should install the XAMPP stack. Since mongoDB is not an integral part of this stack, we have to set it up manually as the XAMPP installer is not going to take care of it for you.įollow the steps below to configure MongoDB for the XAMPP stack. We often end up in a situation where we might find it useful to set up mongodb also along with PHP in the XAMPP stack. MongoDB is one of the most widely NoSQL database in market today. XAMPP is an open source, easy to use and easy to install stack that contains Apache webserver, MySQL database, PHP compiler and Perl.