I run a site with WordPress in one folder, running from root, and MediaWiki in a sub.
Example! The domain is example.com
WP is installed in example.com/wp/
Wiki in example.com/wiki
If you go to example.com, it loads WordPress
If you go to example.com/wiki it loads the Wiki
WP will ALWAYS honor a real folder over it's virtuality.