Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mongodb extension installation for php

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. First download php's mongodb extension download mongodb's extended source package from this URL download mongodb's extended source package wget http://pecl.php.net/get/mongo-1.4.5.tgz2. from http://pecl.php.net/package/mongo Extract the installation package tar zxf mongo-1.4.5.tgz3. Enter the unzipped directory and run phpize to prepare the installation for cd mongo-1.4.5/usr/local/php/bin/phpize4. After the installation and compilation of the above command is finished, the configure file is generated in the directory to install and configure using the. / configure command, and then compile and install using make & & make install, which is as follows:. / configuremake & & make install5. Add the following line to add mongodb extension [PHP] to add extension=mongo.so to restart the apache container, and then check phpinfo. When you see the contents of mongodb, the installation is successful.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report