Error when install the Composer LARAVEL - php

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

Related

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

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/

PHP Settings Error when trying to install Composer on Windows 7 machine

I am receiving the following error when I download 'Composer-Setup.exe', double click the file and run the PHP Settings check.
Are there a couple of lines in the php.ini file that I need to fix? I am trying to run composer commands in my command prompt relating to an installation of Laravel on my Xampp server ('C:/Xampp/htdocs').
The PHP exe file you specified did not run correctly:
C:\Program Files (x86)\iis express\PHP\v7.0\php.exe
The php.ini used by your command-line PHP is: C:\Program Files (x86)\iis express\PHP\v7.0\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:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\iis express\PHP\v7.0\ext\php_sqlsrv_72_ts.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\iis express\PHP\v7.0\ext\php_mysql.dll' - The specified module could not be found.
in Unknown on line 0
I think the problem is from your php version, try upgrade your php version into 7++
just install the php_pdo_sqlsrv_81_ts_x64.dll and it will work for u i did the same thing

Laravel composer installation Error - The PHP exe file you specified did not run correctly

I'm facing some issues in during installation of laravel 5.2, when i run composer setup.exe then i get these errors.
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_oci8_12c.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
Warning: Module 'openssl' already loaded in Unknown on line 0
Please help me for fixing these errors. Thanks
my system is 64-bit

Error installing composer in windows PHP Startup: Unable to load dynamic library 'ext\json.so'

I get this error while installing composer in Windows.
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 'ext\json.so' - The specified module could not be found.
in Unknown on line 0
I had to remove this line from php.ini , this was the problem
extension=json.so

PHP extensions not found

I have compiled version 5.4.14 of PHP on a linux system using the same configuration I had for a 5.4.13 version. I run the following PHP -i command and I get:
[root#localhost php-5.4.14]# php -i
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/fileinfo.so' - /usr/lib64/20100525/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/json.so' - /usr/lib64/20100525/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/phar.so' - /usr/lib64/20100525/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/zip.so' - /usr/lib64/20100525/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
Now I know that JSON is now part of the PHP core and there is no JSON.SO (I assume the same for the others). Is anyone aware of why this is a problem? I do not have any extension=XXXX.so lines in my php.ini file. I am compiling under Centos 6.4.
Got it -- A directory /etc/php.d was added. This contains a bunch of .ini files which are added to the processing of php.ini. The json.ini file, for example, simply says: extension=json.so
After spending too long looking for the answer, I happened to catch a line in the php -i output specifying the additional .ini directory. Hope this saves someone some time some day.

Categories