phpstudy Steps to install mongodb extension:
1. Search mongodb extension on Baidu and find the official website
2. Open the official website, download the latest version, click DLL and select the win version
Note: Now it supports php5.6, I The download is for x86. You must pay attention here to see whether it is x86, not to see the system version, but to see whether the x86 version displayed by phpinfo.
Click to download
3. After the download is complete, unzip it and copy php_mongo.dll and php_mongo.pdb to the ext of php5.6
4. Open the php.ini file and write extension=php_mongo.dll
5. Restart apache and refresh the page Check to see if the extension of mongodb is supported. As shown in the figure below, the extension of mongodb can be supported.
The above is the detailed content of How to install mongodb extension in phpstudy?. For more information, please follow other related articles on the PHP Chinese website!