Home > php教程 > php手册 > body text

Install MongoDB driver for PHP on XAMPP for Mac OSX

WBOY
Release: 2016-06-06 19:45:02
Original
874 people have browsed it

试了不少方法,最后还是这个最有效。 You need to have the following installed in your Mac: MongoDB XAMPP for Mac OSX Homebrew Package Manager Type the following in your terminal : brew install wget brew install autoconf sudo /Applications/XA

试了不少方法,最后还是这个最有效。

You need to have the following installed in your Mac:

  • MongoDB
  • XAMPP for Mac OSX
  • Homebrew Package Manager

Type the following in your terminal :

<code>brew install wget  
</code>
Copy after login
<code>brew install autoconf  
</code>
Copy after login
<code>sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo  
</code>
Copy after login

Add extension=mongo.so to your php.ini file which can be found at /Applications/XAMPP/xamppfiles/etc by default.

Restart Apache.

A..nd you are done.

<code>Tip:  
To install MongoDB, you can use  
brew install mongodb  </code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template