Use Apache2 and mod_mono in Ubuntu9.04 to configure the asp. net2.0 Runtime Environment

Source: Internet
Author: User
I have never used Linux before. Now I need to port one or two websites from windows to the Linux server. The linux version is messy, and the server configuration may be strange. It cannot be ensured that other environments will succeed. My environments are Ubuntu9.04, apache2, xsp2, mod_mono, and asp. net2.0. if you think it is superficial, you will have to wait for it. It is only for reference by new users. First install the development environment: Enter apt: mono-devel in the browser

I have never used Linux before. Now I need to port one or two websites from windows to the Linux server.

The linux version is messy, and the server configuration may be strange. It cannot be ensured that other environments will succeed. My environments are Ubuntu 9.04, apache2, xsp2, mod_mono, and asp.net 2.0.

If you think it is superficial, you will have to worry about it. It is only for reference by new users.

First install the development environment:
Enter apt: mono-devel, and apt: mono-2.0-devel in the browser to install mono
Install Monodevelop: http://monodevelop.com/Download at the URL below
Reference: http://www.mono-project.com/Other_Downloads

Install server-related packages:

Sudo aptitude install apache2 mono-gmcs mono-utils mono-xsp2 monodoc-http libapache2-mod-mono mono-apache-server2 mono-xsp2-base asp. net2-examples

Important directories after installation:
Asp.net 2.0 Demo Directory:/usr/share/asp. net2-demos/
Directory of The Apache2 server:/var/www

 
Use xsp to test whether the basic environment is correct: (Run ASP and. NET in UBUNTU and Debian LINUX ):
Go to the Demo directory and run the command: xsp2. Now you can directly use http: // localhost: 8080 to check whether the access is correct.
Reference: http://www.goitexpert.com/entry.cfm? Entry = Run-ASP-and-NET-in-UBUNTU -- and-Debian-LIN

Problems that may occur when you restart Apache (sudo/etc/init. d/apache2 restart:
Cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName:
Solution: Modify/etc/apache2/httpd. conf and add the row ServerName localhost.
Reference: http://www.qc4blog.com /? P = 611

 
The following figure shows how to configure mod_mono. You can refer to the following three urls:

Mod_mono document:
Http://www.mono-project.com/Mod_mono
Installing ing mod_mono on ubuntu:
Https://help.ubuntu.com/community/ModMono
Autoconfiguration mod_mono:
Http://mono-project.com/AutoHostin

In my configuration method, modify/etc/apache2/mod-enabled/mod_mono.conf, and add two sentences at the beginning of the line:
MonoServerPath "/usr/bin/mod-mono-server2"
MonoAutoApplication enabled

Now, it's done.
You can copy the mentioned Asp.net 2.0 Demo to the/var/www directory and directly use "http: // localhost/{/var/www/Name of a folder} "to access your asp.net website.
For more advanced configurations, see the three URLs listed above.

 

From: http://www.cnblogs.com/jeromejiang/archive/2009/06/15/1503436.html

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.