Update populateFromLog.php

Added port for sphinx connection, see populate configuration fie for required modification
The same code might be applied to existing environments with existing configuration that is based on the old templates, in order to support old configuration files we must check if the field exists.