PHP conf fails to load with multiple services

Fix to use multiple services with php and also allow services with
spaces in the json metadata.