ASP. NET on Mac OS X snow leopard at one fell swoop using mod_mono

Source: Internet
Author: User

Link: http://www.ienablemuch.com/2010/10/aspnet-on-mac-os-x-snow-leopard-at-one.html

Enable Apache first by ticking the checkbox for Web Sharing (System Preferences> sharing> Web Sharing)

Type 127.0.0.1 in browser's address bar, then it shoshould show:

Download then install this:

Http://ftp.novell.com/pub/mono/archive/2.8/macos-10-x86/10/MonoFramework-2.8_10.macos10.novell.x86.dmg

Verify on terminal if you have installed mono...

mono -V

... Shocould show this:

Mono JIT compiler version 2.8 (tarball Tue Oct  5 14:16:19 MDT 2010)Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS:           normal SIGSEGV:       normal Notification:  Thread + polling Architecture:  x86 Disabled:      none Misc:          debugger softdebug  LLVM:          supported, not enabled. GC:            Included Boehm (with typed GC)

Paste this in your terminal (the next swoop will still have the effect of sudo (I. e. No need to re-enter password )):

sudo mv /Library/WebServer/Documents/index.html.en /Library/WebServer/Documents/x_index.html.en

And this (so that makes it two swoop ):

mkdir ~/swoopcd ~/swoopsudo ln -s /Library/Frameworks/Mono.framework/Commands/pkg-config /usr/bin/pkg-configcurl -O http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.8.tar.bz2tar xzf mod_mono-2.8.tar.bz2 cd mod_mono-2.8./configuremake sudo make installsudo sh -c "echo '\n\nInclude /etc/apache2/mod_mono.conf' >> /etc/apache2/httpd.conf"echo "<center><br><% int a = 7 * 6;%><%=a%> <%=new System.Random().Next()%></center>" > /Library/WebServer/Documents/index.aspx sudo /usr/sbin/apachectl restartecho 'Done'

Then refresh the 127.0.0.1 in your browser, you shall be able to see
The answer to life, the universe and everything

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.