I had the same problem with Uwamp 3.1.0 and PHP 5.6.18 on Windows 7 x64.
Part of the solution is already answered here How to enable 'openssl' in UwAmp CLI?, but there is more :)
The problem with Uwamp (if we don't mention that they should already answer this thread, not us, the users :) ) is because it is using that custom php_uwamp.ini file and "normal" php.ini is missing from ../bin/php/php-xxx/ (still used by many PHP tools) and there is actually the php.ini file in ../bin/apache/php.ini file so I have solved the problem by using extensions path from that file.
The problem was the relative path of ext folder, so just put the absolute path and the problem should be solved (as is for me).
So to write exact steps:
- Locate Your UwAmp PHP "bin" folder of used PHP version (example C:/Uwamp/bin/php/php-5.6.18/)
- Locate "custom Uwamp" php_uwamp.ini file and duplicate it in same folder as php.ini
- Open that duplicated php.ini file and locate the following line:
;extension_dir = "ext"
or
; extension_dir = "{PHPEXTPATH}"
- Now locate other already existing php.ini file in UwAmp Apache "bin" folder ((example C:/Uwamp/bin/apache/php.ini) and find the line with absolute path (example)
; extension_dir = "C:/UwAmp/bin/php/php-5.6.18/ext"
and use it into yours new file C:/UwAmp/bin/php/php-5.6.18/php.ini by uncommenting it and of course check is that absolute path correct.
So now your php.ini file in PHP "bin" folder should be something like this:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "{PHPEXTPATH}"
; On windows:
;extension_dir = "ext"
extension_dir = "C:/UwAmp/bin/php/php-5.6.18/ext"