fix the XML config and add the corresponding PHP config