First time post on Stackoverflow so be forgiving.
I'm trying to get Msgpack (https://windows.php.net/downloads/pecl/releases/msgpack/2.1.2/) to work on my Windows 10 laptop. I have PHP 8.1.9 , VC 19 TS
I've downloaded the correct TS version and placed the DLL file in C:\PHP8\EXT folder
I've modified the php.ini file to include extension=php_msgpack.dll
No matter which TS version of Msgpack I always get the following error
PHP Warning: PHP Startup: Unable to load dynamic library 'php_msgpack.dll' (tried: ext\php_msgpack.dll (The specified module could not be found), ext\php_php_msgpack.dll.dll (The specified module could not be found)) in Unknown on line 0
I'd like to get some pointers to where I can start resolving this issue.
I've checked other posts on SO but could not find any fitting solution.
Related
I need the Event library for my project in PHP. The main project is running on a raspberry pi but I'm writing and testing the code completely on my Windows PC. To run the PHP code, I use the XAMPP.
I tried to import the Event extension within my code but in the command window, I keep getting the same error:
D:\xamd server\php>php.exe -i
PHP Warning: PHP Startup: Unable to load dynamic library 'event' (tried: D:\xamd server\php\ext\event (The specified module could not be found.), D:\xamd server\php\ext\php_event.dll (The specified module could not be found.)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'event' (tried: D:\xamd server\php\ext\event (The specified module could not be found.), D:\xamd server\php\ext\php_event.dll (The specified module could not be found.)) in Unknown on line 0
phpinfo()
PHP Version => 7.4.12
This error is weird in my opinion since the file which it can't fine on this link, should be there:
I also added this file in some different folders such as system32 and apache\bin but none of this helps.
I downloaded the extension: "7.4 Thread Safe (TS) x64" from: https://pecl.php.net/package/event/3.0.7RC1/windows which should be the correct one for my PHP version.
And I also edited the php.ini file to add this extension to the library.
I'm probably forgetting one step but I have no idea what.
Would be great if someone could help me with this one.
The same error is displayed if the extension DLL was compiled for a different version of PHP.
Using Windows Explorer, right-click on the DLL and select properties, then Details. Check the Product version value.
The actual issue is that PHP extensions have an API version such as 20200930. The API version must match PHP and the extension. The CLI command php -i | grep API will display this information.
I'm trying to install php_zip for a laravel project. I'm using Windows.
I then put this php_zip.dll inside my php/ext folder.
I then edited my php.ini file to add this line :
extension=zip
to add zip among the existing extensions.
Still PHP tells me this when i deploy my server :
Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (the specified module was not found), C:\xampp\php\ext\php_zip.dll (the specified module was not found)) in Unknown on line 0
Starting Laravel development server: http://127.0.0.1:8000
[Mon Jan 25 11:50:11 2021] PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (the specified module was not found), C:\xampp\php\ext\php_zip.dll (the specified module was not found)) in Unknown on line 0
As we can see PHP is trying to read the proper folder and is looking for the proper file. Why is it unable to load it then ?
SO after php version 7.4, you must go to apache, and select php.ini
after you must find extension=zip and delete the ; before extension=zip
then save the config and restart your server php...and it ll be ok
I keep getting this error when I try to run cUrl:
Call to undefined function curl_init()
So I try to install it with these lines:
extension_dir = "C:\PHP7\ext"
extension=curl
But it never shows up in my phpinfo();
Here is from the Apache error log:
PHP Startup: Unable to load dynamic library 'curl' (tried: C:\\PHP7\\ext\\curl (The specified module could not be found.), C:\\PHP7\\ext\\php_curl.dll (The specified procedure could not be found.)) in Unknown on line 0
And I've also tried the absolute path to curl (extension=C:\PHP7\ext\php_curl.dll)
If:
Your settings look correct.
You're trying to load the right DLL for your PHP installation and not e.g. some random one you found in Google).
Curl works just fine from command-line PHP.
But you get this when running PHP as Apache module:
PHP Startup: Unable to load dynamic library 'curl' (tried: C:\...\ext\curl (The specified module could not be found.), C:\...\ext\php_curl.dll (The specified procedure could not be found.)) in Unknown on line 0
Then there's a chance that it gets fixed if you upgrade Apache to the latest build. (I've had that same problem myself.)
That was my problem too. I decided to upgrade my apache to Apache version 2.4.41
Link to binary if you install manually: https://www.apachelounge.com/download/
My php version is 7.3.9
good luck
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.
I'm trying to get this extension to run on my PHP 5.4 installation. https://github.com/iliaal/php_excel
I've copied both libxl.dll and php_excel.dll into my ext folder. I'm running a IIS server on server2k8.
I however get these errors when starting my PHP engine.
[06-Feb-2015 18:51:18 Asia/Kuwait] PHP Warning: PHP Startup: Invalid
library (maybe not a PHP library) 'libxl.dll' in Unknown on line 0
[06-Feb-2015 18:51:18 Asia/Kuwait] PHP Warning: PHP Startup: Unable
to load dynamic library 'C:/PHP/ext/php_excel.dll' - The specified
module could not be found.
in Unknown on line 0
I've made sure that i've downloaded the correct file from the precompiled ftp site. http://windows.php.net/downloads/pecl/snaps/excel/20140606/
Does anyone have any tips, on what I might do wrong here?
This could be caused by the "thread safe (ts)" and "none thread safe (nts)" versions of the php binaries.
Maybe you have downloaded the nts version of php_excel.dll and are trying to use it with a ts version of php.
If you do that the error "The specified module could not be found." is thrown.