The Unit is an idle old IBM netfinity 7000 server, Dual Pentium Pro 200 MHz CPU, 512 MB memory, a 9.1 GB and five 4.5 gb scsi hard disks. I want to take advantage of the waste, so:
1. Download the PC (Intel x86) server install CD from the http://tw.releases.ubuntu.com/edgy/ and burn the downloaded ubuntu-6.10-server-i386.iso file to a CD.
2. Use this CD to install Ubuntu 7000 (edgy) on the IBM netfinity 6.10 server ).
3. Install apache2:
Sudo apt-Get install apache2
4. Install the basic compiling environment:
Sudo apt-Get install build-essential checkinstall
5. Install libapache2-mod-mono:
The simplest method is to use the following command:
Sudo apt-Get install libapache2-mod-mono
However, in Ubuntu 6.10, an error is reported. I had to compile one myself:
MD SRC
CD SRC
Sudo apt-Get install apache2-threaded-dev mono-xsp2 mono-Apache-server mono-apache-server2
Wget http://go-mono.com/sources/mod_mono/mod_mono-1.2.1.tar.gz
Tar xzf mod_mono-* .tar.gz
CD mod_mono -*/
./Configure -- prefix =/usr -- sysconfdir =/etc
Make
Sudo checkinstall
6. Configure apache2 to run ASP. NET 2.0
CD/etc/apache2/mods-available
Sudo ln-S ../mod_mono.conf
Sudo echo "loadmodule mono_module/usr/lib/apache2/modules/mod_mono.so"> mod_mono.load
Sudo a2enmod mod_mono
CD ../sites-available
For details about sudo Vim ben.skyiv.com, refer to the content of the default file. The key is to add the following statement:
#-------------------------------------------------
Alias/BEN/home/BEN/www/BEN
Addmonoapplications Ben "/BEN:/home/BEN/www/Ben"
Monoserverpath Ben/usr/bin/mod-mono-server2
<Location/BEN>
Monosetserveralias Ben
Sethandler mono
</Location>
#-------------------------------------------------
Sudo a2ensite ben.skyiv.com
Sudo/etc/init. d/apache2 restart
7. Complete. See: http://ben.skyiv.com/ben/aspx/info.aspx Running Effect
References:
Http://www.ifolder.com/index.php/HowTo:iFolder_Enterprise_Server_on_Ubuntu_6.10
Https://help.ubuntu.com/community/ModMono
Http://www.mono-project.com/Mod_mono