use OPENSHIFT_PHP_IP
import changes from rh-test. Should fix #4..