ModMono is an Apache module which provides ASP.NET support for Apache web server. We will be using Apache as an alternative for Microsoft’s IIS in Windows.
Part One: Installation
For ModMono to work first you need to install Apache. You can click here for instructions on how to install Apache. If you have already installed Apache, you can skip this step.
After that, install ModMono by executing the following command (single line). This will install ModMono with support for ASP.NET 2.0
sudo apt-get install libapache2-mod-mono mono-apache-server2
After the installation is complete, restart Apache and activate the ModMono module by executing the following commands:
sudo /etc/init.d/apache2 restart
sudo a2enmod mod_mono
Now we have to change the version ASP.NET to 2.0 in the configuration file. Open the config file in Gedit:
gksu gedit /etc/apache2/mods-available/mod_mono.conf