Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install Composer with Xampp on Windows

I've been trying to install composer with XAMPP on Windows 10 and the installer gave the following error:

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:
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pdo_oci.dll' - The specified module could not be found.
 in Unknown on line 0

The path to php.exe is already correct and I've uncommented the extensions on php.ini.

Files in /php/ext

Files in /php/ext (2)

Thank you, and I wish you guys a good day!

like image 751
Logos Avatar asked Oct 15 '25 04:10

Logos


1 Answers

I know, I am too late hare but if anybody still looking for the answer here it is...

  • Go to your xampp\php\php.ini
  • Press ctrl+f to find extension_dir and change its relative path to absolute path e.g from extension_dir="\ext" to extension_dir="E:\xampp\php\ext"
  • Press ctrl+f to find browscap and change its path e.g from
    browscap="\xampp\php\extras\browscap.ini" to
    browscap="E:\xampp\php\extras\browscap.ini"
  • Save the file and restart the xampp

try again with the composer installer good luck with it...


like image 94
Sarim Avatar answered Oct 17 '25 19:10

Sarim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!