PHP Startup: Unable to load dynamic library 'http' - Windows 10 - php

I am running PHP 8.0.3 on my windows 10 machine and trying to enable HTTP extension. I have downloaded the HTTP package from PECL HTTP. When I try to start PHP I get the below error.
PHP Warning: PHP Startup: Unable to load dynamic library 'http' (tried: C:\Php8.0.3\ext\http (The specified module could not be found), C:\Php8.0.3\ext\php_http.dll (The specified module could not be found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'http' (tried: C:\Php8.0.3\ext\http (The specified module could not be found), C:\Php8.0.3\ext\php_http.dll (The specified module could not be found)) in Unknown on line 0
Not sure what I'm doing wrong here. Any help will be appreciated.

I did figure it out. Windows error was very unhelpful and only found this out after digging through some documentation.
The http extensions relies on the raphf extension, which I didn't have installed. On Linux, it would alert me to that, but on windows it just throws a generic "couldn't find extension". Probably the same thing for yourself.

One of a few things is happening:
The file doesn't exist in the filepath it's being looked for in. Check the location in the error message or
The file exists, but it's permissions are wrong.
Hint, it's the former ;)

Related

Enabling MSgPack library in PHP 8.1

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.

Can't Get Curl Enabled in PHP 7.3.9

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

php not finding php_protobuf_ts and php_curve25519_ts

I am using php 7.1.12 on a windows PC, i have tried to install php_protobuf_ts.dll and php_curve25519_ts.dll extensions to php i keep getting this error
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_protobuf_ts.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_curve25519_ts.dll' - The specified module could not be found.
in Unknown on line 0
I am getting this error despite confirming that the above extensions exist on the specified directory. Please help, i have tried everything

PHP_excel from iliaal

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.

Php soap extension configuration on Windows

I have a problem to configure a soap extension on windows7.
In apache acesss error:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\VertrigoServ\Php\ext\php_soap.dll' - The specified procedure could not be found.\r\n in Unknown on line 0`
I was looking on google, and other, put some versions of soap dll files. Nothing to work. I also changed a extension dir to other.
And i also get apache error:
entry point php_output_discard could not be located in the dynamic link libary php5ts.dll
Where is a problem? I use a VertrigoServ prebuild web server.
Fixed: Need use soap .dll for right php version.

Categories