Set up an ASP. NET environment in Linux _ set up an ASP. NET2.0 environment in Linux

Source: Internet
Author: User
The Unit is an idle old IBMNetfinity7000 server, dual PentiumPro200MHzCPU, MB memory, a 9.1GB and five 4.5GB SCSI hard disks. 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

MonoSetServerAlias ben
SetHandler mono

#-------------------------------------------------
Sudo a2ensite ben.skyiv.com
Sudo/etc/init. d/apache2 restart
7. Complete. See: http://ben.skyiv.com/ben/aspx/info.aspx Running Effect
;
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.