我有 Mac OSX 10+,我在我的系统上使用 Xampp。我需要安装 PHP Mongodb 驱动程序以将其连接到我的应用程序的 mongodb 但它不起作用,我尝试了以下步骤:
- 使用安装的 Mongodb 驱动程序
sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo
- 添加
extension="mongo.so" to php.ini /Applications/XAMPP/xamppfiles/etc
但是在那之后它并没有让 Apache Server 启动;extension="mongo.so"
如果我从中删除php.ini
它可以重新开始
方法二:
- 使用安装的 Mongodb 驱动程序
sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongodb
- 添加
extension="mongodb.so"
到php.ini /Applications/XAMPP/xamppfiles/etc
但是在那之后它并没有让 Apache Server 启动;extension="mongodb.so"
如果我从中删除php.ini
它可以重新开始
我可以在位置看到mongo.so
和mongodb.so
文件/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226
我在 Xampp 的日志文件中得到的错误如下所示:
[Tue Apr 05 15:48:23.002151 2016] [ssl:warn] [pid 59298] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 05 15:48:23.002443 2016] [ssl:warn] [pid 59298] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Apr 05 15:48:23.002603 2016] [suexec:notice] [pid 59298] AH01232: suEXEC mechanism enabled (wrapper: /Applications/XAMPP/xamppfiles/bin/suexec)
[Tue Apr 05 15:48:24.002160 2016] [ssl:warn] [pid 59299] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 05 15:48:24.002291 2016] [ssl:warn] [pid 59299] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Apr 05 15:48:24.002510 2016] [lbmethod_heartbeat:notice] [pid 59299] AH02282: No slotmem from mod_heartmonitor
[Tue Apr 05 15:48:24.002550 2016] [auth_digest:notice] [pid 59299] AH01757: generating secret for digest authentication ...