I'm looking for open-source software that collaborative web-development, so that different people can work with their own copy, and copies can be synchronized by the team-leader. I primarily need it for a PHP/MySQL setup.

In case nothing suitable is available, how can a team work together to develop a site successfully? Could the experienced developers please give some tips and pointers?

Thanks in advance,