블로그 이미지
BJcomm
bjcomm

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

calendar

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
12-22 00:00

PHP7 MongoDB PHP Driver install

2016. 3. 16. 16:11 | Posted by bjcomm

$ git clone https://github.com/mongodb/mongo-php-driver.git
$ cd mongo-php-driver
$ git submodule sync && git submodule update --init
$ phpize
$ ./configure
$ make all -j 5
$ sudo make install



Installing shared extensions:     /usr/lib/php/extensions/debug-non-zts-20151012/



Add the following line to your php.ini file:


extension=mongodb.so

or

extension=/usr/local/lib/mongodb.so