SymptomsChanging password in PHPadds, Settings, Main settings, Database settings fails with the following error:
502 Bad Gateway
PHP has encountered a Stack overflow
Error in my_thread_global_end(): 2 threads didn't exit
CauseIt’s a known bug of PHP 5.2.2 and 5.2.3 version.
ResolutionTo fix the problem it’s necessary to take libmysql.dll file from PHP 5.2.1 and replace existing one from current version. The library needs to be replaced in
%plesk_dir%\Additional\PleskPHP5 and C:\Windows\System32 folders.
Note: Do not forget to backup original files for emergency.
%plesk_dir% is environment variable which points to Plesk installation folder. By default it is C:\Program Files\SWsoft\Plesk
%plesk_bin% is environment variable which points to Plesk binaries folder. By default it is C:\Program Files\SWsoft\Plesk\admin\bin