Reputation: 8685
macOS 10.13.1, PHP 7.1.11
Php and apache installed with homebrew. Everything works fine until I install the mongodb extension brew install php71-mongodb
. When I restart apache, I get
httpd not running, trying to start
The log output after a restart is
~ $ tail -n 2 /usr/local/var/log/httpd/error_log
[Mon Nov 27 16:23:53.128889 2017] [mpm_prefork:notice] [pid 39529] AH00173: SIGHUP received. Attempting to restart
[Mon Nov 27 16:23:53.175190 2017] [core:notice] [pid 39529] AH00060: seg fault or similar nasty error detected in the parent process
If I comment out the lines added in ext-mongodb.ini
and restart, the error disappears. Any ideas what is going on here?
Upvotes: 1
Views: 278
Reputation: 837
I saw few issues like this previously, usually one working workaround could be compiling mongo extension yourself.
$ git clone https://github.com/mongodb/mongo-php-driver.git
$ cd mongo-php-driver
$ git submodule sync && git submodule update --init
$ phpize
$ ./configure --with-mongodb-sasl=no
$ make all -j 5
$ sudo make install
check this issue: https://github.com/mongodb/mongo-php-driver/issues/247
Upvotes: 0