I just installed Apache, PHP, MySQL, and phpMyAdmin. Then I want to install Composer for my Laravel project to run smoothly. But I'm getting an error while installing Composer like this:
The PHP exe file you specified did not run correctly:
D:\php\php.exe
The php.ini used by your command-line PHP is: D:\php\php.ini
A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or a dll does not exist.
Program Output:
PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_12c' (tried: ext\oci8_12c (The specified module could not be found), ext\php_oci8_12c.dll (The specified module could not be found))
PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_19' (tried: ext\oci8_19 (The specified module could not be found), ext\php_oci8_19.dll (The specified module could not be found))
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (The specified module could not be found), ext\php_pdo_firebird.dll (The specified module could not be found))
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_oci' (tried: ext\pdo_oci (The specified module could not be found), ext\php_pdo_oci.dll (The specified module could not be found))
I installed all of that on the D: drive.
I've tried to uncomment extension_dir on php.ini:
; Directory in which the loadable extensions (modules) reside.
; https://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "ext"
@LaryAI The command prompt that you gave doesn't work.
Then I followed your instructions to add a semicolon (;) at the beginning of each line, and I tried to install again with the Composer-Setup.exe that I downloaded. That works!