Agreed in general, but there are better free/libre choices. I don't recommend these for greenfield projects.
I'd replace PHP with practically anything written by grownups. (Django, Rails, etc.)