Elgg

Overview
Elgg is a free/open source social networking web application. It is written in PHP and uses MySQL for database operations.

Reference

 * official site
 * official site