Fixed the phpfpm permission issue with nginx

nginx returned 502 Bad Gateway because of permission denied.