MediaWiki is the wiki engine behind the Wikimedia foundations wikis (including Wikipedia), and many other wikis (including this one).
It is written in PHP, uses the MySQL database, and is very easy to set up.