How to implement multi-user websites like Wordpress.com?

admin

Administrator
Staff member
I'm going to build a multi-user website, much like wordpress.com, that users can signup and get their isolated account at a sub-domain.

How this could be implemented efficiently? I'm not asking about assigning sub-domains to users, I want to know about the application architecture which could make this possible.