-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes webserver when used with apache and mod_php #214
Comments
Hi @ausi, This is an issue on macOS, is that your platform? It's been investigated for ruby-vips: Possibly, starting php-vips earlier could fix this. |
Yes:
I don’t know what that means |
I have exactly the same problem with nginx 1.23.3 and PHP 8.2.10 The same exact code runs via CLI, but just kills the From phpinfo();
|
I recently installed PHP 8.2 and Apache 2.4 with Homebrew on OS X Sonoma. Running php-libvips from Terminal works fine, but when running it via Apache the server immediately drops connection and crashes. I see this in the Apache-log: Any advice would be greatly appreciated. |
Did you read the ruby-vips issue linked above? The problem is with dynamic libraries on macos loading after a fork(). You need to somehow force the library to load earlier in process startup, or perhaps run your server in a VM. |
I’m using Apache 2.4.57 with PHP 8.1.21 loaded as mod_php (PHP SAPI
apache2handler
).Using vips via the command line works as expected,
but running the same code on the webserver crashes with the following error:
The text was updated successfully, but these errors were encountered: