I can tell you why Java is worse from hosting providers point of view: php is stateless by default, you can easily monitor resources used by php, while java servlets are stateful, they can use up a lot of resources and there are no easy to use available tools for hosting providers to monitor those resources Java can use. Java is designed to create applications to be deployed on multiple servers, not on a single server shared between a lot of users.
Re:Why PHP Was a Ghetto
by Stormbringer on Wednesday April 20, 2011 @08:12PM
(#2468949)
Interesting. Thanks for that.
I'm still puzzled about the nearly instantaneous and complete market penetration of php.
The thing is that it isn't like say 30% of hosting providers offered it and it slowly got more and more, it was more like massive overnight 100% market penetration.
I've never met a hosting provider that didn't provide it, despite the fact that it is an absolute security nightmare.