fixed permissions and updated define.php to work with multisite installation