Present the same error problem 502 Bad Gateway cwpsrv in the phpMyAdmin, I followed all the recommendations that I got in different post of the forum and I could not accommodate it.
In the end I made the phpMyAdmin work by removing all cookies from the site, and wonder! He returned to life!