Groupware/CMS

So im not sure exactly what im looking for, but i wanna create something similar to a facebook or a myspace, where people have their own pages (obviously not too extreme).
Is it CMS? or Groupware? or something else?

Thanks,
Eric