Warning: PHP Startup: Unable to load dynamic library 'openssl' - php

I have xampp installed on my Windows 10 machine. Running php from command prompt gives error as below.
Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: D:\xamp\php\ext\openssl
(The specified module could not be found.), D:\xamp\php\ext\php_openssl.dll
(The specified module could not be found.)) in Unknown on line 0
In php.ini for extension_dir I tried giving absolute path as well as relative path to extension directory.
File is available in location D:\xamp\php\ext\php_openssl.dll. It still gives the error.

Can you check if the loaded php.ini is the correct one ?
php --ini
also you can check php -m to check the loaded extension in cmd using
php -m | findstr "xml"
also you can try to manually download the openssl extension:
http://www.dlldownloader.com/php_openssl-dll/

Related

PHP8 extension could not be loaded (all)

I build up a new development Windows with:
Windows 10 Prof. -
Apache 2.4.54 -
PHP 8.1.7
The problem is that PHP could not load the extension (it does not matter which one I activate).
Configuration in php.ini
extension_dir = "ext"
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=curl
extension=mbstring
extension=openssl
In the apache Log throw the following message:
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: ext\\curl (The specified module could not be found), ext\\php_curl.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: ext\\mbstring (The specified module could not be found), ext\\php_mbstring.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: ext\\openssl (The specified module could not be found), ext\\php_openssl.dll (The specified module could not be found)) in Unknown on line 0
The installation paths are: c:\Webserver\Apache24
c:\Webserver\php
At first I thought of a permission problem, so I open the hole directory of "Webserver" to "everyone" with "full access", but this does not solve the problem.
Looks like I found the problem. After I added the path of the PHP folder to the Windows environment variables and restart windows, the error message was gone.

Install php extension on wampserver 3

I would like to install the php_bolt extension in php in order to encode my souces.
I have placed my php_bolt.dll file in the php extensions folder.
In my php.ini file I add the line extension=php_bolt.dll.
the extension is still not loaded. And I do not know why.
In command line I have the following error
PHP Startup: Unable to load dynamic library 'php_bolt.dll' (tried: G: /wamp64/bin/php/php7.2.25/ext/php_bolt.dll
(The specified module could not be found.), G:/wamp64/bin/php/php7.2.25/ext/php_php_bolt.dll.dll
(The specified module could not be found.)) in Unknown on line 0

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 7.2.5 Loading extensions

I am trying to add ast extension . I downloaded the files and added php_ast.dll to my PHP/ext folder, which is located in path: C:\PHP7\ext .
After that I enabled the extension in php.ini file and restared powershell. If I run php -m command, I get a following warning.
PHP Warning: PHP startup: Unable to load ynamic library 'ast' (tried: C:\PHP7\ext\ast (The specified module could not be found.), C:\PHP7\ext\php_ast.dll (The specified module could not be found.)) In uknown on line 0.
I tried to copy the second path (C:\PHP7\ext\php_ast.dll) to file explorer and It opens the file, so I don't understand why the module could not be found.

Error when install the Composer LARAVEL

The PHP exe file you specified did not run correctly:
C:\xampp\php\php.exe
The php.ini used by your command-line PHP is:
C:\xampp\php\php.ini
A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Program Output:
Warning: PHP Startup: Unable to load dynamic library
'C:\xampp\php\ext\php_pdo_firebird.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_imagick.dll' - %1 is not a valid Win32
application. in Unknown on line 0
please check the php.ini file located in C:\xampp\php
and search extension=php_imagick.dll and replace with
;extension=php_imagick.dll

Categories