I think that wordpress probably had a big impact on PHP's success. It's on 40%+ of sites. It was set up in a way for people to make modifications to actual code (or at least see). Hosting providers had to make sure PHP was preinstalled and useful.