http://www.redmine.org/ with http://www.redmine.org/plugins/agile_dwarf works great for a free self-hosted solution.
You can create projects and subprojects with custom user elevation for each. Time tracking, reporting, etc.
UI could use some updating though