apache web server stopped

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

apache web server stopped

Postby Ibtissam » 16. June 2023 13:23

Hello,
I am trying to install mongo php driver and it installed using this:

sudo CFLAGS="-I/Applications/XAMPP/xamppfiles/include" LDFLAGS="-L/Applications/XAMPP/xamppfiles/lib" /Applications/XAMPP/xamppfiles/bin/pecl install mongodb


ibtissamalwannas@Ibtissams-MacBook-Pro ~ % php -i | grep mongodb
mongodb
mongodb.debug => no value => no value
PATH => /Applications/XAMPP/xamppfiles/bin:/opt/homebrew/opt/mongodb-community@6.0/bin:/Users/ibtissamalwannas/FlutterDev/flutter/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
$_SERVER['PATH'] => /Applications/XAMPP/xamppfiles/bin:/opt/homebrew/opt/mongodb-community@6.0/bin:/Users/ibtissamalwannas/FlutterDev/flutter/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin

and I can find mongodb.so file on extension inside php,
but when I add extension=mongodb.so to php.ini, apache web server in xampp stoped that is what I get in log

[Sun Jun 11 10:50:24.982483 2023] [ssl:warn] [pid 74918] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jun 11 10:50:24.982520 2023] [ssl:warn] [pid 74918] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jun 11 10:50:24.982664 2023] [lbmethod_heartbeat:notice] [pid 74918] AH02282: No slotmem from mod_heartmonitor
dyld[74917]: Assertion failed: (this->magic == kMagic), function loadAddress, file Loader.cpp, line 81.
php version:

PHP 8.2.4 (cli) (built: Apr 6 2023 04:12:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
mongo php driver version 1.15.3

I tried the solutions that are on previous issues but it doesn't work
I am using macOS Monterey 12.5,
I tried it on windows it installed without any issue.
Ibtissam
 
Posts: 1
Joined: 16. June 2023 13:20
XAMPP version: 8.2.4
Operating System: macOS

Re: apache web server stopped

Postby brel01 » 27. January 2024 23:39

How did you resolve this problem
brel01
 
Posts: 1
Joined: 27. January 2024 23:38
XAMPP version: 8.0.28-0
Operating System: mac os

Re: apache web server stopped

Postby damiandch » 05. February 2024 14:20

Hello, I would be also interested how you fixed this issue.
damiandch
 
Posts: 2
Joined: 05. February 2024 14:19
XAMPP version: 8.2.4
Operating System: macOS Sonoma 14.2.1

Re: apache web server stopped

Postby damiandch » 05. February 2024 15:58

As per my previous post. I came across this issue today. And fortunatelly with some hints here - https://github.com/mongodb/mongo-php-driver/issues/247 I was able to build the driver and start apache succesfully.

Code: Select all
sudo /Applications/XAMPP/xamppfiles/bin/pecl install --configureoptions='with-mongodb-sasl="no"' -f mongodb

...

Enable developer flags? (yes/no) [no] : yes
Enable code coverage? (yes/no) [no] : yes
Use system libraries for libbson, libmongoc, and libmongocrypt? (yes/no) [no] :
Enable client-side encryption? (auto/yes/no) [auto] : no
Enable Snappy for compression? (auto/yes/no) [auto] : no
Enable zlib for compression? (auto/system/bundled/no) [auto] :
Enable zstd for compression? (auto/yes/no) [auto] :
Enable crypto and TLS? (auto/openssl/libressl/darwin/no) [auto] : no
Use system crypto profile (OpenSSL only)? (yes/no) [no] : no
Use bundled or system utf8proc for SCRAM-SHA-256 SASLprep? (bundled/system) [bundled] :


XAMPP version: 8.2.4
Operating System: macOS Sonoma 14.2.1
damiandch
 
Posts: 2
Joined: 05. February 2024 14:19
XAMPP version: 8.2.4
Operating System: macOS Sonoma 14.2.1


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 38 guests