Fix php configuration bugs.
Merge pull request #2794 from mrunalp/bugs/php_config_issues

Merged by openshift-bot