Add fpm support for php 5.2

Adds fpm support for php 5.2 and hides mkdir error on resource
Something like cannot create dir, dir already exists.