check SERVER_PORT is set.