WordPress Multi Site - Use the following snippets to setup multsite network in WordPress make sure you read the official  documentation
http://codex.wordpress.org/Create_A_Network