Fix closure error on php <5.4
Fix Nginx configuration on ubuntu