更新时间:2023-02-23 08:14:04
我通过以下步骤安装了mongo扩展程序:
C:\xampp
C:\xampp\php\libsasl.dll
复制到C:\xampp\apache\bin\
,重新启动Apache并享用.此方法对我来说效果很好.我希望这将有助于解决您的问题.
I have read few post here on solving my issue but neither works for php-5.6.
I downloaded php_mongo-1.6.8.zip and php_mongo-1.6.7.zip and tried all the .dll extensions and all of them gives one or the other error.
Error message:
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_mongo-1.6.8-5.6-vc11-x86_64.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_mongo-1.6.8-5.6-vc11.dll' - The specified module could not be found.
in Unknown on line 0
P.S.: I am using XAMPP for my environment.
I installed mongo extension with following steps:
C:\xampp
on Windows 7php_mongo.dll
and copy it to C:\xampp\php\ext
C:\xampp\php\php.ini
line extension=php_mongo.dll
Without further configuration, I see mongo extension in command line (C:\xampp\php\php.exe -i | findstr mongo
) but Apache complains about missing libsasl.dll
and mongo is missing in http://localhost/dashboard/phpinfo.php. Ok, what next?
C:\xampp\php\libsasl.dll
to C:\xampp\apache\bin\
, restart Apache and enjoy.This howto worked for me well. I hope it will help to resolve your issue.