I have finally upgraded the server from ubuntu 14.04 to 16.04 and following this guideĀ https://morphatic.com/2016/05/21/super-fast-secure-wordpress-install-on-digitalocean-with-nginx-php7-and-ubuntu-16-04-lts/ it’s working great along with some tweaks of my own. Just need to do some fine tuning