Add fpm support for php 5.2

Adds fpm support for php 5.2 and hides mkdir error on resource
what error did you get here?