Apache 2.4 + PHP 7.4 on Windows : Failed loading 'libvips-42.dll' #227
Replies: 8 comments 6 replies
-
Hi @KRousselFr, I guess you saw #183 (comment) as well? Did those steps work? |
Beta Was this translation helpful? Give feedback.
-
Hello @jcupitt Thank you for your quick reply. Yes, I saw #183. And the But when using the very same files from Apache: I just can't understand why... |
Beta Was this translation helpful? Give feedback.
-
I ensured that both |
Beta Was this translation helpful? Give feedback.
-
Removing VIPS bin directory from my Path didn't change anything, unfortunately (even after restarting Apache). |
Beta Was this translation helpful? Give feedback.
-
Maybe should I ask this question to the PHP maintainers? Or to libvips'?... |
Beta Was this translation helpful? Give feedback.
-
Understood, thank you very much for your time! Best regards |
Beta Was this translation helpful? Give feedback.
-
Hello @jcupitt , I found a workaround for this issue: everything works when the native VIPS DLLs are copied in the Though it is is not a satisfying fix (storing stuff in the very system directory is definitely not good practice), I share it as a stopgap measure in case someone else is stuck with this problem. It may also be a clue to help identifying the root cause and building a clean fix... I will post a new update if I find someting better. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello @jcupitt I found a better solution: still using FFI, I call the It seems the many DLL that constitue VIPS attempt to load one another, and not having them in a directory where they are automatically searched by the system causes the problems I encouter. Thus, I use this method in an init function of mine. This seems a good enough solution for me. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm facing an unexpected error while trying to use 'php-vips'.
Every attempt to use Vips from PHP under Apache fails with this exception:
FFI\Exception: Failed loading '.../libvips-42.dll'
Of course, I checked PHP configuration:
I tried to investigate the problem, and it seems PHP-FFI does find but can't load VIPS DLL.
I have made this simple PHP test file to reproduce the problem:
And indeed, it fails on the last
FFI::cdef
line, with the Exception I mentioned earlier, while the first two DLL calls work just fine!I'm totally lost here, any help would be greatly appreciated.
Thanks,
NOTA: I have seen #185 which seems similar to my problem, but unfortunately OP seems to have quit before solving the question...
Beta Was this translation helpful? Give feedback.
All reactions