That's not restricted to PHP, since it does not even depend on the language.
Do software like XAMP have bad defaults and shouldn't be used for production out of the box? Maybe.
Has that helped a lot of people to get started, and make PHP the most popular server language for the web? Definitely.
Should we mock all php devs including experts, because of designers or ninja CEOs who tried/succeeded in editiing or making a website but made some mistakes in the process? The answer is still no.