Hello,
When looking for a howto or step by step guide your starting point should be
Google. LQ users are not in the habit of providing step by step guides. You'll find the LQ Community at its best when you follow a procedure or a guide you've found and are encountering errors/problems that you cannot solve yourself. In the link I posted there's one 'older' but usable guide for Ubuntu with Apache, MySQL, PHP, LDAP, Subversion, Trac and MoinMoin which should give you a complete solution.
Kind regards,
Eric