fixed failed php-fpm port calculation