504 Gateway Time-out on phpmyadmin

Hi everyone, I recently installed easyengine 4 on a 18 unbuntu vps.

My problem is that when trying to access phpmyadmin I get the 504 Gateway Timeout error.

When putting the DB data the site loads for a while and then shows me the message 504, follow the prints below:

http://prntscr.com/nbhpwz | http://prntscr.com/nbhscf

I already tried to do several things they recommend doing, but nothing is right.