Search code examples
phpxamppcomposer-phpwindows-10

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!


Solution

  • I have found the solution myself. It appears that the Composer is incompatible with php 7.0.0. I downloaded and installed Xampp with PHP 5.6.0 in it and now the installation is successful.