Add php5-curl and fix nginx config.