Running ASP.NET applications in Ubuntu using ModMono

January 29, 2009

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

Read the rest of this entry »


Installing Apache, PHP, MySQL and phpMyAdmin on Ubuntu 8.10

November 10, 2008

[Note: In this post I’ll be showing how to install Apache, php, MySQL and phpMyAdmin (one by one) on Ubuntu 8.10 using Terminal. If you want to install them all at the same time with minimal fuss, I recommend you to read my post on installing LAMP.]

Installing Apache

1. Open Terminal (Application -> Accessories -> Terminal) and execute the following command:

sudo apt-get install apache2

2. When the setup is complete you can check if the Apache is working properly by pointing your browser to http://localhost. If you see the text “It works!”, it means Apache is working just fine.

3. Towards the end of the installation if you see a message like this inside Terminal, “Could not reliably determine the server’s fully qualified domain name, using for ServerName“, you can fix this by executing the following command. It will open Gedit (text editor).

gksu gedit /etc/apache2/conf.d/fqdn

4. When Gedit opens, type “ServerName localhost” inside the file and click Save. Then close the file.

Read the rest of this entry »

Installing LAMP on Ubuntu 8.10

November 9, 2008

LAMP stands for Linux, Apache, MySQL and PHP, all-in-one single package or bundle. LAMP is perfect for less experienced users and also for those who want to install everything in one go rather than install each component separately.

Since I’ve had experience using the WAMP package (in Windows) provided by ApacheFriends, here I will explain how to install their LAMP package in Ubuntu.

First you need to download their latest LAMP package from here. Make sure you keep the downloaded file on your desktop. Then open a new Terminal window (Applications -> Accessories -> Terminal) and enter the following commands. (The text in red should be changed to the exact name of the file you downloaded)

cd Desktop

sudo tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt

Tha’s all. LAMP is now installed on your computer. All you need to do now is to start LAMP (this is to start the Apache server and MySQL). To do that execute the following command in Terminal:

sudo /opt/lampp/lampp start

You can test your installation by pointing your browser to http://localhost

Once you see the homepage, select English as your language and then you can check the installation status, phpInfo and documentations, etc.


  • Your root (admin) password for MySQL is left blank. It’s better if you set a password.
  • Your php files and projects should be put inside the directory /opt/lampp/htdocs
  • Login to phpMyAdmin from here: http://localhost/phpmyadmin/index.php

UPDATE (13-11-2008)

In order to make sure LAMP starts automatically everytime you start your computer, follow these steps.

First, execute this command in Termina:

sudo gedit /etc/init.d/rc.local

When Gedit opens, add the following line right at the bottom of the file (below the word “esac”)

sudo /opt/lampp/lampp start

Save the file and close it. Now you don’t have to start LAMP manually each time your start your computer.

[Reference: ApacheFriends]