composer: Xampp Portable Installation Error

I am using a portable version of xampp on windows. After locating the php.exe file during the installation I get the following message:

'``` The PHP exe file you specified did not run correctly: F:\xampp\php\php.exe

The php.ini used by your command-line PHP is: F:\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 ‘\xampp\php\ext\php_bz2.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_curl.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_mbstring.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_exif.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_gd2.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_gettext.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_mysql.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_mysqli.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_openssl.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_pdo_mysql.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_pdo_sqlite.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_soap.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_sockets.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_sqlite3.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_xmlrpc.dll’ - The specified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library ‘\xampp\php\ext\php_xsl.dll’ - The specified module could not be found. in Unknown on line 0

Warning: Cannot open ‘\xampp\php\extras\browscap.ini’ for reading in Unknown on line 0’

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17

Most upvoted comments

@byndstd try to specify full path. With some settings I can’t get work relative path too, but they works perfect with a full path. For example:

browscap = "d:\xampp-7.1\php\extras\browscap.ini"

@kannangce just use in php.ini windows paths instead

; extension_dir = "\xampp-7.1\php\ext"
extension_dir = "./ext"

@ButsAndCats, how I can see it is not a problem of Composer, but problem of your environment. Please use the XAMPP documentation to configure it correctly.