Thread:Project:Support desk/Can I have two MediaWiki installations on one Linux machine (2 domains)?/reply

Yes, that is possible.

If you are using Apache, you should set up two different Vhosts to handle the two domains. They can point to two different directories on the machine so that the files are completely separated. For the databases just set up two different databases on the same MySQL server and give each MediaWiki installation only access to that one database with its own data in it.

Apart from that you can use different users/groups on a file system level to restrict the linux user of the one wiki to access the files of the other wiki and vice versa. You can also modify the MySQL rights of the MySQL users: They surely should not be allowed to change "the other" DB. But additionally you can also disallow certain operations inside the DB like DROP, TRUNCATE and the like to improve security.

Also see Manual:Security.