| How did sub-optimal languages like Python and JavaScript get to be the most popular languages in the world? Saying because they were widely available doesn't make sense to me, because vendors early on could see them becoming popular and fixed them or come up with a replacement before they got so entrenched. |
There were a few subtle points in how it was built that meant you could write bad scripts and not crash the server. There were commercial alternatives, some pretty spiffy, but they were expensive and risky (you could test PHP for yourself or you go up the chain of command to pay $5000 for a Cold Fusion license then be stuck with it if you don't like it.)
Other communities working on blub languages thought that the good properties of PHP were not important. They might have been minimal but they were not viable.