I have installed XAMPP 7.11.4 and MediaWiki as application on a portable USB drive (I need a portable solution), my OS is Windows 10. Apache, MySQL and Mediawiki all work fine. However, if I run mediawiki maintenance commands (i.e. runjobs) from the comand line, the system is unable to find the necessary dll files. I get the following error:
C:\Users\adhean0>d:\myxampp\php\php.exe d:\myxampp\htdocs\mywiki\maintenance\runjobs.php
PHP Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: \myXAMPP\php\ext\bz2 (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_bz2.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: \myXAMPP\php\ext\bz2 (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_bz2.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: \myXAMPP\php\ext\curl (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_curl.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: \myXAMPP\php\ext\curl (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_curl.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: \myXAMPP\php\ext\fileinfo (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_fileinfo.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: \myXAMPP\php\ext\fileinfo (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_fileinfo.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: \myXAMPP\php\ext\gd2 (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_gd2.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: \myXAMPP\php\ext\gd2 (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_gd2.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'gettext' (tried: \myXAMPP\php\ext\gettext (Das angegebene Modul wurde nicht gefunden.), \myXAMPP\php\ext\php_gettext.dll (Das angegebene Modul wurde nicht gefunden.)) in Unknown on line 0
The code for finding the extension in php.ini is:
extension_dir = "\myXAMPP\php\ext"
I can eliminate the problem by changing this to:
extension_dir = "D:/myXAMPP/php/ext"
However, in this case I do not have a portable solution any longer, which I need....
Any ideas how to solve the problem?