Resolve php 5 5 12 502 error