I'am trying to add mongodb driver for my laravel project, my php installed version is 7.4.26 i started by downloading the php_mongodb.dll 7.4 Thread Safe (TS) x86 from here then i added the php_mongodb.dll into C:/xampp/php/ext folder and edited the php.ini file by adding extension=php_mongodb.dll after that i tried to run composer require jenssegers/mongodbin order to add the MongoDB package for my Laravel 8 application i keep getting this error
PHP Warning: PHP Startup: Unable to load dynamic library 'php_mongodb.dll'
(tried: C:\xampp\php\ext\php_mongodb.dll (%1 is not a valid Win32 application.),
C:\xampp\php\ext\php_php_mongodb.dll.dll (The specified module could not be found.)) in Unknown on line 0
And when i try to run php -m command to list the php modules i can't find the mongodb module that i just added
Related
I have PHP 8 installed and have put all the dll to their respective paths
php_zmq.dll file in C:\xampp\php\ext
libzmq.dll file in C:\xampp\php
And I also added the extension=php_zmq.dll in php.ini, but still got the error in php cli
PHP Warning: PHP Startup: Unable to load dynamic library
'php_zmq.dll' (tried: C:\xampp\php\ext\php_zmq.dll (%1 is not a valid
Win32 application), C:\xampp\php\ext\php_php_zmq.dll.dll (The
specified module could not be found)) in Unknown on line 0
Do you have any idea how to fix this ?,
Is there any stable version for PHP Binding ZeroMQ
I'm trying to install YAML extension to PHP 7.4.4 on Windows.
Steps I've taken:
Downloaded the latest DLL package from https://pecl.php.net/package/yaml (currently 2.1.1) for 7.4 Non Thread Safe (NTS) x64.
Copied php_yaml.dll to the extension folder C:/my_path/bin/php/php-7.4.4-Win32-vc15-x64/ext
Added extension=yaml to php.ini.
At this point, all tutorials I've found instruct to copy yaml.dll to a bin folder, but there is no such file in the current YAML package.
When I run PHP now, it gives me the following error:
Warning: PHP Startup: Unable to load dynamic library 'yaml' (tried: C:/my_path/bin/php/php-7.4.4-Win32-vc15-x64/ext\yaml (The specified module could not be found.), C:/my_path/bin/php/php-7.4.4-Win32-vc15-x64/ext\php_yaml.dll (The specified module could not be found.)) in Unknown on line 0
What else do I need to do to get YAML to work in PHP?
I am trying to use google cloud php sdk to fetch from google bigtable and found that it requires grpc to be enabled.
So i tried installing grpc on my xampp by downloading dll file from https://pecl.php.net/package/gRPC
I am running PHP version 5.6 on using xampp on my windows machine
I also updated my php.ini file by adding below
extension=php_grpc.dll
I restarted apache and printing phpinfo but i am not able to find grpc module loaded.
I also checked the list of extensions loaded by running php -m command and i get below error.
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_grpc.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_grpc.dll' - The specified module could not be found.
in Unknown on line 0
Can anyone provide me a solution?
I was facing the same issue when installing the Google Ads PHP library on WAMP Server. I solved it downloading a different gRPC version
https://windows.php.net/downloads/pecl/releases/grpc/1.17.0/
Extacted the file and copied on the extensions directory of WAMP and on the php.ini just add the next line
extension=grpc
Restart apache and php. Hope it helps
I want to use mongodb with lumen framework (which is micro framework of laravel)
I have followed steps
check from my computer my system in 64bit windows
download dll file for 64 bit for mongodb download two zips and try both php_mongodb-1.5.3-7.0-nts-vc14-x64.zip , php_mongodb-1.5.3-7.0-ts-vc14-x64.zip
3.put dll file in php/ext
enable extension for mongodb in php.ini file extension=php_mongodb.dll
restart apache
now I want use jenssegers/mongodb
I have fire command as below:
composer require jenssegers/mongodb
It gives bwlow error
PHP Warning: PHP Startup: Unable to load dynamic library 'E:\xampp7\php\ext\php_mongodb.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'E:\xampp7\php\ext\php_mongodb.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
I have check phpinfo , it not shows me detail of mongo
https://laravel.com/docs/5.7/homestead is a solution for this and much more, very handy.
I'm trying to add MongoDB extension to the PHP and use it with Laravel 5.6.
I know that I should download the dll file from PECL and copy it in the ext folder inside PHP and add extension=php_mongodb.dll to my php.ini file. But I face this warning when I do like what I said:
Warning: PHP Startup: Unable to load dynamic library 'php_mongodb.dll'
(tried: C:\php\ext\php_mongodb.dll (The specified module could not be
found.), C:\php\ext\php_php_mongodb.dll.dll (The specified module
could not be found.)) in Unknown on line 0
I'm a windows 10 user and my PHP version is 7.2.5.
Is it effect on MongoDB usage or It's ignorable and I can overtake it?
Update:
I also tested extension=php_mongodb.dll like extension=php_mongodb, extension=mongodb.dll, extension=php_mongodb.dll and extension=mongodb too.
And I copied the php_mongodb.dll to the C:\php\ext\php_mongodb.dll.