phpstudy extends MongoDB
Pre-work installationPHPstudy
,mongodb
Runphpstudy
View phpinfo
Click on the other options menu——>View phpinfo
should be the third one from top to bottom
Click in and view in the browser
##Observe the following three parameters, namely php version, ts/nts, vc6/vc9/...three rules (must be One-to-one correspondence)Download the corresponding mongodb packageUnzip and find the correspondingdll file
php- init
extension=php_mongo.dll
libeay32.dll,
libsasl.dll and
ssleay32.dll
phpstudy\PHPTutorial\Apache\bin
**************************** ************/ If prompted whether to overwrite, be sure to click No, do not overwrite
This is very important, otherwise an error may be reported
Be careful when doing this step and be slow
/
**************************** ************/
; semicolon at the beginning of the sentence
PHPstudy,
mongodb
phpstudy
##View phpinfo
Click on the other options menu——>View phpinfo
should be from above Click on the third
and view it in the browser
Observe the following three parameters, namely php version, ts/nts, vc6/ vc9/...Three rules (must correspond one to one)
Go to
http://windows.php.net/downloads/pecl/releases/mongoDownload Corresponding mongodb package
Unzip and find the corresponding
dll file
Copy and paste into the corresponding ext folder
Please pay attention to your own path, the above is my path
Then open the php-init
phpsstudy other options menu ——>Open the configuration file——>php-init
Add extension=php_mongo.dll
Save , and exit
At this time phpstudy may appear warning phpstudy: startup
At this time go to
Find the three files libeay32.dll
, libsasl.dll
and ssleay32.dll
The third file is in the folder at last.
Copy these 3 files to phpstudy\PHPTutorial\Apache\bin
If there is no `Apache\bin at this time, These 3 files will directly succeed
/**************************** ************/
If prompted whether to overwrite, be sure to click No, do not overwrite
This is very important, otherwise an error may be reported
Be careful when doing this step and be slow
/**************************** ************/
After completion, proceed to the next step
Open phpstudy again and click Restart
After that, check phpinfo in the browser again. If it is not the reopened phpinfo, please refresh the page
When this display appears , which means that the expansion of mongodb is completed.
Off topic:
Dear friends from other posts, what you wrote, please uncomment or something like that, have you guys read the file carefully?
According to what you wrote Configuration, search can only find this one, it makes sense to uncomment this, what's the point?
It is clearly written as example, what else is there to comment on?
Just teach you how to add extensions! ! !
By the way, the comments in this file are to add a ;
semicolon at the beginning of the sentence
I hope this post can help everyone
Talk about CSDN Isn’t it the largest Chinese IT community in the world?
The above is the detailed content of How phpstudy scales MongoDB. For more information, please follow other related articles on the PHP Chinese website!