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.
Related
After downloading the latest version of pthread, coping php_pthreads.dll file into C:\xampp\php\ext folder and pthreadVC2.dll to C:\xampp\php folder and restarting apache, when i try to use composer update command i get this error:
PS C:\xampp\htdocs\xxx_pro> composer update
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pthreads.dll' (tried: C:\xampp\php\ext\php_pthreads.dll (The specified module could not be found), C:\xampp\php\ext\php_php_pthre
ads.dll.dll (The specified module could not be found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'php_pthreads.dll' (tried: C:\xampp\php\ext\php_pthreads.dll (The specified module could not be found), C:\xampp\php\ext\php_php_pthreads.d
ll.dll (The specified module could not be found)) in Unknown on line 0
here the name of php_pthreads file isn't php_php_pthreads.dll.dll and i'm interested why this file name is wrong on output
i also added "ext-pthreads": "*" to composer.json
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 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
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/
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.